From 880773ba151fbf29b1b2f1f73f82577c513007e9 Mon Sep 17 00:00:00 2001 From: Yasuhiro Takahashi Date: Wed, 10 Jul 2024 14:43:08 +0900 Subject: [PATCH 1/2] generate by latest generater --- .../Authentication/BearerAuthentication.php | 4 +- generated/ApiLog/Client.php | 24 +- generated/ApiLog/Endpoint/GetLog.php | 24 +- generated/ApiLog/Endpoint/GetLogs.php | 46 +- .../Endpoint/ReturnInternalServerError.php | 18 +- .../GetLogInternalServerErrorException.php | 4 +- .../GetLogsInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- generated/ApiLog/Model/ApiLogs.php | 42 +- generated/ApiLog/Model/Error.php | 12 +- .../ApiLog/Normalizer/ApiLogsNormalizer.php | 214 +++- .../ApiLog/Normalizer/ErrorNormalizer.php | 178 ++- .../Normalizer/JaneObjectNormalizer.php | 152 ++- .../ApiLog/Runtime/Client/BaseEndpoint.php | 29 +- generated/ApiLog/Runtime/Client/Client.php | 6 +- generated/ApiLog/Runtime/Client/Endpoint.php | 12 +- .../ApiLog/Runtime/Client/EndpointTrait.php | 2 +- .../ApiLog/Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- .../Authentication/BearerAuthentication.php | 4 +- generated/Auth/Client.php | 1058 +++++++---------- .../Auth/Endpoint/ConfirmEmailUpdate.php | 29 +- .../Auth/Endpoint/ConfirmExternalUserLink.php | 33 +- .../ConfirmSignUpWithAwsMarketplace.php | 27 +- .../Auth/Endpoint/CreateAuthCredentials.php | 31 +- generated/Auth/Endpoint/CreateEnv.php | 27 +- generated/Auth/Endpoint/CreateRole.php | 28 +- generated/Auth/Endpoint/CreateSaasUser.php | 35 +- generated/Auth/Endpoint/CreateSecretCode.php | 37 +- generated/Auth/Endpoint/CreateTenant.php | 33 +- .../Auth/Endpoint/CreateTenantAndPricing.php | 18 +- .../Auth/Endpoint/CreateTenantAttribute.php | 27 +- .../Auth/Endpoint/CreateTenantInvitation.php | 39 +- generated/Auth/Endpoint/CreateTenantUser.php | 31 +- .../Auth/Endpoint/CreateTenantUserRoles.php | 39 +- .../Auth/Endpoint/CreateUserAttribute.php | 28 +- generated/Auth/Endpoint/DeleteEnv.php | 33 +- generated/Auth/Endpoint/DeleteRole.php | 35 +- generated/Auth/Endpoint/DeleteSaasUser.php | 33 +- .../Endpoint/DeleteStripeTenantAndPricing.php | 18 +- generated/Auth/Endpoint/DeleteTenant.php | 31 +- .../Auth/Endpoint/DeleteTenantAttribute.php | 33 +- .../Auth/Endpoint/DeleteTenantInvitation.php | 35 +- generated/Auth/Endpoint/DeleteTenantUser.php | 35 +- .../Auth/Endpoint/DeleteTenantUserRole.php | 39 +- .../Auth/Endpoint/DeleteUserAttribute.php | 33 +- .../Endpoint/FindNotificationMessages.php | 20 +- generated/Auth/Endpoint/GetAllTenantUser.php | 31 +- generated/Auth/Endpoint/GetAllTenantUsers.php | 20 +- .../Auth/Endpoint/GetAuthCredentials.php | 54 +- generated/Auth/Endpoint/GetAuthInfo.php | 20 +- generated/Auth/Endpoint/GetBasicInfo.php | 20 +- ...ormationLaunchStackLinkForSingleTenant.php | 46 + .../Endpoint/GetCustomizePageSettings.php | 20 +- generated/Auth/Endpoint/GetCustomizePages.php | 20 +- generated/Auth/Endpoint/GetEnv.php | 35 +- generated/Auth/Endpoint/GetEnvs.php | 20 +- .../Auth/Endpoint/GetIdentityProviders.php | 20 +- .../Auth/Endpoint/GetInvitationValidity.php | 35 +- generated/Auth/Endpoint/GetRoles.php | 20 +- generated/Auth/Endpoint/GetSaasUser.php | 35 +- generated/Auth/Endpoint/GetSaasUsers.php | 20 +- generated/Auth/Endpoint/GetSignInSettings.php | 20 +- .../Auth/Endpoint/GetSingleTenantSettings.php | 46 + generated/Auth/Endpoint/GetTenant.php | 35 +- .../Auth/Endpoint/GetTenantAttributes.php | 20 +- .../Endpoint/GetTenantIdentityProviders.php | 33 +- .../Auth/Endpoint/GetTenantInvitation.php | 37 +- .../Auth/Endpoint/GetTenantInvitations.php | 33 +- generated/Auth/Endpoint/GetTenantUser.php | 37 +- generated/Auth/Endpoint/GetTenantUsers.php | 28 +- generated/Auth/Endpoint/GetTenants.php | 20 +- generated/Auth/Endpoint/GetUserAttributes.php | 20 +- generated/Auth/Endpoint/GetUserInfo.php | 43 +- .../Auth/Endpoint/GetUserMfaPreference.php | 33 +- .../Auth/Endpoint/LinkAwsMarketplace.php | 25 +- .../Auth/Endpoint/RequestEmailUpdate.php | 31 +- .../Auth/Endpoint/RequestExternalUserLink.php | 28 +- .../ResendSignUpConfirmationEmail.php | 31 +- generated/Auth/Endpoint/ResetPlan.php | 18 +- .../Endpoint/ReturnInternalServerError.php | 18 +- generated/Auth/Endpoint/SignUp.php | 33 +- .../Endpoint/SignUpWithAwsMarketplace.php | 27 +- generated/Auth/Endpoint/UnlinkProvider.php | 35 +- generated/Auth/Endpoint/UpdateAuthInfo.php | 25 +- generated/Auth/Endpoint/UpdateBasicInfo.php | 26 +- .../Endpoint/UpdateCustomizePageSettings.php | 31 +- .../Auth/Endpoint/UpdateCustomizePages.php | 31 +- generated/Auth/Endpoint/UpdateEnv.php | 37 +- .../Auth/Endpoint/UpdateIdentityProvider.php | 22 +- .../Endpoint/UpdateNotificationMessages.php | 31 +- .../Auth/Endpoint/UpdateSaasUserEmail.php | 35 +- .../Auth/Endpoint/UpdateSaasUserPassword.php | 35 +- .../Auth/Endpoint/UpdateSignInSettings.php | 25 +- .../Endpoint/UpdateSingleTenantSettings.php | 64 + .../Auth/Endpoint/UpdateSoftwareToken.php | 35 +- generated/Auth/Endpoint/UpdateTenant.php | 37 +- .../Auth/Endpoint/UpdateTenantBillingInfo.php | 39 +- .../Endpoint/UpdateTenantIdentityProvider.php | 35 +- generated/Auth/Endpoint/UpdateTenantPlan.php | 39 +- generated/Auth/Endpoint/UpdateTenantUser.php | 39 +- .../Auth/Endpoint/UpdateUserMfaPreference.php | 35 +- .../Auth/Endpoint/ValidateInvitation.php | 39 +- ...mailUpdateInternalServerErrorException.php | 4 +- ...irmExternalUserLinkBadRequestException.php | 4 +- ...alUserLinkInternalServerErrorException.php | 4 +- ...arketplaceInternalServerErrorException.php | 4 +- ...eateAuthCredentialsBadRequestException.php | 4 +- ...redentialsInternalServerErrorException.php | 4 +- ...teAuthCredentialsUnauthorizedException.php | 4 +- .../CreateEnvInternalServerErrorException.php | 4 +- ...CreateRoleInternalServerErrorException.php | 4 +- .../CreateSaasUserBadRequestException.php | 4 +- ...teSaasUserInternalServerErrorException.php | 4 +- ...SecretCodeInternalServerErrorException.php | 4 +- ...AndPricingInternalServerErrorException.php | 4 +- ...tAttributeInternalServerErrorException.php | 4 +- ...eateTenantInternalServerErrorException.php | 4 +- ...ateTenantInvitationBadRequestException.php | 4 +- ...InvitationInternalServerErrorException.php | 4 +- ...TenantUserInternalServerErrorException.php | 4 +- ...tUserRolesInternalServerErrorException.php | 4 +- ...rAttributeInternalServerErrorException.php | 4 +- .../DeleteEnvInternalServerErrorException.php | 4 +- .../Exception/DeleteEnvNotFoundException.php | 4 +- .../DeleteRoleBadRequestException.php | 4 +- ...DeleteRoleInternalServerErrorException.php | 4 +- .../Exception/DeleteRoleNotFoundException.php | 4 +- ...teSaasUserInternalServerErrorException.php | 4 +- .../DeleteSaasUserNotFoundException.php | 4 +- ...AndPricingInternalServerErrorException.php | 4 +- ...tAttributeInternalServerErrorException.php | 4 +- ...DeleteTenantAttributeNotFoundException.php | 4 +- ...leteTenantInternalServerErrorException.php | 4 +- ...InvitationInternalServerErrorException.php | 4 +- ...eleteTenantInvitationNotFoundException.php | 4 +- ...TenantUserInternalServerErrorException.php | 4 +- .../DeleteTenantUserNotFoundException.php | 4 +- ...ntUserRoleInternalServerErrorException.php | 4 +- .../DeleteTenantUserRoleNotFoundException.php | 4 +- ...rAttributeInternalServerErrorException.php | 4 +- .../DeleteUserAttributeNotFoundException.php | 4 +- ...onMessagesInternalServerErrorException.php | 4 +- ...TenantUserInternalServerErrorException.php | 4 +- .../GetAllTenantUserNotFoundException.php | 4 +- ...enantUsersInternalServerErrorException.php | 4 +- ...redentialsInternalServerErrorException.php | 4 +- .../GetAuthCredentialsNotFoundException.php | 4 +- ...etAuthInfoInternalServerErrorException.php | 4 +- ...tBasicInfoInternalServerErrorException.php | 4 +- ...ngleTenantInternalServerErrorException.php | 29 + ...geSettingsInternalServerErrorException.php | 4 +- ...omizePagesInternalServerErrorException.php | 4 +- .../GetEnvInternalServerErrorException.php | 4 +- .../Exception/GetEnvNotFoundException.php | 4 +- .../GetEnvsInternalServerErrorException.php | 4 +- ...yProvidersInternalServerErrorException.php | 4 +- ...onValidityInternalServerErrorException.php | 4 +- ...GetInvitationValidityNotFoundException.php | 4 +- .../GetRolesInternalServerErrorException.php | 4 +- ...etSaasUserInternalServerErrorException.php | 4 +- .../GetSaasUserNotFoundException.php | 4 +- ...tSaasUsersInternalServerErrorException.php | 4 +- ...InSettingsInternalServerErrorException.php | 4 +- ...ntSettingsInternalServerErrorException.php | 29 + ...AttributesInternalServerErrorException.php | 4 +- ...yProvidersInternalServerErrorException.php | 4 +- .../GetTenantInternalServerErrorException.php | 4 +- ...InvitationInternalServerErrorException.php | 4 +- .../GetTenantInvitationNotFoundException.php | 4 +- ...nvitationsInternalServerErrorException.php | 4 +- .../Exception/GetTenantNotFoundException.php | 4 +- ...TenantUserInternalServerErrorException.php | 4 +- .../GetTenantUserNotFoundException.php | 4 +- ...enantUsersInternalServerErrorException.php | 4 +- ...GetTenantsInternalServerErrorException.php | 4 +- ...AttributesInternalServerErrorException.php | 4 +- ...etUserInfoInternalServerErrorException.php | 4 +- .../GetUserInfoUnauthorizedException.php | 4 +- ...PreferenceInternalServerErrorException.php | 4 +- ...arketplaceInternalServerErrorException.php | 4 +- ...mailUpdateInternalServerErrorException.php | 4 +- ...estExternalUserLinkBadRequestException.php | 4 +- ...alUserLinkInternalServerErrorException.php | 4 +- ...ationEmailInternalServerErrorException.php | 4 +- .../ResetPlanInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- .../SignUpInternalServerErrorException.php | 4 +- ...arketplaceInternalServerErrorException.php | 4 +- ...nkProviderInternalServerErrorException.php | 13 +- ...teAuthInfoInternalServerErrorException.php | 4 +- ...eBasicInfoInternalServerErrorException.php | 4 +- ...geSettingsInternalServerErrorException.php | 4 +- ...omizePagesInternalServerErrorException.php | 4 +- .../UpdateEnvInternalServerErrorException.php | 4 +- .../Exception/UpdateEnvNotFoundException.php | 4 +- ...tyProviderInternalServerErrorException.php | 4 +- ...onMessagesInternalServerErrorException.php | 4 +- ...sUserEmailInternalServerErrorException.php | 4 +- ...erPasswordInternalServerErrorException.php | 4 +- ...InSettingsInternalServerErrorException.php | 4 +- ...ingleTenantSettingsBadRequestException.php | 29 + ...ntSettingsInternalServerErrorException.php | 29 + ...twareTokenInternalServerErrorException.php | 4 +- ...teTenantBillingInfoBadRequestException.php | 4 +- ...illingInfoInternalServerErrorException.php | 4 +- ...dateTenantBillingInfoNotFoundException.php | 4 +- ...tyProviderInternalServerErrorException.php | 4 +- ...dateTenantInternalServerErrorException.php | 4 +- .../UpdateTenantNotFoundException.php | 4 +- .../UpdateTenantPlanBadRequestException.php | 4 +- ...TenantPlanInternalServerErrorException.php | 4 +- .../UpdateTenantPlanNotFoundException.php | 4 +- ...TenantUserInternalServerErrorException.php | 4 +- .../UpdateTenantUserNotFoundException.php | 4 +- ...PreferenceInternalServerErrorException.php | 4 +- .../ValidateInvitationBadRequestException.php | 4 +- ...InvitationInternalServerErrorException.php | 4 +- .../ValidateInvitationNotFoundException.php | 4 +- generated/Auth/Model/AccountVerification.php | 42 +- generated/Auth/Model/ApiKeys.php | 20 +- generated/Auth/Model/Attribute.php | 62 +- generated/Auth/Model/AuthInfo.php | 14 +- .../Auth/Model/AuthorizationTempCode.php | 8 +- generated/Auth/Model/BasicInfo.php | 88 +- generated/Auth/Model/BillingAddress.php | 250 ++-- generated/Auth/Model/BillingInfo.php | 90 +- generated/Auth/Model/ClientSecret.php | 14 +- .../Model/CloudFormationLaunchStackLink.php | 43 + .../Auth/Model/ConfirmEmailUpdateParam.php | 12 +- .../Model/ConfirmExternalUserLinkParam.php | 12 +- .../ConfirmSignUpWithAwsMarketplaceParam.php | 28 +- generated/Auth/Model/CreateSaasUserParam.php | 24 +- .../Auth/Model/CreateSecretCodeParam.php | 14 +- .../Model/CreateTenantInvitationParam.php | 34 +- .../CreateTenantInvitationParamEnvsItem.php | 24 +- .../Auth/Model/CreateTenantUserParam.php | 55 +- .../Auth/Model/CreateTenantUserRolesParam.php | 20 +- generated/Auth/Model/Credentials.php | 34 +- generated/Auth/Model/CustomizePageProps.php | 43 +- .../Auth/Model/CustomizePageSettings.php | 64 +- .../Auth/Model/CustomizePageSettingsProps.php | 44 +- generated/Auth/Model/CustomizePages.php | 16 +- generated/Auth/Model/DeviceConfiguration.php | 26 +- generated/Auth/Model/DnsRecord.php | 34 +- generated/Auth/Model/Env.php | 28 +- generated/Auth/Model/Envs.php | 14 +- generated/Auth/Model/Error.php | 16 +- .../Model/IdentityProviderConfiguration.php | 44 +- .../Auth/Model/IdentityProviderProps.php | 20 +- generated/Auth/Model/IdentityProviderSaml.php | 12 +- generated/Auth/Model/IdentityProviders.php | 8 +- generated/Auth/Model/Invitation.php | 52 +- generated/Auth/Model/InvitationValidity.php | 14 +- generated/Auth/Model/Invitations.php | 20 +- .../Auth/Model/LinkAwsMarketplaceParam.php | 28 +- generated/Auth/Model/MessageTemplate.php | 24 +- generated/Auth/Model/MfaConfiguration.php | 26 +- generated/Auth/Model/MfaPreference.php | 24 +- generated/Auth/Model/NotificationMessages.php | 40 +- generated/Auth/Model/PasswordPolicy.php | 64 +- generated/Auth/Model/PlanHistories.php | 20 +- generated/Auth/Model/PlanHistory.php | 63 +- generated/Auth/Model/PlanReservation.php | 91 +- generated/Auth/Model/RecaptchaProps.php | 24 +- .../Auth/Model/RequestEmailUpdateParam.php | 18 +- .../Model/RequestExternalUserLinkParam.php | 8 +- .../ResendSignUpConfirmationEmailParam.php | 14 +- generated/Auth/Model/Role.php | 24 +- generated/Auth/Model/Roles.php | 14 +- generated/Auth/Model/SaasId.php | 22 +- generated/Auth/Model/SaasUser.php | 18 +- generated/Auth/Model/SaasUsers.php | 14 +- generated/Auth/Model/SelfRegist.php | 8 +- generated/Auth/Model/SignInSettings.php | 98 +- generated/Auth/Model/SignUpParam.php | 14 +- .../Model/SignUpWithAwsMarketplaceParam.php | 18 +- generated/Auth/Model/SingleTenantSettings.php | 155 +++ .../Auth/Model/SoftwareTokenSecretCode.php | 14 +- generated/Auth/Model/Tenant.php | 149 +-- generated/Auth/Model/TenantAttributes.php | 20 +- generated/Auth/Model/TenantDetail.php | 169 ++- .../Auth/Model/TenantIdentityProviders.php | 8 +- .../Model/TenantIdentityProvidersSaml.php | 16 +- generated/Auth/Model/TenantProps.php | 34 +- generated/Auth/Model/Tenants.php | 14 +- generated/Auth/Model/UpdateBasicInfoParam.php | 34 +- .../UpdateCustomizePageSettingsParam.php | 64 +- .../Auth/Model/UpdateCustomizePagesParam.php | 16 +- generated/Auth/Model/UpdateEnvParam.php | 24 +- .../Model/UpdateIdentityProviderParam.php | 12 +- .../Model/UpdateNotificationMessagesParam.php | 40 +- .../Auth/Model/UpdateSaasUserEmailParam.php | 14 +- .../Model/UpdateSaasUserPasswordParam.php | 14 +- .../Auth/Model/UpdateSignInSettingsParam.php | 82 +- .../Model/UpdateSingleTenantSettingsParam.php | 155 +++ .../Auth/Model/UpdateSoftwareTokenParam.php | 24 +- .../UpdateTenantIdentityProviderParam.php | 12 +- .../Auth/Model/UpdateTenantUserParam.php | 45 +- generated/Auth/Model/User.php | 89 +- generated/Auth/Model/UserAttributes.php | 20 +- generated/Auth/Model/UserAvailableEnv.php | 44 +- generated/Auth/Model/UserAvailableTenant.php | 78 +- generated/Auth/Model/UserInfo.php | 34 +- generated/Auth/Model/Users.php | 14 +- .../Auth/Model/ValidateInvitationParam.php | 34 +- .../AccountVerificationNormalizer.php | 178 ++- .../Auth/Normalizer/ApiKeysNormalizer.php | 176 ++- .../Auth/Normalizer/AttributeNormalizer.php | 202 +++- .../Auth/Normalizer/AuthInfoNormalizer.php | 158 ++- .../AuthorizationTempCodeNormalizer.php | 158 ++- .../Auth/Normalizer/BasicInfoNormalizer.php | 368 ++++-- .../Normalizer/BillingAddressNormalizer.php | 286 +++-- .../Auth/Normalizer/BillingInfoNormalizer.php | 202 +++- .../Normalizer/ClientSecretNormalizer.php | 158 ++- ...loudFormationLaunchStackLinkNormalizer.php | 136 +++ .../ConfirmEmailUpdateParamNormalizer.php | 178 ++- ...ConfirmExternalUserLinkParamNormalizer.php | 178 ++- ...ignUpWithAwsMarketplaceParamNormalizer.php | 208 +++- .../CreateSaasUserParamNormalizer.php | 178 ++- .../CreateSecretCodeParamNormalizer.php | 158 ++- ...enantInvitationParamEnvsItemNormalizer.php | 200 +++- .../CreateTenantInvitationParamNormalizer.php | 224 ++-- .../CreateTenantUserParamNormalizer.php | 200 +++- .../CreateTenantUserRolesParamNormalizer.php | 176 ++- .../Auth/Normalizer/CredentialsNormalizer.php | 208 +++- .../CustomizePagePropsNormalizer.php | 202 +++- .../CustomizePageSettingsNormalizer.php | 282 +++-- .../CustomizePageSettingsPropsNormalizer.php | 226 ++-- .../Normalizer/CustomizePagesNormalizer.php | 202 +++- .../DeviceConfigurationNormalizer.php | 158 ++- .../Auth/Normalizer/DnsRecordNormalizer.php | 202 +++- generated/Auth/Normalizer/EnvNormalizer.php | 208 +++- generated/Auth/Normalizer/EnvsNormalizer.php | 178 ++- generated/Auth/Normalizer/ErrorNormalizer.php | 230 ++-- ...dentityProviderConfigurationNormalizer.php | 226 ++-- .../IdentityProviderPropsNormalizer.php | 232 ++-- .../IdentityProviderSamlNormalizer.php | 178 ++- .../IdentityProvidersNormalizer.php | 158 ++- .../Auth/Normalizer/InvitationNormalizer.php | 300 +++-- .../InvitationValidityNormalizer.php | 158 ++- .../Auth/Normalizer/InvitationsNormalizer.php | 178 ++- .../Auth/Normalizer/JaneObjectNormalizer.php | 492 +++++++- .../LinkAwsMarketplaceParamNormalizer.php | 202 +++- .../Normalizer/MessageTemplateNormalizer.php | 178 ++- .../Normalizer/MfaConfigurationNormalizer.php | 158 ++- .../Normalizer/MfaPreferenceNormalizer.php | 184 ++- .../NotificationMessagesNormalizer.php | 346 ++++-- .../Normalizer/PasswordPolicyNormalizer.php | 282 +++-- .../Normalizer/PlanHistoriesNormalizer.php | 178 ++- .../Auth/Normalizer/PlanHistoryNormalizer.php | 274 +++-- .../Normalizer/PlanReservationNormalizer.php | 286 +++-- .../Normalizer/RecaptchaPropsNormalizer.php | 178 ++- .../RequestEmailUpdateParamNormalizer.php | 178 ++- ...RequestExternalUserLinkParamNormalizer.php | 158 ++- ...SignUpConfirmationEmailParamNormalizer.php | 158 ++- generated/Auth/Normalizer/RoleNormalizer.php | 178 ++- generated/Auth/Normalizer/RolesNormalizer.php | 178 ++- .../Auth/Normalizer/SaasIdNormalizer.php | 202 +++- .../Auth/Normalizer/SaasUserNormalizer.php | 178 ++- .../Auth/Normalizer/SaasUsersNormalizer.php | 178 ++- .../Auth/Normalizer/SelfRegistNormalizer.php | 158 ++- .../Normalizer/SignInSettingsNormalizer.php | 306 +++-- .../Auth/Normalizer/SignUpParamNormalizer.php | 158 ++- ...ignUpWithAwsMarketplaceParamNormalizer.php | 178 ++- .../SingleTenantSettingsNormalizer.php | 200 ++++ .../SoftwareTokenSecretCodeNormalizer.php | 158 ++- .../Normalizer/TenantAttributesNormalizer.php | 178 ++- .../Normalizer/TenantDetailNormalizer.php | 568 ++++++--- .../TenantIdentityProvidersNormalizer.php | 182 ++- .../TenantIdentityProvidersSamlNormalizer.php | 202 +++- .../Auth/Normalizer/TenantNormalizer.php | 508 +++++--- .../Auth/Normalizer/TenantPropsNormalizer.php | 222 ++-- .../Auth/Normalizer/TenantsNormalizer.php | 194 ++- .../UpdateBasicInfoParamNormalizer.php | 208 +++- ...teCustomizePageSettingsParamNormalizer.php | 282 +++-- .../UpdateCustomizePagesParamNormalizer.php | 218 ++-- .../Normalizer/UpdateEnvParamNormalizer.php | 184 ++- .../UpdateIdentityProviderParamNormalizer.php | 184 ++- ...ateNotificationMessagesParamNormalizer.php | 406 +++++-- .../UpdateSaasUserEmailParamNormalizer.php | 158 ++- .../UpdateSaasUserPasswordParamNormalizer.php | 158 ++- .../UpdateSignInSettingsParamNormalizer.php | 316 +++-- ...ateSingleTenantSettingsParamNormalizer.php | 220 ++++ .../UpdateSoftwareTokenParamNormalizer.php | 178 ++- ...eTenantIdentityProviderParamNormalizer.php | 208 +++- .../UpdateTenantUserParamNormalizer.php | 176 ++- .../Normalizer/UserAttributesNormalizer.php | 178 ++- .../Normalizer/UserAvailableEnvNormalizer.php | 254 ++-- .../UserAvailableTenantNormalizer.php | 374 ++++-- .../Auth/Normalizer/UserInfoNormalizer.php | 224 ++-- generated/Auth/Normalizer/UserNormalizer.php | 320 +++-- generated/Auth/Normalizer/UsersNormalizer.php | 178 ++- .../ValidateInvitationParamNormalizer.php | 218 ++-- .../Auth/Runtime/Client/BaseEndpoint.php | 29 +- generated/Auth/Runtime/Client/Client.php | 6 +- generated/Auth/Runtime/Client/Endpoint.php | 12 +- .../Auth/Runtime/Client/EndpointTrait.php | 2 +- .../Auth/Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- .../Authentication/BearerAuthentication.php | 4 +- generated/AwsMarketplace/Client.php | 187 ++- .../Endpoint/CreateCustomer.php | 33 +- .../Endpoint/GetCatalogEntityVisibility.php | 20 +- .../GetCloudFormationLaunchStackLink.php | 20 +- .../AwsMarketplace/Endpoint/GetCustomer.php | 33 +- .../AwsMarketplace/Endpoint/GetCustomers.php | 47 +- .../Endpoint/GetListingStatus.php | 20 +- .../Endpoint/GetPlanByPlanName.php | 33 +- .../AwsMarketplace/Endpoint/GetPlans.php | 20 +- .../AwsMarketplace/Endpoint/GetSettings.php | 20 +- .../Endpoint/ReturnInternalServerError.php | 18 +- .../AwsMarketplace/Endpoint/SavePlan.php | 31 +- .../AwsMarketplace/Endpoint/SyncCustomer.php | 31 +- .../Endpoint/UpdateListingStatus.php | 31 +- .../Endpoint/UpdateSettings.php | 31 +- .../Endpoint/VerifyRegistrationToken.php | 33 +- ...teCustomerInternalServerErrorException.php | 4 +- ...VisibilityInternalServerErrorException.php | 4 +- ...hStackLinkInternalServerErrorException.php | 4 +- ...etCustomerInternalServerErrorException.php | 4 +- ...tCustomersInternalServerErrorException.php | 4 +- ...tingStatusInternalServerErrorException.php | 4 +- ...ByPlanNameInternalServerErrorException.php | 4 +- .../GetPlansInternalServerErrorException.php | 4 +- ...etSettingsInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- .../SavePlanInternalServerErrorException.php | 4 +- ...ncCustomerInternalServerErrorException.php | 4 +- ...tingStatusInternalServerErrorException.php | 4 +- ...teSettingsInternalServerErrorException.php | 4 +- ...fyRegistrationTokenBadRequestException.php | 4 +- ...ationTokenInternalServerErrorException.php | 4 +- .../Model/CatalogEntityVisibility.php | 8 +- .../Model/CloudFormationLaunchStackLink.php | 8 +- .../Model/CreateCustomerParam.php | 12 +- generated/AwsMarketplace/Model/Customer.php | 16 +- generated/AwsMarketplace/Model/Customers.php | 14 +- generated/AwsMarketplace/Model/Error.php | 12 +- .../Model/GetListingStatusResult.php | 8 +- generated/AwsMarketplace/Model/Plan.php | 12 +- generated/AwsMarketplace/Model/Plans.php | 14 +- .../AwsMarketplace/Model/SavePlanParam.php | 12 +- generated/AwsMarketplace/Model/Settings.php | 40 +- .../Model/UpdateListingStatusParam.php | 8 +- .../Model/UpdateSettingsParam.php | 36 +- .../Model/VerifyRegistrationTokenParam.php | 8 +- .../CatalogEntityVisibilityNormalizer.php | 158 ++- ...loudFormationLaunchStackLinkNormalizer.php | 158 ++- .../CreateCustomerParamNormalizer.php | 178 ++- .../Normalizer/CustomerNormalizer.php | 202 +++- .../Normalizer/CustomersNormalizer.php | 178 ++- .../Normalizer/ErrorNormalizer.php | 178 ++- .../GetListingStatusResultNormalizer.php | 158 ++- .../Normalizer/JaneObjectNormalizer.php | 200 +++- .../Normalizer/PlanNormalizer.php | 178 ++- .../Normalizer/PlansNormalizer.php | 178 ++- .../Normalizer/SavePlanParamNormalizer.php | 178 ++- .../Normalizer/SettingsNormalizer.php | 346 ++++-- .../UpdateListingStatusParamNormalizer.php | 158 ++- .../UpdateSettingsParamNormalizer.php | 368 ++++-- ...VerifyRegistrationTokenParamNormalizer.php | 158 ++- .../Runtime/Client/BaseEndpoint.php | 29 +- .../AwsMarketplace/Runtime/Client/Client.php | 6 +- .../Runtime/Client/Endpoint.php | 12 +- .../Runtime/Client/EndpointTrait.php | 2 +- .../Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- .../Authentication/BearerAuthentication.php | 4 +- generated/Billing/Client.php | 13 +- .../Billing/Endpoint/DeleteStripeInfo.php | 18 +- generated/Billing/Endpoint/GetStripeInfo.php | 20 +- .../Endpoint/ReturnInternalServerError.php | 18 +- .../Billing/Endpoint/UpdateStripeInfo.php | 25 +- ...StripeInfoInternalServerErrorException.php | 4 +- ...StripeInfoInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- ...StripeInfoInternalServerErrorException.php | 4 +- generated/Billing/Model/Error.php | 12 +- generated/Billing/Model/StripeInfo.php | 8 +- .../Billing/Model/UpdateStripeInfoParam.php | 14 +- .../Billing/Normalizer/ErrorNormalizer.php | 178 ++- .../Normalizer/JaneObjectNormalizer.php | 156 ++- .../Normalizer/StripeInfoNormalizer.php | 158 ++- .../UpdateStripeInfoParamNormalizer.php | 158 ++- .../Billing/Runtime/Client/BaseEndpoint.php | 29 +- generated/Billing/Runtime/Client/Client.php | 6 +- generated/Billing/Runtime/Client/Endpoint.php | 12 +- .../Billing/Runtime/Client/EndpointTrait.php | 2 +- .../Billing/Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- .../Authentication/BearerAuthentication.php | 4 +- generated/Communication/Client.php | 30 +- .../Communication/Endpoint/CreateFeedback.php | 24 +- .../Endpoint/CreateFeedbackComment.php | 26 +- .../Communication/Endpoint/CreateVoteUser.php | 28 +- .../Communication/Endpoint/DeleteFeedback.php | 24 +- .../Endpoint/DeleteFeedbackComment.php | 24 +- .../Endpoint/DeleteVoteForFeedback.php | 24 +- .../Communication/Endpoint/GetFeedback.php | 26 +- .../Endpoint/GetFeedbackComment.php | 24 +- .../Communication/Endpoint/GetFeedbacks.php | 20 +- .../Endpoint/ReturnInternalServerError.php | 18 +- .../Communication/Endpoint/UpdateFeedback.php | 26 +- .../Endpoint/UpdateFeedbackComment.php | 26 +- .../Endpoint/UpdateFeedbackStatus.php | 26 +- ...ackCommentInternalServerErrorException.php | 4 +- ...CreateFeedbackCommentNotFoundException.php | 4 +- ...teFeedbackInternalServerErrorException.php | 4 +- ...teVoteUserInternalServerErrorException.php | 4 +- .../CreateVoteUserNotFoundException.php | 4 +- ...ackCommentInternalServerErrorException.php | 4 +- ...DeleteFeedbackCommentNotFoundException.php | 4 +- ...teFeedbackInternalServerErrorException.php | 4 +- .../DeleteFeedbackNotFoundException.php | 4 +- ...orFeedbackInternalServerErrorException.php | 4 +- ...DeleteVoteForFeedbackNotFoundException.php | 4 +- ...ackCommentInternalServerErrorException.php | 4 +- .../GetFeedbackCommentNotFoundException.php | 4 +- ...etFeedbackInternalServerErrorException.php | 4 +- .../GetFeedbackNotFoundException.php | 4 +- ...tFeedbacksInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- ...ackCommentInternalServerErrorException.php | 4 +- ...UpdateFeedbackCommentNotFoundException.php | 4 +- ...teFeedbackInternalServerErrorException.php | 4 +- .../UpdateFeedbackNotFoundException.php | 4 +- ...backStatusInternalServerErrorException.php | 4 +- .../UpdateFeedbackStatusNotFoundException.php | 4 +- generated/Communication/Model/Comments.php | 14 +- .../Model/CreateFeedbackCommentParam.php | 36 +- .../Model/CreateFeedbackParam.php | 16 +- .../Model/CreateVoteUserParam.php | 8 +- generated/Communication/Model/Error.php | 12 +- generated/Communication/Model/Feedback.php | 52 +- .../Communication/Model/FeedbackSaveProps.php | 12 +- generated/Communication/Model/Feedbacks.php | 14 +- .../Model/UpdateFeedbackCommentParam.php | 8 +- .../Model/UpdateFeedbackParam.php | 12 +- .../Model/UpdateFeedbackStatusParam.php | 8 +- generated/Communication/Model/User.php | 8 +- generated/Communication/Model/Users.php | 14 +- generated/Communication/Model/Votes.php | 18 +- .../Normalizer/CommentsNormalizer.php | 194 ++- .../CreateFeedbackCommentParamNormalizer.php | 162 ++- .../CreateFeedbackParamNormalizer.php | 202 +++- .../CreateVoteUserParamNormalizer.php | 158 ++- .../Normalizer/ErrorNormalizer.php | 178 ++- .../Normalizer/FeedbackNormalizer.php | 406 +++++-- .../FeedbackSavePropsNormalizer.php | 178 ++- .../Normalizer/FeedbacksNormalizer.php | 194 ++- .../Normalizer/JaneObjectNormalizer.php | 200 +++- .../UpdateFeedbackCommentParamNormalizer.php | 158 ++- .../UpdateFeedbackParamNormalizer.php | 178 ++- .../UpdateFeedbackStatusParamNormalizer.php | 158 ++- .../Normalizer/UserNormalizer.php | 158 ++- .../Normalizer/UsersNormalizer.php | 178 ++- .../Normalizer/VotesNormalizer.php | 202 +++- .../Runtime/Client/BaseEndpoint.php | 29 +- .../Communication/Runtime/Client/Client.php | 6 +- .../Communication/Runtime/Client/Endpoint.php | 12 +- .../Runtime/Client/EndpointTrait.php | 2 +- .../Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- .../Authentication/BearerAuthentication.php | 4 +- generated/Integration/Client.php | 46 +- .../Endpoint/CreateEventBridgeEvent.php | 31 +- .../Endpoint/CreateEventBridgeTestEvent.php | 18 +- .../Endpoint/DeleteEventBridgeSettings.php | 18 +- .../Endpoint/GetEventBridgeSettings.php | 20 +- .../Endpoint/ReturnInternalServerError.php | 18 +- .../Endpoint/SaveEventBridgeSettings.php | 31 +- ...ridgeEventInternalServerErrorException.php | 4 +- ...eTestEventInternalServerErrorException.php | 4 +- ...geSettingsInternalServerErrorException.php | 4 +- ...geSettingsInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- ...geSettingsInternalServerErrorException.php | 4 +- .../Model/CreateEventBridgeEventParam.php | 20 +- generated/Integration/Model/Error.php | 24 +- .../Integration/Model/EventBridgeSettings.php | 61 +- generated/Integration/Model/EventMessage.php | 52 +- .../CreateEventBridgeEventParamNormalizer.php | 172 ++- .../Normalizer/ErrorNormalizer.php | 166 ++- .../EventBridgeSettingsNormalizer.php | 166 ++- .../Normalizer/EventMessageNormalizer.php | 184 ++- .../Normalizer/JaneObjectNormalizer.php | 160 ++- .../Runtime/Client/BaseEndpoint.php | 29 +- .../Integration/Runtime/Client/Client.php | 6 +- .../Integration/Runtime/Client/Endpoint.php | 12 +- .../Runtime/Client/EndpointTrait.php | 2 +- .../Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- .../Authentication/BearerAuthentication.php | 4 +- generated/Pricing/Client.php | 606 ++++------ .../Pricing/Endpoint/CreateMeteringUnit.php | 35 +- .../Pricing/Endpoint/CreatePricingMenu.php | 33 +- .../Pricing/Endpoint/CreatePricingPlan.php | 33 +- .../Pricing/Endpoint/CreatePricingUnit.php | 31 +- generated/Pricing/Endpoint/CreateTaxRate.php | 35 +- ...nsAndMenusAndUnitsAndMetersAndTaxRates.php | 18 +- .../Endpoint/DeleteMeteringUnitByID.php | 33 +- .../DeleteMeteringUnitTimestampCount.php | 35 +- .../Pricing/Endpoint/DeletePricingMenu.php | 33 +- .../Pricing/Endpoint/DeletePricingPlan.php | 33 +- .../Pricing/Endpoint/DeletePricingUnit.php | 31 +- .../Pricing/Endpoint/DeleteStripePlan.php | 18 +- ...tDateCountByTenantIdAndUnitNameAndDate.php | 37 +- ...ountByTenantIdAndUnitNameAndDatePeriod.php | 57 +- ...nitDateCountByTenantIdAndUnitNameToday.php | 35 +- ...eteringUnitDateCountsByTenantIdAndDate.php | 35 +- ...onthCountByTenantIdAndUnitNameAndMonth.php | 37 +- ...nthCountByTenantIdAndUnitNameThisMonth.php | 35 +- ...eringUnitMonthCountsByTenantIdAndMonth.php | 35 +- .../Pricing/Endpoint/GetMeteringUnits.php | 20 +- generated/Pricing/Endpoint/GetPricingMenu.php | 33 +- .../Pricing/Endpoint/GetPricingMenus.php | 20 +- generated/Pricing/Endpoint/GetPricingPlan.php | 33 +- .../Pricing/Endpoint/GetPricingPlans.php | 20 +- generated/Pricing/Endpoint/GetPricingUnit.php | 31 +- .../Pricing/Endpoint/GetPricingUnits.php | 20 +- generated/Pricing/Endpoint/GetTaxRates.php | 20 +- .../Pricing/Endpoint/LinkPlanToStripe.php | 18 +- .../Endpoint/ReturnInternalServerError.php | 18 +- .../Endpoint/UpdateMeteringUnitByID.php | 37 +- .../UpdateMeteringUnitTimestampCount.php | 41 +- .../UpdateMeteringUnitTimestampCountNow.php | 39 +- .../Pricing/Endpoint/UpdatePricingMenu.php | 35 +- .../Pricing/Endpoint/UpdatePricingPlan.php | 35 +- .../Endpoint/UpdatePricingPlansUsed.php | 31 +- .../Pricing/Endpoint/UpdatePricingUnit.php | 35 +- generated/Pricing/Endpoint/UpdateTaxRate.php | 37 +- .../CreateMeteringUnitBadRequestException.php | 4 +- ...teringUnitInternalServerErrorException.php | 4 +- ...ricingMenuInternalServerErrorException.php | 4 +- ...ricingPlanInternalServerErrorException.php | 4 +- ...ricingUnitInternalServerErrorException.php | 4 +- .../CreateTaxRateBadRequestException.php | 4 +- ...ateTaxRateInternalServerErrorException.php | 4 +- ...ndTaxRatesInternalServerErrorException.php | 4 +- ...ngUnitByIDInternalServerErrorException.php | 4 +- ...eleteMeteringUnitByIDNotFoundException.php | 4 +- ...stampCountInternalServerErrorException.php | 4 +- ...ricingMenuInternalServerErrorException.php | 4 +- .../DeletePricingMenuNotFoundException.php | 4 +- ...ricingPlanInternalServerErrorException.php | 4 +- .../DeletePricingPlanNotFoundException.php | 4 +- ...ricingUnitInternalServerErrorException.php | 4 +- ...StripePlanInternalServerErrorException.php | 4 +- ...ameAndDateInternalServerErrorException.php | 4 +- ...DatePeriodInternalServerErrorException.php | 4 +- ...tNameTodayInternalServerErrorException.php | 4 +- ...tIdAndDateInternalServerErrorException.php | 4 +- ...meAndMonthInternalServerErrorException.php | 4 +- ...eThisMonthInternalServerErrorException.php | 4 +- ...IdAndMonthInternalServerErrorException.php | 4 +- ...eringUnitsInternalServerErrorException.php | 4 +- ...ricingMenuInternalServerErrorException.php | 4 +- ...icingMenusInternalServerErrorException.php | 4 +- ...ricingPlanInternalServerErrorException.php | 4 +- ...icingPlansInternalServerErrorException.php | 4 +- ...ricingUnitInternalServerErrorException.php | 4 +- ...icingUnitsInternalServerErrorException.php | 4 +- ...etTaxRatesInternalServerErrorException.php | 4 +- ...anToStripeInternalServerErrorException.php | 4 +- ...erverErrorInternalServerErrorException.php | 4 +- ...ateMeteringUnitByIDBadRequestException.php | 4 +- ...ngUnitByIDInternalServerErrorException.php | 4 +- ...stampCountInternalServerErrorException.php | 4 +- ...mpCountNowInternalServerErrorException.php | 4 +- ...ricingMenuInternalServerErrorException.php | 4 +- ...ricingPlanInternalServerErrorException.php | 4 +- ...gPlansUsedInternalServerErrorException.php | 4 +- ...ricingUnitInternalServerErrorException.php | 4 +- .../UpdateTaxRateBadRequestException.php | 4 +- ...ateTaxRateInternalServerErrorException.php | 4 +- generated/Pricing/Model/Error.php | 18 +- generated/Pricing/Model/MeteringUnit.php | 76 +- generated/Pricing/Model/MeteringUnitCount.php | 24 +- .../Pricing/Model/MeteringUnitDateCount.php | 34 +- .../Pricing/Model/MeteringUnitDateCounts.php | 14 +- .../Model/MeteringUnitDatePeriodCounts.php | 24 +- .../Pricing/Model/MeteringUnitMonthCount.php | 34 +- .../Pricing/Model/MeteringUnitMonthCounts.php | 14 +- generated/Pricing/Model/MeteringUnitProps.php | 56 +- .../Model/MeteringUnitTimestampCount.php | 34 +- generated/Pricing/Model/MeteringUnits.php | 14 +- generated/Pricing/Model/PricingFixedUnit.php | 124 +- .../Pricing/Model/PricingFixedUnitForSave.php | 110 +- generated/Pricing/Model/PricingMenu.php | 64 +- generated/Pricing/Model/PricingMenuProps.php | 54 +- generated/Pricing/Model/PricingMenus.php | 14 +- generated/Pricing/Model/PricingPlan.php | 64 +- generated/Pricing/Model/PricingPlanProps.php | 54 +- generated/Pricing/Model/PricingPlans.php | 14 +- generated/Pricing/Model/PricingTier.php | 44 +- generated/Pricing/Model/PricingTieredUnit.php | 182 +-- .../Model/PricingTieredUnitForSave.php | 130 +- .../Pricing/Model/PricingTieredUsageUnit.php | 182 +-- .../Model/PricingTieredUsageUnitForSave.php | 130 +- generated/Pricing/Model/PricingTiers.php | 14 +- .../Pricing/Model/PricingUnitBaseProps.php | 78 +- generated/Pricing/Model/PricingUnits.php | 14 +- generated/Pricing/Model/PricingUsageUnit.php | 176 +-- .../Pricing/Model/PricingUsageUnitForSave.php | 130 +- .../Pricing/Model/SavePricingMenuParam.php | 50 +- .../Pricing/Model/SavePricingPlanParam.php | 72 +- generated/Pricing/Model/TaxRate.php | 74 +- generated/Pricing/Model/TaxRateProps.php | 64 +- generated/Pricing/Model/TaxRates.php | 14 +- ...dateMeteringUnitTimestampCountNowParam.php | 42 +- .../UpdateMeteringUnitTimestampCountParam.php | 42 +- .../Model/UpdatePricingPlansUsedParam.php | 14 +- .../Pricing/Model/UpdateTaxRateParam.php | 24 +- .../Pricing/Normalizer/ErrorNormalizer.php | 178 ++- .../Normalizer/JaneObjectNormalizer.php | 296 ++++- .../MeteringUnitCountNormalizer.php | 178 ++- .../MeteringUnitDateCountNormalizer.php | 202 +++- .../MeteringUnitDateCountsNormalizer.php | 178 ++- ...MeteringUnitDatePeriodCountsNormalizer.php | 202 +++- .../MeteringUnitMonthCountNormalizer.php | 202 +++- .../MeteringUnitMonthCountsNormalizer.php | 178 ++- .../Normalizer/MeteringUnitNormalizer.php | 286 +++-- .../MeteringUnitPropsNormalizer.php | 232 ++-- .../MeteringUnitTimestampCountNormalizer.php | 202 +++- .../Normalizer/MeteringUnitsNormalizer.php | 194 ++- .../PricingFixedUnitForSaveNormalizer.php | 306 +++-- .../Normalizer/PricingFixedUnitNormalizer.php | 346 ++++-- .../Normalizer/PricingMenuNormalizer.php | 318 +++-- .../Normalizer/PricingMenuPropsNormalizer.php | 294 +++-- .../Normalizer/PricingMenusNormalizer.php | 194 ++- .../Normalizer/PricingPlanNormalizer.php | 318 +++-- .../Normalizer/PricingPlanPropsNormalizer.php | 294 +++-- .../Normalizer/PricingPlansNormalizer.php | 194 ++- .../Normalizer/PricingTierNormalizer.php | 226 ++-- .../PricingTieredUnitForSaveNormalizer.php | 374 ++++-- .../PricingTieredUnitNormalizer.php | 476 +++++--- ...ricingTieredUsageUnitForSaveNormalizer.php | 374 ++++-- .../PricingTieredUsageUnitNormalizer.php | 476 +++++--- .../Normalizer/PricingTiersNormalizer.php | 178 ++- .../PricingUnitBasePropsNormalizer.php | 250 ++-- .../Normalizer/PricingUnitsNormalizer.php | 194 ++- .../PricingUsageUnitForSaveNormalizer.php | 352 ++++-- .../Normalizer/PricingUsageUnitNormalizer.php | 454 ++++--- .../SavePricingMenuParamNormalizer.php | 246 ++-- .../SavePricingPlanParamNormalizer.php | 246 ++-- .../Pricing/Normalizer/TaxRateNormalizer.php | 315 +++-- .../Normalizer/TaxRatePropsNormalizer.php | 291 +++-- .../Pricing/Normalizer/TaxRatesNormalizer.php | 194 ++- ...ngUnitTimestampCountNowParamNormalizer.php | 178 ++- ...eringUnitTimestampCountParamNormalizer.php | 178 ++- .../UpdatePricingPlansUsedParamNormalizer.php | 176 ++- .../UpdateTaxRateParamNormalizer.php | 178 ++- .../Pricing/Runtime/Client/BaseEndpoint.php | 29 +- generated/Pricing/Runtime/Client/Client.php | 6 +- generated/Pricing/Runtime/Client/Endpoint.php | 12 +- .../Pricing/Runtime/Client/EndpointTrait.php | 2 +- .../Pricing/Runtime/Normalizer/CheckArray.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 51 +- .../Normalizer/ValidationException.php | 5 +- .../Runtime/Normalizer/ValidatorTrait.php | 5 +- 773 files changed, 33460 insertions(+), 18793 deletions(-) create mode 100644 generated/Auth/Endpoint/GetCloudFormationLaunchStackLinkForSingleTenant.php create mode 100644 generated/Auth/Endpoint/GetSingleTenantSettings.php create mode 100644 generated/Auth/Endpoint/UpdateSingleTenantSettings.php create mode 100644 generated/Auth/Exception/GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException.php create mode 100644 generated/Auth/Exception/GetSingleTenantSettingsInternalServerErrorException.php create mode 100644 generated/Auth/Exception/UpdateSingleTenantSettingsBadRequestException.php create mode 100644 generated/Auth/Exception/UpdateSingleTenantSettingsInternalServerErrorException.php create mode 100644 generated/Auth/Model/CloudFormationLaunchStackLink.php create mode 100644 generated/Auth/Model/SingleTenantSettings.php create mode 100644 generated/Auth/Model/UpdateSingleTenantSettingsParam.php create mode 100644 generated/Auth/Normalizer/CloudFormationLaunchStackLinkNormalizer.php create mode 100644 generated/Auth/Normalizer/SingleTenantSettingsNormalizer.php create mode 100644 generated/Auth/Normalizer/UpdateSingleTenantSettingsParamNormalizer.php diff --git a/generated/ApiLog/Authentication/BearerAuthentication.php b/generated/ApiLog/Authentication/BearerAuthentication.php index 041b3e4..13f8714 100644 --- a/generated/ApiLog/Authentication/BearerAuthentication.php +++ b/generated/ApiLog/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/ApiLog/Client.php b/generated/ApiLog/Client.php index 8c5825e..94033a7 100644 --- a/generated/ApiLog/Client.php +++ b/generated/ApiLog/Client.php @@ -5,19 +5,27 @@ class Client extends \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\Client { /** + * Retrieve the log of all API executions. + * + * @param array $queryParameters { + * @var string $created_date The date, in format of YYYY-MM-DD, to retrieve the log. + * @var string $created_at The datetime, in ISO 8601 format, to retrieve the log. + * @var int $limit Maximum number of logs to retrieve. + * @var string $cursor Cursor for cursor pagination. + * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\GetLogsInternalServerErrorException * * @return null|\AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs|\Psr\Http\Message\ResponseInterface */ - public function getLogs(string $fetch = self::FETCH_OBJECT) + public function getLogs(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\ApiLog\Endpoint\GetLogs(), $fetch); + return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\ApiLog\Endpoint\GetLogs($queryParameters), $fetch); } /** - * 指定したIDのAPI実行のログ登録を取得します。 + * Retrieve the log of the API execution with the specified ID. * - * @param string $apiLogId APIログID(API Log ID) + * @param string $apiLogId API Log ID * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\GetLogInternalServerErrorException * @@ -37,11 +45,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\ApiLog\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/apilog'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -52,11 +60,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\ApiLog\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\ApiLog\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/ApiLog/Endpoint/GetLog.php b/generated/ApiLog/Endpoint/GetLog.php index 9d087af..f22030e 100644 --- a/generated/ApiLog/Endpoint/GetLog.php +++ b/generated/ApiLog/Endpoint/GetLog.php @@ -6,30 +6,30 @@ class GetLog extends \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\BaseEndpoi { protected $api_log_id; /** - * 指定したIDのAPI実行のログ登録を取得します。 + * Retrieve the log of the API execution with the specified ID. * - * @param string $apiLogId APIログID(API Log ID) + * @param string $apiLogId API Log ID */ public function __construct(string $apiLogId) { $this->api_log_id = $apiLogId; } use \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{api_log_id}'), array($this->api_log_id), '/logs/{api_log_id}'); + return str_replace(['{api_log_id}'], [$this->api_log_id], '/logs/{api_log_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,11 +46,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\GetLogInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\GetLogInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/ApiLog/Endpoint/GetLogs.php b/generated/ApiLog/Endpoint/GetLogs.php index cac3857..e9f2e16 100644 --- a/generated/ApiLog/Endpoint/GetLogs.php +++ b/generated/ApiLog/Endpoint/GetLogs.php @@ -4,22 +4,48 @@ class GetLogs extends \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\Endpoint { + /** + * Retrieve the log of all API executions. + * + * @param array $queryParameters { + * @var string $created_date The date, in format of YYYY-MM-DD, to retrieve the log. + * @var string $created_at The datetime, in ISO 8601 format, to retrieve the log. + * @var int $limit Maximum number of logs to retrieve. + * @var string $cursor Cursor for cursor pagination. + * } + */ + public function __construct(array $queryParameters = []) + { + $this->queryParameters = $queryParameters; + } use \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/logs'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + public function getExtraHeaders(): array { - return array(array(), null); + return ['Accept' => ['application/json']]; } - public function getExtraHeaders() : array + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { - return array('Accept' => array('application/json')); + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['created_date', 'created_at', 'limit', 'cursor']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('created_date', ['string']); + $optionsResolver->addAllowedTypes('created_at', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('cursor', ['string']); + return $optionsResolver; } /** * {@inheritdoc} @@ -33,14 +59,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\ApiLogs', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\GetLogsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\GetLogsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/ApiLog/Endpoint/ReturnInternalServerError.php b/generated/ApiLog/Endpoint/ReturnInternalServerError.php index c710e33..3deb295 100644 --- a/generated/ApiLog/Endpoint/ReturnInternalServerError.php +++ b/generated/ApiLog/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\ApiLog\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/ApiLog/Exception/GetLogInternalServerErrorException.php b/generated/ApiLog/Exception/GetLogInternalServerErrorException.php index 9336f0e..ebc1319 100644 --- a/generated/ApiLog/Exception/GetLogInternalServerErrorException.php +++ b/generated/ApiLog/Exception/GetLogInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error $error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/ApiLog/Exception/GetLogsInternalServerErrorException.php b/generated/ApiLog/Exception/GetLogsInternalServerErrorException.php index de468da..349d163 100644 --- a/generated/ApiLog/Exception/GetLogsInternalServerErrorException.php +++ b/generated/ApiLog/Exception/GetLogsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error $error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/ApiLog/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/ApiLog/Exception/ReturnInternalServerErrorInternalServerErrorException.php index 8112ca3..eae43e0 100644 --- a/generated/ApiLog/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/ApiLog/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error $error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/ApiLog/Model/ApiLogs.php b/generated/ApiLog/Model/ApiLogs.php index 6be6063..6656733 100644 --- a/generated/ApiLog/Model/ApiLogs.php +++ b/generated/ApiLog/Model/ApiLogs.php @@ -7,37 +7,65 @@ class ApiLogs extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $apiLogs; + /** + * Cursor for cursor pagination + * + * @var string|null + */ + protected $cursor; /** * * - * @return array[]|null + * @return list>|null */ - public function getApiLogs() : ?array + public function getApiLogs(): ?array { return $this->apiLogs; } /** * * - * @param array[]|null $apiLogs + * @param list>|null $apiLogs * * @return self */ - public function setApiLogs(?array $apiLogs) : self + public function setApiLogs(?array $apiLogs): self { $this->initialized['apiLogs'] = true; $this->apiLogs = $apiLogs; return $this; } + /** + * Cursor for cursor pagination + * + * @return string|null + */ + public function getCursor(): ?string + { + return $this->cursor; + } + /** + * Cursor for cursor pagination + * + * @param string|null $cursor + * + * @return self + */ + public function setCursor(?string $cursor): self + { + $this->initialized['cursor'] = true; + $this->cursor = $cursor; + return $this; + } } \ No newline at end of file diff --git a/generated/ApiLog/Model/Error.php b/generated/ApiLog/Model/Error.php index e08df4e..21f23fc 100644 --- a/generated/ApiLog/Model/Error.php +++ b/generated/ApiLog/Model/Error.php @@ -7,8 +7,8 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } @@ -40,7 +40,7 @@ public function getType() : ?string * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -51,7 +51,7 @@ public function setType(?string $type) : self * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } @@ -62,7 +62,7 @@ public function getMessage() : ?string * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/ApiLog/Normalizer/ApiLogsNormalizer.php b/generated/ApiLog/Normalizer/ApiLogsNormalizer.php index 29cac57..0954117 100644 --- a/generated/ApiLog/Normalizer/ApiLogsNormalizer.php +++ b/generated/ApiLog/Normalizer/ApiLogsNormalizer.php @@ -12,81 +12,177 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ApiLogsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ApiLogsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\ApiLogs'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\ApiLogs'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class; } - $object = new \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('api_logs', $data) && $data['api_logs'] !== null) { + $values = []; + foreach ($data['api_logs'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setApiLogs($values); + unset($data['api_logs']); + } + elseif (\array_key_exists('api_logs', $data) && $data['api_logs'] === null) { + $object->setApiLogs(null); + } + if (\array_key_exists('cursor', $data) && $data['cursor'] !== null) { + $object->setCursor($data['cursor']); + unset($data['cursor']); + } + elseif (\array_key_exists('cursor', $data) && $data['cursor'] === null) { + $object->setCursor(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('api_logs', $data) && $data['api_logs'] !== null) { - $values = array(); - foreach ($data['api_logs'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getApiLogs() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setApiLogs($values); - unset($data['api_logs']); - } - elseif (\array_key_exists('api_logs', $data) && $data['api_logs'] === null) { - $object->setApiLogs(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['api_logs'] = $values; + if ($object->isInitialized('cursor') && null !== $object->getCursor()) { + $data['cursor'] = $object->getCursor(); } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class ApiLogsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getApiLogs() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('api_logs', $data) && $data['api_logs'] !== null) { + $values = []; + foreach ($data['api_logs'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setApiLogs($values); + unset($data['api_logs']); + } + elseif (\array_key_exists('api_logs', $data) && $data['api_logs'] === null) { + $object->setApiLogs(null); + } + if (\array_key_exists('cursor', $data) && $data['cursor'] !== null) { + $object->setCursor($data['cursor']); + unset($data['cursor']); + } + elseif (\array_key_exists('cursor', $data) && $data['cursor'] === null) { + $object->setCursor(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['api_logs'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getApiLogs() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['api_logs'] = $values; + if ($object->isInitialized('cursor') && null !== $object->getCursor()) { + $data['cursor'] = $object->getCursor(); } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\ApiLogs' => false); } } \ No newline at end of file diff --git a/generated/ApiLog/Normalizer/ErrorNormalizer.php b/generated/ApiLog/Normalizer/ErrorNormalizer.php index 727600a..f6c6a62 100644 --- a/generated/ApiLog/Normalizer/ErrorNormalizer.php +++ b/generated/ApiLog/Normalizer/ErrorNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/ApiLog/Normalizer/JaneObjectNormalizer.php b/generated/ApiLog/Normalizer/JaneObjectNormalizer.php index 0443b6a..19639cd 100644 --- a/generated/ApiLog/Normalizer/JaneObjectNormalizer.php +++ b/generated/ApiLog/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,115 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\ApiLogs' => 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Normalizer\\ApiLogsNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class => \AntiPatternInc\Saasus\Sdk\ApiLog\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class => \AntiPatternInc\Saasus\Sdk\ApiLog\Normalizer\ApiLogsNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\ApiLog\\Model\\ApiLogs' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class => \AntiPatternInc\Saasus\Sdk\ApiLog\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class => \AntiPatternInc\Saasus\Sdk\ApiLog\Normalizer\ApiLogsNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\ApiLog\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\ApiLog\Model\ApiLogs::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/ApiLog/Runtime/Client/BaseEndpoint.php b/generated/ApiLog/Runtime/Client/BaseEndpoint.php index f5bbed1..a0daa0f 100644 --- a/generated/ApiLog/Runtime/Client/BaseEndpoint.php +++ b/generated/ApiLog/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/ApiLog/Runtime/Client/Client.php b/generated/ApiLog/Runtime/Client/Client.php index 546a836..f3f7f0a 100644 --- a/generated/ApiLog/Runtime/Client/Client.php +++ b/generated/ApiLog/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/ApiLog/Runtime/Client/Endpoint.php b/generated/ApiLog/Runtime/Client/Endpoint.php index 1f25829..13b246b 100644 --- a/generated/ApiLog/Runtime/Client/Endpoint.php +++ b/generated/ApiLog/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/ApiLog/Runtime/Client/EndpointTrait.php b/generated/ApiLog/Runtime/Client/EndpointTrait.php index f32e727..d5f5b1d 100644 --- a/generated/ApiLog/Runtime/Client/EndpointTrait.php +++ b/generated/ApiLog/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/ApiLog/Runtime/Normalizer/CheckArray.php b/generated/ApiLog/Runtime/Normalizer/CheckArray.php index a541e85..e9ac47a 100644 --- a/generated/ApiLog/Runtime/Normalizer/CheckArray.php +++ b/generated/ApiLog/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/ApiLog/Runtime/Normalizer/ReferenceNormalizer.php b/generated/ApiLog/Runtime/Normalizer/ReferenceNormalizer.php index fe1798e..5d1314e 100644 --- a/generated/ApiLog/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/ApiLog/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/ApiLog/Runtime/Normalizer/ValidationException.php b/generated/ApiLog/Runtime/Normalizer/ValidationException.php index 26bff88..8d16e77 100644 --- a/generated/ApiLog/Runtime/Normalizer/ValidationException.php +++ b/generated/ApiLog/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/ApiLog/Runtime/Normalizer/ValidatorTrait.php b/generated/ApiLog/Runtime/Normalizer/ValidatorTrait.php index 84846fa..3257623 100644 --- a/generated/ApiLog/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/ApiLog/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\ApiLog\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); diff --git a/generated/Auth/Authentication/BearerAuthentication.php b/generated/Auth/Authentication/BearerAuthentication.php index bdebbbe..a852c2e 100644 --- a/generated/Auth/Authentication/BearerAuthentication.php +++ b/generated/Auth/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/Auth/Client.php b/generated/Auth/Client.php index 954c1c7..44a7bf4 100644 --- a/generated/Auth/Client.php +++ b/generated/Auth/Client.php @@ -5,19 +5,14 @@ class Client extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Client { /** - * SaaS利用ユーザ(登録ユーザ)のIDトークンを元に、ユーザ情報を取得します。 - IDトークンは、SaaSus Platform生成のログイン画面からログイン時にCallback URLに渡されます。 - サーバ側でそのURLからIDトークンを取得し、このAPIを呼ぶことにより、該当ユーザの情報が取得できます。 - 取得した上には、所属テナントや役割(ロール)、料金プランなどが含まれているため、それを元に認可の実装を行うことが可能です。 - - User information is obtained based on the ID token of the SaaS user (registered user). + * User information is obtained based on the ID token of the SaaS user (registered user). The ID token is passed to the Callback URL during login from the SaaSus Platform generated login screen. User information can be obtained from calling this API with an ID token from the URL on the server side. Since the acquired tenant, role (role), price plan, etc. are included, it is possible to implement authorization based on it. * * @param array $queryParameters { - * @var string $token IDトークン(ID Token) + * @var string $token ID Token * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserInfoUnauthorizedException @@ -25,7 +20,7 @@ class Client extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Client * * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo|\Psr\Http\Message\ResponseInterface */ - public function getUserInfo(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) + public function getUserInfo(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetUserInfo($queryParameters), $fetch); } @@ -40,11 +35,7 @@ public function getBasicInfo(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetBasicInfo(), $fetch); } /** - * SaaS ID を元にパラメータとして設定したドメイン名を設定更新します。 - CNAME レコードが生成されますので、 DNS に設定して下さい。 - 既に稼働中の SaaS アプリケーションに設定している場合には、動作に影響があります。 - - Update the domain name that was set as a parameter based on the SaaS ID. + * Update the domain name that was set as a parameter based on the SaaS ID. After the CNAME record is generated, set it in your DNS. If it is set on a SaaS application that is already running, it will affect the behavior. @@ -70,10 +61,7 @@ public function getAuthInfo(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetAuthInfo(), $fetch); } /** - * ログイン後に認証情報を渡す SaaS の URL を登録します。 - ここで登録した URL に認証情報を渡し、SaaSus SDK を利用してこの Callback の実装をすることが可能となります。 - - Register post-login SaaS URL for authentication information. + * Register post-login SaaS URL for authentication information. It is possible to pass authentication information to the URL registered here and implement this Callback using the SaaSus SDK. * @@ -98,103 +86,83 @@ public function getSaasUsers(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetSaasUsers(), $fetch); } /** - * SaaSにユーザーを作成します。 - - Create SaaS User. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser|\Psr\Http\Message\ResponseInterface - */ + * Create SaaS User. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser|\Psr\Http\Message\ResponseInterface + */ public function createSaasUser(?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateSaasUser($requestBody), $fetch); } /** - * ユーザーIDを元に一致するユーザーをテナントからすべて削除し、SaaSからも削除します。 - - Delete all users with matching user ID from the tenant and SaaS. - - * - * @param string $userId ユーザーID(User ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete all users with matching user ID from the tenant and SaaS. + * + * @param string $userId User ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteSaasUser(string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteSaasUser($userId), $fetch); } /** - * ユーザーIDからユーザー情報を取得します。 - - Get user information based on user ID. - - * - * @param string $userId ユーザーID(User ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser|\Psr\Http\Message\ResponseInterface - */ + * Get user information based on user ID. + * + * @param string $userId User ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser|\Psr\Http\Message\ResponseInterface + */ public function getSaasUser(string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetSaasUser($userId), $fetch); } /** - * ユーザーのログインパスワードを変更します。 - - Change user's login password. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserPasswordInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Change user's login password. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserPasswordInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateSaasUserPassword(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateSaasUserPassword($userId, $requestBody), $fetch); } /** - * ユーザーのメールアドレスを変更します。 - - Change user's email. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserEmailInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Change user's email. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserEmailInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateSaasUserEmail(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateSaasUserEmail($userId, $requestBody), $fetch); } /** - * ユーザーのメールアドレス変更を要求します。 - 要求されたメールアドレスに対して検証コードを送信します。 - ユーザーのアクセストークンが必要です。 - 検証コードの有効期限は24時間です。 - - Request to update the user's email address. + * Request to update the user's email address. Sends a verification code to the requested email address. Requires the user's access token. The verification code is valid for 24 hours. * - * @param string $userId ユーザーID(User ID) + * @param string $userId User ID * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestEmailUpdateInternalServerErrorException @@ -206,14 +174,11 @@ public function requestEmailUpdate(string $userId, ?\AntiPatternInc\Saasus\Sdk\A return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\RequestEmailUpdate($userId, $requestBody), $fetch); } /** - * ユーザーのメールアドレス変更確認のためにコードを検証します。 - ユーザーのアクセストークンが必要です。 - - Verify the code to confirm the user's email address update. + * Verify the code to confirm the user's email address update. Requires the user's access token. * - * @param string $userId ユーザーID(User ID) + * @param string $userId User ID * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmEmailUpdateInternalServerErrorException @@ -225,85 +190,70 @@ public function confirmEmailUpdate(string $userId, ?\AntiPatternInc\Saasus\Sdk\A return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ConfirmEmailUpdate($userId, $requestBody), $fetch); } /** - * 認証アプリケーションを登録します。 - - Register an authentication application. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSoftwareTokenInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Register an authentication application. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSoftwareTokenInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateSoftwareToken(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateSoftwareToken($userId, $requestBody), $fetch); } /** - * 認証アプリケーション登録用のシークレットコードを作成します。 - - Create a secret code for authentication application registration. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSecretCodeInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode|\Psr\Http\Message\ResponseInterface - */ + * Create a secret code for authentication application registration. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSecretCodeInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode|\Psr\Http\Message\ResponseInterface + */ public function createSecretCode(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateSecretCode($userId, $requestBody), $fetch); } /** - * ユーザーのMFA設定を取得します。 - - Get the user's MFA settings. - - * - * @param string $userId ユーザーID(User ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserMfaPreferenceInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference|\Psr\Http\Message\ResponseInterface - */ + * Get the user's MFA settings. + * + * @param string $userId User ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserMfaPreferenceInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference|\Psr\Http\Message\ResponseInterface + */ public function getUserMfaPreference(string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetUserMfaPreference($userId), $fetch); } /** - * ユーザーのMFA設定を更新します。 - - Update user's MFA settings. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateUserMfaPreferenceInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update user's MFA settings. + * + * @param string $userId User ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateUserMfaPreferenceInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateUserMfaPreference(string $userId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateUserMfaPreference($userId, $requestBody), $fetch); } /** - * 外部IDプロバイダの連携を解除します。 - - Unlink external identity providers. - - * - * @param string $providerName - * @param string $userId ユーザーID(User ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UnlinkProviderInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Unlink external identity providers. + * + * @param string $providerName + * @param string $userId User ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UnlinkProviderInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function unlinkProvider(string $providerName, string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UnlinkProvider($providerName, $userId), $fetch); @@ -319,14 +269,11 @@ public function getAllTenantUsers(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetAllTenantUsers(), $fetch); } /** - * ユーザーIDからテナントに所属しているユーザー情報を取得します。 - 複数テナントに所属している場合は別のオブジェクトとして返却されます。 - - Get information on user belonging to the tenant from the user ID. + * Get information on user belonging to the tenant from the user ID. If the user belongs to multiple tenants, it will be returned as another object. * - * @param string $userId ユーザーID(User ID) + * @param string $userId User ID * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUserNotFoundException * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUserInternalServerErrorException @@ -338,13 +285,11 @@ public function getAllTenantUser(string $userId, string $fetch = self::FETCH_OBJ return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetAllTenantUser($userId), $fetch); } /** - * テナントに所属するユーザーを全件取得します。 idは一意です。 - - Get all the users belonging to the tenant. + * Get all the users belonging to the tenant. Id is unique. * - * @param string $tenantId テナントID(Tenant ID) + * @param string $tenantId Tenant ID * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUsersInternalServerErrorException * @@ -355,14 +300,11 @@ public function getTenantUsers(string $tenantId, string $fetch = self::FETCH_OBJ return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenantUsers($tenantId), $fetch); } /** - * テナントにユーザーを作成します。 - attributesを空のオブジェクトにした場合、追加属性は空で作成されます。 - - Create a tenant user. + * Create a tenant user. If attributes is empty, the additional attributes will be created empty. * - * @param string $tenantId テナントID(Tenant ID) + * @param string $tenantId Tenant ID * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserInternalServerErrorException @@ -374,95 +316,80 @@ public function createTenantUser(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\A return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateTenantUser($tenantId, $requestBody), $fetch); } /** - * テナントからユーザーを削除します。 - - Delete a user from your tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete a user from the tenant. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteTenantUser(string $tenantId, string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteTenantUser($tenantId, $userId), $fetch); } /** - * テナントのユーザーをIDから一件取得します。 - - Get one tenant user by specific ID. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\User|\Psr\Http\Message\ResponseInterface - */ + * Get one tenant user by specific ID. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\User|\Psr\Http\Message\ResponseInterface + */ public function getTenantUser(string $tenantId, string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenantUser($tenantId, $userId), $fetch); } /** - * テナントのユーザー属性情報を更新します。 - - Update tenant user attributes. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update tenant user attributes. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateTenantUser(string $tenantId, string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateTenantUser($tenantId, $userId, $requestBody), $fetch); } /** - * テナントのユーザーに役割(ロール)を作成します。 - - Create roles on tenant users. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param int $envId 環境ID(Env ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserRolesInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Create roles on tenant users. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param int $envId Env ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserRolesInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function createTenantUserRoles(string $tenantId, string $userId, int $envId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateTenantUserRoles($tenantId, $userId, $envId, $requestBody), $fetch); } /** - * テナントのユーザーから役割(ロール)を削除します。 - - Remove a role from a tenant user. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param int $envId 環境ID(Env ID) - * @param string $roleName 役割(ロール)名(role name) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Remove a role from a tenant user. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param int $envId Env ID + * @param string $roleName Role name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteTenantUserRole(string $tenantId, string $userId, int $envId, string $roleName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteTenantUserRole($tenantId, $userId, $envId, $roleName), $fetch); @@ -478,11 +405,7 @@ public function getRoles(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetRoles(), $fetch); } /** - * 役割(ロール)を作成します。 - ここで作成した役割をユーザーに付与することによって、SaaS側で役割ベースの認可を実装することが用意になります。 - また、同じユーザーでも、属するテナント・環境ごとに持っている役割を変えることが可能です。 - - Create a role. + * Create a role. By granting users the roles created here, it becomes easier to implement role-based authorization on the SaaS side. In addition, even the same user can have different roles for each tenant/environment to which they belong. @@ -498,19 +421,16 @@ public function createRole(?\stdClass $requestBody = null, string $fetch = self: return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateRole($requestBody), $fetch); } /** - * 役割(ロール)を削除します。 - - Delete role. - - * - * @param string $roleName 役割(ロール)名(role name) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete role. + * + * @param string $roleName Role name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteRole(string $roleName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteRole($roleName), $fetch); @@ -526,11 +446,7 @@ public function getUserAttributes(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetUserAttributes(), $fetch); } /** - * SaaSus Platform にて保持するユーザーの追加属性を登録します。 - 例えば、ユーザー名を持たせる、誕生日を持たせるなど、ユーザーに紐付いた項目の定義を行うことができます。 - 一方で、個人情報を SaaSus Platform 側に持たせたくない場合は、このユーザー属性定義を行わずに SaaS 側で個人情報を持つことを検討してください。 - - Create additional user attributes to be kept on the SaaSus Platform. + * Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. @@ -546,18 +462,15 @@ public function createUserAttribute(?\stdClass $requestBody = null, string $fetc return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateUserAttribute($requestBody), $fetch); } /** - * SaaSus Platform にて保持するユーザーの追加属性を削除します。 - - Delete user attributes kept on the SaaSus Platform. - - * - * @param string $attributeName 属性名(Attribute Name) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete user attributes kept on the SaaSus Platform. + * + * @param string $attributeName Attribute Name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteUserAttribute(string $attributeName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteUserAttribute($attributeName), $fetch); @@ -573,10 +486,7 @@ public function getTenantAttributes(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenantAttributes(), $fetch); } /** - * SaaSus Platform で管理する、テナントの追加属性の登録を行います。 - 例えばテナントの呼び名やメモなどをを持たせることができ、SaaSからSaaSus SDK/APIを利用して取得することができます。 - - Register additional tenant attributes to be managed by SaaSus Platform. + * Register additional tenant attributes to be managed by SaaSus Platform. For example, tenant name, memo, etc., then get the attributes from SaaS using the SaaSus SDK/API. * @@ -591,18 +501,15 @@ public function createTenantAttribute(?\stdClass $requestBody = null, string $fe return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateTenantAttribute($requestBody), $fetch); } /** - * SaaSus Platform で管理する、テナントの追加属性の削除を行います。 - - Deletes tenant attributes managed by SaaSus Platform. - - * - * @param string $attributeName 属性名(Attribute Name) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Deletes tenant attributes managed by SaaSus Platform. + * + * @param string $attributeName Attribute Name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteTenantAttribute(string $attributeName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteTenantAttribute($attributeName), $fetch); @@ -618,255 +525,209 @@ public function getTenants(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenants(), $fetch); } /** - * SaaSus Platform で管理する、テナント情報を作成します。 - - Create a tenant managed by the SaaSus Platform. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant|\Psr\Http\Message\ResponseInterface - */ + * Create a tenant managed by the SaaSus Platform. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant|\Psr\Http\Message\ResponseInterface + */ public function createTenant(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateTenant($requestBody), $fetch); } /** - * SaaSus Platform で管理する、テナントの詳細情報を削除します。 - - Delete SaaSus Platform tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete SaaSus Platform tenant. + * + * @param string $tenantId Tenant ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteTenant(string $tenantId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteTenant($tenantId), $fetch); } /** - * SaaSus Platform で管理する、テナントの詳細情報を取得します。 - - Get the details of tenant managed on the SaaSus Platform. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail|\Psr\Http\Message\ResponseInterface - */ + * Get the details of tenant managed on the SaaSus Platform. + * + * @param string $tenantId Tenant ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail|\Psr\Http\Message\ResponseInterface + */ public function getTenant(string $tenantId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenant($tenantId), $fetch); } /** - * SaaSus Platform で管理する、テナントの詳細情報を更新します。 - - Update SaaSus Platform tenant details. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update SaaSus Platform tenant details. + * + * @param string $tenantId Tenant ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateTenant(string $tenantId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateTenant($tenantId, $requestBody), $fetch); } /** - * SaaSus Platform で管理しているテナントのプラン情報を更新します。 - - Update SaaSus Platform tenant plan information. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update SaaSus Platform tenant plan information. + * + * @param string $tenantId Tenant ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateTenantPlan(string $tenantId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateTenantPlan($tenantId, $requestBody), $fetch); } /** - * SaaSus Platform で管理しているテナントの請求先情報を更新します。 - - Update SaaSus Platform tenant billing information. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update SaaSus Platform tenant billing information. + * + * @param string $tenantId Tenant ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateTenantBillingInfo(string $tenantId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateTenantBillingInfo($tenantId, $requestBody), $fetch); } /** - * テナントへの招待一覧を取得します。 - - Get a list of invitations to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationsInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations|\Psr\Http\Message\ResponseInterface - */ + * Get a list of invitations to the tenant. + * + * @param string $tenantId Tenant ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationsInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations|\Psr\Http\Message\ResponseInterface + */ public function getTenantInvitations(string $tenantId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenantInvitations($tenantId), $fetch); } /** - * テナントへの招待を作成します。 - - Create an invitation to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation|\Psr\Http\Message\ResponseInterface - */ + * Create an invitation to the tenant. + * + * @param string $tenantId Tenant ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation|\Psr\Http\Message\ResponseInterface + */ public function createTenantInvitation(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateTenantInvitation($tenantId, $requestBody), $fetch); } /** - * テナントへの招待を削除します。 - - Delete an invitation to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $invitationId 招待ID(Invitation ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete an invitation for the tenant. + * + * @param string $tenantId Tenant ID + * @param string $invitationId Invitation ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteTenantInvitation(string $tenantId, string $invitationId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteTenantInvitation($tenantId, $invitationId), $fetch); } /** - * テナントへの招待情報を取得します。 - - Get invitation information to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $invitationId 招待ID(Invitation ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation|\Psr\Http\Message\ResponseInterface - */ + * Get invitation information for the tenant. + * + * @param string $tenantId Tenant ID + * @param string $invitationId Invitation ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation|\Psr\Http\Message\ResponseInterface + */ public function getTenantInvitation(string $tenantId, string $invitationId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenantInvitation($tenantId, $invitationId), $fetch); } /** - * テナントへの招待の有効性を取得します。 - - Get the validity of an invitation to the tenant. - - * - * @param string $invitationId 招待ID(Invitation ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity|\Psr\Http\Message\ResponseInterface - */ + * Get the validity of an invitation to the tenant. + * + * @param string $invitationId Invitation ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity|\Psr\Http\Message\ResponseInterface + */ public function getInvitationValidity(string $invitationId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetInvitationValidity($invitationId), $fetch); } /** - * テナントへの招待を検証します。 - - Validate an invitation to the tenant. - - * - * @param string $invitationId 招待ID(Invitation ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Validate an invitation to the tenant. + * + * @param string $invitationId Invitation ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function validateInvitation(string $invitationId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ValidateInvitation($invitationId, $requestBody), $fetch); } /** - * テナント毎の外部IDプロバイダ経由のサインイン情報を取得します。 - - Get sign-in information via external identity provider per tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantIdentityProvidersInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders|\Psr\Http\Message\ResponseInterface - */ + * Get sign-in information via external identity provider per tenant. + * + * @param string $tenantId Tenant ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantIdentityProvidersInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders|\Psr\Http\Message\ResponseInterface + */ public function getTenantIdentityProviders(string $tenantId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetTenantIdentityProviders($tenantId), $fetch); } /** - * テナント毎の外部IDプロバイダ経由のサインイン情報を更新します。 - - Update sign-in information via external identity provider per tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantIdentityProviderInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update sign-in information via external identity provider per tenant. + * + * @param string $tenantId Tenant ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantIdentityProviderInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateTenantIdentityProvider(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateTenantIdentityProvider($tenantId, $requestBody), $fetch); } /** - * 外部アカウントのユーザー連携を要求します。 - アクセストークンから連携するユーザーのメールアドレスを取得し、そのメールアドレスに対して検証コードを送信します。 - 検証コードの有効期限は24時間です。 - - Request to link an external account user. + * Request to link an external account user. Get the email address of the user to be linked from the access token and send a verification code to that email address. The verification code is valid for 24 hours. @@ -883,18 +744,15 @@ public function requestExternalUserLink(?\AntiPatternInc\Saasus\Sdk\Auth\Model\R return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\RequestExternalUserLink($requestBody), $fetch); } /** - * 外部アカウントのユーザー連携確認のためにコードを検証します。 - - Verify the code for external account user link confirmation. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Verify the code for external account user link confirmation. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function confirmExternalUserLink(?\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ConfirmExternalUserLink($requestBody), $fetch); @@ -910,17 +768,14 @@ public function findNotificationMessages(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\FindNotificationMessages(), $fetch); } /** - * 各種通知メールテンプレート更新します。 - - Update notification email template. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateNotificationMessagesInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update notification email template. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateNotificationMessagesInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateNotificationMessages(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateNotificationMessages($requestBody), $fetch); @@ -936,7 +791,7 @@ public function getIdentityProviders(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetIdentityProviders(), $fetch); } /** - * 外部IDプロバイダのサインイン情報更新 + * Update the sign-in information for the external ID provider * * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -959,10 +814,7 @@ public function getSignInSettings(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetSignInSettings(), $fetch); } /** - * ユーザーパスワードの要件設定を更新します。 - アルファベット、数字、記号の組み合わせで、桁数を長くすれば解読されづらい安全なパスワードを設定することが可能となります。 - - Update user password requirements. + * Update user password requirements. Set a secure password that is difficult to decipher by increasing the number of digits by combining alphabets, numbers, and symbols. * @@ -987,17 +839,14 @@ public function getCustomizePages(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetCustomizePages(), $fetch); } /** - * 認証系画面設定情報(新規登録・ログイン・パスワードリセット等)を更新します。 - - Update the authentication page setting information (new registration, login, password reset, etc.). - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePagesInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update the authentication page setting information (new registration, login, password reset, etc.). + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePagesInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateCustomizePages(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateCustomizePages($requestBody), $fetch); @@ -1013,17 +862,14 @@ public function getCustomizePageSettings(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetCustomizePageSettings(), $fetch); } /** - * 認証認可基本情報を更新します。 - - Update authentication authorization basic information. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePageSettingsInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update authentication authorization basic information. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePageSettingsInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateCustomizePageSettings(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateCustomizePageSettings($requestBody), $fetch); @@ -1039,10 +885,7 @@ public function getEnvs(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetEnvs(), $fetch); } /** - * 環境情報を作成します。 - 連携のテストや開発用環境や実際の運用で利用する環境など複数の環境を定義することができます。 - - Create environment information. + * Create environment information. Multiple environments can be defined, such as an environment for testing linkage, an environment for development, and an environment for actual operation. * @@ -1057,53 +900,44 @@ public function createEnv(?\stdClass $requestBody = null, string $fetch = self:: return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateEnv($requestBody), $fetch); } /** - * 環境情報を削除します。idが3の環境は削除できません。 - - Delete env info. Env with id 3 cannot be deleted. - - * - * @param int $envId 環境ID(Env ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete env info. Env with id 3 cannot be deleted. + * + * @param int $envId Env ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteEnv(int $envId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteEnv($envId), $fetch); } /** - * 環境情報の詳細を取得します。 - - Get environment details. - - * - * @param int $envId 環境ID(Env ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Env|\Psr\Http\Message\ResponseInterface - */ + * Get environment details. + * + * @param int $envId Env ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Env|\Psr\Http\Message\ResponseInterface + */ public function getEnv(int $envId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetEnv($envId), $fetch); } /** - * 環境情報を更新します。 - - Update env info. - - * - * @param int $envId 環境ID(Env ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update env info. + * + * @param int $envId Env ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateEnv(int $envId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateEnv($envId, $requestBody), $fetch); @@ -1129,19 +963,17 @@ public function deleteStripeTenantAndPricing(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\DeleteStripeTenantAndPricing(), $fetch); } /** - * 一時コードまたはリフレッシュトークンを利用してIDトークン・アクセストークン・リフレッシュトークンを取得する。 - - Get ID token, access token, and refresh token using a temporary code or a refresh token. + * Get ID token, access token, and refresh token using a temporary code or a refresh token. * * @param array $queryParameters { - * @var string $code 一時コード(Temp Code) - * @var string $auth-flow 認証フロー(Authentication Flow) - tempCodeAuth: 一時コードを利用した認証情報の取得 - refreshTokenAuth: リフレッシュトークンを利用した認証情報の取得 - 指定されていない場合は tempCodeAuth になります + * @var string $code Temp Code + * @var string $auth-flow Authentication Flow + tempCodeAuth: Getting authentication information using a temporary code + refreshTokenAuth: Getting authentication information using a refresh token + If not specified, it will be tempCodeAuth - * @var string $refresh-token リフレッシュトークン(Refresh Token) + * @var string $refresh-token Refresh Token * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthCredentialsNotFoundException @@ -1149,15 +981,12 @@ public function deleteStripeTenantAndPricing(string $fetch = self::FETCH_OBJECT) * * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials|\Psr\Http\Message\ResponseInterface */ - public function getAuthCredentials(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) + public function getAuthCredentials(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetAuthCredentials($queryParameters), $fetch); } /** - * 引数のIDトークン・アクセストークン・リフレッシュトークンを一時保存し取得用の一時コードを返却する。 - 一時コードの有効期間は発行から10秒です。 - - Temporarily save the parameter for the ID token, access token, and refresh token and return a temporary code for obtaining. + * Temporarily save the parameter for the ID token, access token, and refresh token and return a temporary code for obtaining. Temporary codes are valid for 10 seconds from issuance. * @@ -1174,42 +1003,33 @@ public function createAuthCredentials(?\stdClass $requestBody = null, string $fe return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\CreateAuthCredentials($requestBody), $fetch); } /** - * ユーザーを新規登録します。登録されたメールアドレスに対して仮パスワードを送信します。 - - Register a new user. A temporary password will be sent to the registered email. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\SignUpInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser|\Psr\Http\Message\ResponseInterface - */ + * Register a new user. A temporary password will be sent to the registered email. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\SignUpInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser|\Psr\Http\Message\ResponseInterface + */ public function signUp(?\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\SignUp($requestBody), $fetch); } /** - * 新規登録時の仮パスワードを再送信します。 - - Resend temporary password for the new registered user. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ResendSignUpConfirmationEmailInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Resend temporary password for the new registered user. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ResendSignUpConfirmationEmailInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function resendSignUpConfirmationEmail(?\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ResendSignUpConfirmationEmail($requestBody), $fetch); } /** - * AWS Marketplaceと連携したユーザーを新規登録します。登録されたメールアドレスに対して仮パスワードを送信します。 - Registration Tokenが有効でない場合はエラーを返却します。 - - Register a new user linked to AWS Marketplace. A temporary password will be sent to the registered email. + * Register a new user linked to AWS Marketplace. A temporary password will be sent to the registered email. If the Registration Token is not valid, an error is returned. * @@ -1224,10 +1044,7 @@ public function signUpWithAwsMarketplace(?\AntiPatternInc\Saasus\Sdk\Auth\Model\ return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\SignUpWithAwsMarketplace($requestBody), $fetch); } /** - * AWS Marketplaceと連携したユーザー新規登録を確定します。AWS Marketplaceと連携したテナントを新規作成します。 - Registration Tokenが有効でない場合はエラーを返却します。 - - Confirm a new use registeration linked to AWS Marketplace. Create a new tenant linked to AWS Marketplace. + * Confirm a new use registeration linked to AWS Marketplace. Create a new tenant linked to AWS Marketplace. If the Registration Token is not valid, an error is returned. * @@ -1242,10 +1059,7 @@ public function confirmSignUpWithAwsMarketplace(?\AntiPatternInc\Saasus\Sdk\Auth return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ConfirmSignUpWithAwsMarketplace($requestBody), $fetch); } /** - * AWS Marketplaceと既存のテナントを連携します。 - Registration Tokenが有効でない場合はエラーを返却します。 - - Link an existing tenant with AWS Marketplace. + * Link an existing tenant with AWS Marketplace. If the Registration Token is not valid, an error is returned. * @@ -1269,6 +1083,42 @@ public function resetPlan(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ResetPlan(), $fetch); } + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink|\Psr\Http\Message\ResponseInterface + */ + public function getCloudFormationLaunchStackLinkForSingleTenant(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetCloudFormationLaunchStackLinkForSingleTenant(), $fetch); + } + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSingleTenantSettingsInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings|\Psr\Http\Message\ResponseInterface + */ + public function getSingleTenantSettings(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\GetSingleTenantSettings(), $fetch); + } + /** + * Updates configuration information for single-tenant functionality + Returns error if single tenant feature cannot be enabled. + + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSingleTenantSettingsBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSingleTenantSettingsInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ + public function updateSingleTenantSettings(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\UpdateSingleTenantSettings($requestBody), $fetch); + } /** * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\ReturnInternalServerErrorInternalServerErrorException @@ -1279,11 +1129,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Auth\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/auth'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -1294,11 +1144,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ConfirmEmailUpdate.php b/generated/Auth/Endpoint/ConfirmEmailUpdate.php index 46fde8d..c6f727b 100644 --- a/generated/Auth/Endpoint/ConfirmEmailUpdate.php +++ b/generated/Auth/Endpoint/ConfirmEmailUpdate.php @@ -6,14 +6,11 @@ class ConfirmEmailUpdate extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\ { protected $user_id; /** - * ユーザーのメールアドレス変更確認のためにコードを検証します。 - ユーザーのアクセストークンが必要です。 - - Verify the code to confirm the user's email address update. + * Verify the code to confirm the user's email address update. Requires the user's access token. * - * @param string $userId ユーザーID(User ID) + * @param string $userId User ID * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam $requestBody */ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam $requestBody = null) @@ -22,24 +19,24 @@ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Mod $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/email/confirm'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/email/confirm'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -56,11 +53,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmEmailUpdateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmEmailUpdateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ConfirmExternalUserLink.php b/generated/Auth/Endpoint/ConfirmExternalUserLink.php index a1163c4..e9d065b 100644 --- a/generated/Auth/Endpoint/ConfirmExternalUserLink.php +++ b/generated/Auth/Endpoint/ConfirmExternalUserLink.php @@ -5,36 +5,33 @@ class ConfirmExternalUserLink extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 外部アカウントのユーザー連携確認のためにコードを検証します。 - - Verify the code for external account user link confirmation. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam $requestBody - */ + * Verify the code for external account user link confirmation. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/external-users/confirm'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +49,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmExternalUserLinkInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ConfirmSignUpWithAwsMarketplace.php b/generated/Auth/Endpoint/ConfirmSignUpWithAwsMarketplace.php index f52d2fd..dacff03 100644 --- a/generated/Auth/Endpoint/ConfirmSignUpWithAwsMarketplace.php +++ b/generated/Auth/Endpoint/ConfirmSignUpWithAwsMarketplace.php @@ -5,10 +5,7 @@ class ConfirmSignUpWithAwsMarketplace extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * AWS Marketplaceと連携したユーザー新規登録を確定します。AWS Marketplaceと連携したテナントを新規作成します。 - Registration Tokenが有効でない場合はエラーを返却します。 - - Confirm a new use registeration linked to AWS Marketplace. Create a new tenant linked to AWS Marketplace. + * Confirm a new use registeration linked to AWS Marketplace. Create a new tenant linked to AWS Marketplace. If the Registration Token is not valid, an error is returned. * @@ -19,24 +16,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUp $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/aws-marketplace/sign-up-confirm'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmSignUpWithAwsMarketplaceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ConfirmSignUpWithAwsMarketplaceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateAuthCredentials.php b/generated/Auth/Endpoint/CreateAuthCredentials.php index 3a15d25..6ff1ad3 100644 --- a/generated/Auth/Endpoint/CreateAuthCredentials.php +++ b/generated/Auth/Endpoint/CreateAuthCredentials.php @@ -5,10 +5,7 @@ class CreateAuthCredentials extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 引数のIDトークン・アクセストークン・リフレッシュトークンを一時保存し取得用の一時コードを返却する。 - 一時コードの有効期間は発行から10秒です。 - - Temporarily save the parameter for the ID token, access token, and refresh token and return a temporary code for obtaining. + * Temporarily save the parameter for the ID token, access token, and refresh token and return a temporary code for obtaining. Temporary codes are valid for 10 seconds from issuance. * @@ -19,24 +16,24 @@ public function __construct(?\stdClass $requestBody = null) $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/credentials'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,20 +49,20 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthorizationTempCode', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode', 'json'); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateAuthCredentialsBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateAuthCredentialsBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateAuthCredentialsUnauthorizedException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateAuthCredentialsUnauthorizedException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateAuthCredentialsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateAuthCredentialsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateEnv.php b/generated/Auth/Endpoint/CreateEnv.php index 8081324..a365344 100644 --- a/generated/Auth/Endpoint/CreateEnv.php +++ b/generated/Auth/Endpoint/CreateEnv.php @@ -5,10 +5,7 @@ class CreateEnv extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 環境情報を作成します。 - 連携のテストや開発用環境や実際の運用で利用する環境など複数の環境を定義することができます。 - - Create environment information. + * Create environment information. Multiple environments can be defined, such as an environment for testing linkage, an environment for development, and an environment for actual operation. * @@ -19,24 +16,24 @@ public function __construct(?\stdClass $requestBody = null) $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/envs'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Env', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateRole.php b/generated/Auth/Endpoint/CreateRole.php index f4a47b1..d1b088a 100644 --- a/generated/Auth/Endpoint/CreateRole.php +++ b/generated/Auth/Endpoint/CreateRole.php @@ -5,11 +5,7 @@ class CreateRole extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 役割(ロール)を作成します。 - ここで作成した役割をユーザーに付与することによって、SaaS側で役割ベースの認可を実装することが用意になります。 - また、同じユーザーでも、属するテナント・環境ごとに持っている役割を変えることが可能です。 - - Create a role. + * Create a role. By granting users the roles created here, it becomes easier to implement role-based authorization on the SaaS side. In addition, even the same user can have different roles for each tenant/environment to which they belong. @@ -21,24 +17,24 @@ public function __construct(?\stdClass $requestBody = null) $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/roles'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +48,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Role', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateRoleInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateRoleInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateSaasUser.php b/generated/Auth/Endpoint/CreateSaasUser.php index b6ef4c3..fbe2f97 100644 --- a/generated/Auth/Endpoint/CreateSaasUser.php +++ b/generated/Auth/Endpoint/CreateSaasUser.php @@ -5,36 +5,33 @@ class CreateSaasUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * SaaSにユーザーを作成します。 - - Create SaaS User. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam $requestBody - */ + * Create SaaS User. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/users'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,17 +46,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser', 'json'); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSaasUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateSecretCode.php b/generated/Auth/Endpoint/CreateSecretCode.php index e21685b..08226fb 100644 --- a/generated/Auth/Endpoint/CreateSecretCode.php +++ b/generated/Auth/Endpoint/CreateSecretCode.php @@ -6,38 +6,35 @@ class CreateSecretCode extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Ba { protected $user_id; /** - * 認証アプリケーション登録用のシークレットコードを作成します。 - - Create a secret code for authentication application registration. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam $requestBody - */ + * Create a secret code for authentication application registration. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam $requestBody + */ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam $requestBody = null) { $this->user_id = $userId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/mfa/software-token/secret-code'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/mfa/software-token/secret-code'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,14 +48,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SoftwareTokenSecretCode', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSecretCodeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateSecretCodeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateTenant.php b/generated/Auth/Endpoint/CreateTenant.php index 6738964..1965653 100644 --- a/generated/Auth/Endpoint/CreateTenant.php +++ b/generated/Auth/Endpoint/CreateTenant.php @@ -5,36 +5,33 @@ class CreateTenant extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * SaaSus Platform で管理する、テナント情報を作成します。 - - Create a tenant managed by the SaaSus Platform. - - * - * @param null|\stdClass $requestBody - */ + * Create a tenant managed by the SaaSus Platform. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/tenants'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -48,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateTenantAndPricing.php b/generated/Auth/Endpoint/CreateTenantAndPricing.php index 0b9e35c..5a6750f 100644 --- a/generated/Auth/Endpoint/CreateTenantAndPricing.php +++ b/generated/Auth/Endpoint/CreateTenantAndPricing.php @@ -5,21 +5,21 @@ class CreateTenantAndPricing extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { return '/stripe/init'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantAndPricingInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantAndPricingInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateTenantAttribute.php b/generated/Auth/Endpoint/CreateTenantAttribute.php index aac5288..6540c9d 100644 --- a/generated/Auth/Endpoint/CreateTenantAttribute.php +++ b/generated/Auth/Endpoint/CreateTenantAttribute.php @@ -5,10 +5,7 @@ class CreateTenantAttribute extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * SaaSus Platform で管理する、テナントの追加属性の登録を行います。 - 例えばテナントの呼び名やメモなどをを持たせることができ、SaaSからSaaSus SDK/APIを利用して取得することができます。 - - Register additional tenant attributes to be managed by SaaSus Platform. + * Register additional tenant attributes to be managed by SaaSus Platform. For example, tenant name, memo, etc., then get the attributes from SaaS using the SaaSus SDK/API. * @@ -19,24 +16,24 @@ public function __construct(?\stdClass $requestBody = null) $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/tenant-attributes'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateTenantInvitation.php b/generated/Auth/Endpoint/CreateTenantInvitation.php index 88fec56..821e1d1 100644 --- a/generated/Auth/Endpoint/CreateTenantInvitation.php +++ b/generated/Auth/Endpoint/CreateTenantInvitation.php @@ -6,38 +6,35 @@ class CreateTenantInvitation extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Cli { protected $tenant_id; /** - * テナントへの招待を作成します。 - - Create an invitation to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam $requestBody - */ + * Create an invitation to the tenant. + * + * @param string $tenantId Tenant ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam $requestBody + */ public function __construct(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam $requestBody = null) { $this->tenant_id = $tenantId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/invitations'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/invitations'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,17 +49,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation', 'json'); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateTenantUser.php b/generated/Auth/Endpoint/CreateTenantUser.php index cdf9c1e..337d271 100644 --- a/generated/Auth/Endpoint/CreateTenantUser.php +++ b/generated/Auth/Endpoint/CreateTenantUser.php @@ -6,14 +6,11 @@ class CreateTenantUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Ba { protected $tenant_id; /** - * テナントにユーザーを作成します。 - attributesを空のオブジェクトにした場合、追加属性は空で作成されます。 - - Create a tenant user. + * Create a tenant user. If attributes is empty, the additional attributes will be created empty. * - * @param string $tenantId テナントID(Tenant ID) + * @param string $tenantId Tenant ID * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam $requestBody */ public function __construct(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam $requestBody = null) @@ -22,24 +19,24 @@ public function __construct(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\Auth\M $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/users'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/users'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,14 +50,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\User', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateTenantUserRoles.php b/generated/Auth/Endpoint/CreateTenantUserRoles.php index 0736213..29a8106 100644 --- a/generated/Auth/Endpoint/CreateTenantUserRoles.php +++ b/generated/Auth/Endpoint/CreateTenantUserRoles.php @@ -8,16 +8,13 @@ class CreateTenantUserRoles extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Clie protected $user_id; protected $env_id; /** - * テナントのユーザーに役割(ロール)を作成します。 - - Create roles on tenant users. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param int $envId 環境ID(Env ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam $requestBody - */ + * Create roles on tenant users. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param int $envId Env ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam $requestBody + */ public function __construct(string $tenantId, string $userId, int $envId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam $requestBody = null) { $this->tenant_id = $tenantId; @@ -26,24 +23,24 @@ public function __construct(string $tenantId, string $userId, int $envId, ?\Anti $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{user_id}', '{env_id}'), array($this->tenant_id, $this->user_id, $this->env_id), '/tenants/{tenant_id}/users/{user_id}/envs/{env_id}/roles'); + return str_replace(['{tenant_id}', '{user_id}', '{env_id}'], [$this->tenant_id, $this->user_id, $this->env_id], '/tenants/{tenant_id}/users/{user_id}/envs/{env_id}/roles'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -60,11 +57,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserRolesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateTenantUserRolesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/CreateUserAttribute.php b/generated/Auth/Endpoint/CreateUserAttribute.php index 1827c7a..3a62285 100644 --- a/generated/Auth/Endpoint/CreateUserAttribute.php +++ b/generated/Auth/Endpoint/CreateUserAttribute.php @@ -5,11 +5,7 @@ class CreateUserAttribute extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * SaaSus Platform にて保持するユーザーの追加属性を登録します。 - 例えば、ユーザー名を持たせる、誕生日を持たせるなど、ユーザーに紐付いた項目の定義を行うことができます。 - 一方で、個人情報を SaaSus Platform 側に持たせたくない場合は、このユーザー属性定義を行わずに SaaS 側で個人情報を持つことを検討してください。 - - Create additional user attributes to be kept on the SaaSus Platform. + * Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. @@ -21,24 +17,24 @@ public function __construct(?\stdClass $requestBody = null) $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/user-attributes'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +48,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateUserAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\CreateUserAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteEnv.php b/generated/Auth/Endpoint/DeleteEnv.php index 84f21fd..6acb085 100644 --- a/generated/Auth/Endpoint/DeleteEnv.php +++ b/generated/Auth/Endpoint/DeleteEnv.php @@ -6,33 +6,30 @@ class DeleteEnv extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpo { protected $env_id; /** - * 環境情報を削除します。idが3の環境は削除できません。 - - Delete env info. Env with id 3 cannot be deleted. - - * - * @param int $envId 環境ID(Env ID) - */ + * Delete env info. Env with id 3 cannot be deleted. + * + * @param int $envId Env ID + */ public function __construct(int $envId) { $this->env_id = $envId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{env_id}'), array($this->env_id), '/envs/{env_id}'); + return str_replace(['{env_id}'], [$this->env_id], '/envs/{env_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteRole.php b/generated/Auth/Endpoint/DeleteRole.php index c1575e8..4ffb6d6 100644 --- a/generated/Auth/Endpoint/DeleteRole.php +++ b/generated/Auth/Endpoint/DeleteRole.php @@ -6,33 +6,30 @@ class DeleteRole extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndp { protected $role_name; /** - * 役割(ロール)を削除します。 - - Delete role. - - * - * @param string $roleName 役割(ロール)名(role name) - */ + * Delete role. + * + * @param string $roleName Role name + */ public function __construct(string $roleName) { $this->role_name = $roleName; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{role_name}'), array($this->role_name), '/roles/{role_name}'); + return str_replace(['{role_name}'], [$this->role_name], '/roles/{role_name}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,17 +48,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteRoleInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteSaasUser.php b/generated/Auth/Endpoint/DeleteSaasUser.php index e94010b..ddedca6 100644 --- a/generated/Auth/Endpoint/DeleteSaasUser.php +++ b/generated/Auth/Endpoint/DeleteSaasUser.php @@ -6,33 +6,30 @@ class DeleteSaasUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Base { protected $user_id; /** - * ユーザーIDを元に一致するユーザーをテナントからすべて削除し、SaaSからも削除します。 - - Delete all users with matching user ID from the tenant and SaaS. - - * - * @param string $userId ユーザーID(User ID) - */ + * Delete all users with matching user ID from the tenant and SaaS. + * + * @param string $userId User ID + */ public function __construct(string $userId) { $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteSaasUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteStripeTenantAndPricing.php b/generated/Auth/Endpoint/DeleteStripeTenantAndPricing.php index 800a56e..5a466fa 100644 --- a/generated/Auth/Endpoint/DeleteStripeTenantAndPricing.php +++ b/generated/Auth/Endpoint/DeleteStripeTenantAndPricing.php @@ -5,21 +5,21 @@ class DeleteStripeTenantAndPricing extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { return '/stripe'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteStripeTenantAndPricingInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteStripeTenantAndPricingInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteTenant.php b/generated/Auth/Endpoint/DeleteTenant.php index aefd4b2..f938869 100644 --- a/generated/Auth/Endpoint/DeleteTenant.php +++ b/generated/Auth/Endpoint/DeleteTenant.php @@ -6,33 +6,30 @@ class DeleteTenant extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEn { protected $tenant_id; /** - * SaaSus Platform で管理する、テナントの詳細情報を削除します。 - - Delete SaaSus Platform tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - */ + * Delete SaaSus Platform tenant. + * + * @param string $tenantId Tenant ID + */ public function __construct(string $tenantId) { $this->tenant_id = $tenantId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,11 +46,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteTenantAttribute.php b/generated/Auth/Endpoint/DeleteTenantAttribute.php index c261346..bebe99d 100644 --- a/generated/Auth/Endpoint/DeleteTenantAttribute.php +++ b/generated/Auth/Endpoint/DeleteTenantAttribute.php @@ -6,33 +6,30 @@ class DeleteTenantAttribute extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Clie { protected $attribute_name; /** - * SaaSus Platform で管理する、テナントの追加属性の削除を行います。 - - Deletes tenant attributes managed by SaaSus Platform. - - * - * @param string $attributeName 属性名(Attribute Name) - */ + * Deletes tenant attributes managed by SaaSus Platform. + * + * @param string $attributeName Attribute Name + */ public function __construct(string $attributeName) { $this->attribute_name = $attributeName; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{attribute_name}'), array($this->attribute_name), '/tenant-attributes/{attribute_name}'); + return str_replace(['{attribute_name}'], [$this->attribute_name], '/tenant-attributes/{attribute_name}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteTenantInvitation.php b/generated/Auth/Endpoint/DeleteTenantInvitation.php index 76f5f84..353a249 100644 --- a/generated/Auth/Endpoint/DeleteTenantInvitation.php +++ b/generated/Auth/Endpoint/DeleteTenantInvitation.php @@ -7,35 +7,32 @@ class DeleteTenantInvitation extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Cli protected $tenant_id; protected $invitation_id; /** - * テナントへの招待を削除します。 - - Delete an invitation to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $invitationId 招待ID(Invitation ID) - */ + * Delete an invitation for the tenant. + * + * @param string $tenantId Tenant ID + * @param string $invitationId Invitation ID + */ public function __construct(string $tenantId, string $invitationId) { $this->tenant_id = $tenantId; $this->invitation_id = $invitationId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{invitation_id}'), array($this->tenant_id, $this->invitation_id), '/tenants/{tenant_id}/invitations/{invitation_id}'); + return str_replace(['{tenant_id}', '{invitation_id}'], [$this->tenant_id, $this->invitation_id], '/tenants/{tenant_id}/invitations/{invitation_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,14 +50,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteTenantUser.php b/generated/Auth/Endpoint/DeleteTenantUser.php index b17ca9c..d3bc1ee 100644 --- a/generated/Auth/Endpoint/DeleteTenantUser.php +++ b/generated/Auth/Endpoint/DeleteTenantUser.php @@ -7,35 +7,32 @@ class DeleteTenantUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Ba protected $tenant_id; protected $user_id; /** - * テナントからユーザーを削除します。 - - Delete a user from your tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - */ + * Delete a user from the tenant. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + */ public function __construct(string $tenantId, string $userId) { $this->tenant_id = $tenantId; $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{user_id}'), array($this->tenant_id, $this->user_id), '/tenants/{tenant_id}/users/{user_id}'); + return str_replace(['{tenant_id}', '{user_id}'], [$this->tenant_id, $this->user_id], '/tenants/{tenant_id}/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,14 +50,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteTenantUserRole.php b/generated/Auth/Endpoint/DeleteTenantUserRole.php index 9610559..1840d95 100644 --- a/generated/Auth/Endpoint/DeleteTenantUserRole.php +++ b/generated/Auth/Endpoint/DeleteTenantUserRole.php @@ -9,16 +9,13 @@ class DeleteTenantUserRole extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Clien protected $env_id; protected $role_name; /** - * テナントのユーザーから役割(ロール)を削除します。 - - Remove a role from a tenant user. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param int $envId 環境ID(Env ID) - * @param string $roleName 役割(ロール)名(role name) - */ + * Remove a role from a tenant user. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param int $envId Env ID + * @param string $roleName Role name + */ public function __construct(string $tenantId, string $userId, int $envId, string $roleName) { $this->tenant_id = $tenantId; @@ -27,21 +24,21 @@ public function __construct(string $tenantId, string $userId, int $envId, string $this->role_name = $roleName; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{user_id}', '{env_id}', '{role_name}'), array($this->tenant_id, $this->user_id, $this->env_id, $this->role_name), '/tenants/{tenant_id}/users/{user_id}/envs/{env_id}/roles/{role_name}'); + return str_replace(['{tenant_id}', '{user_id}', '{env_id}', '{role_name}'], [$this->tenant_id, $this->user_id, $this->env_id, $this->role_name], '/tenants/{tenant_id}/users/{user_id}/envs/{env_id}/roles/{role_name}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -59,14 +56,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteTenantUserRoleInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/DeleteUserAttribute.php b/generated/Auth/Endpoint/DeleteUserAttribute.php index 1974bf0..90b05c3 100644 --- a/generated/Auth/Endpoint/DeleteUserAttribute.php +++ b/generated/Auth/Endpoint/DeleteUserAttribute.php @@ -6,33 +6,30 @@ class DeleteUserAttribute extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client { protected $attribute_name; /** - * SaaSus Platform にて保持するユーザーの追加属性を削除します。 - - Delete user attributes kept on the SaaSus Platform. - - * - * @param string $attributeName 属性名(Attribute Name) - */ + * Delete user attributes kept on the SaaSus Platform. + * + * @param string $attributeName Attribute Name + */ public function __construct(string $attributeName) { $this->attribute_name = $attributeName; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{attribute_name}'), array($this->attribute_name), '/user-attributes/{attribute_name}'); + return str_replace(['{attribute_name}'], [$this->attribute_name], '/user-attributes/{attribute_name}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\DeleteUserAttributeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/FindNotificationMessages.php b/generated/Auth/Endpoint/FindNotificationMessages.php index 16de02c..ae972a3 100644 --- a/generated/Auth/Endpoint/FindNotificationMessages.php +++ b/generated/Auth/Endpoint/FindNotificationMessages.php @@ -5,21 +5,21 @@ class FindNotificationMessages extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/notification-messages'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\NotificationMessages', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\FindNotificationMessagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\FindNotificationMessagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetAllTenantUser.php b/generated/Auth/Endpoint/GetAllTenantUser.php index 3dd809d..8427874 100644 --- a/generated/Auth/Endpoint/GetAllTenantUser.php +++ b/generated/Auth/Endpoint/GetAllTenantUser.php @@ -6,35 +6,32 @@ class GetAllTenantUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Ba { protected $user_id; /** - * ユーザーIDからテナントに所属しているユーザー情報を取得します。 - 複数テナントに所属している場合は別のオブジェクトとして返却されます。 - - Get information on user belonging to the tenant from the user ID. + * Get information on user belonging to the tenant from the user ID. If the user belongs to multiple tenants, it will be returned as another object. * - * @param string $userId ユーザーID(User ID) + * @param string $userId User ID */ public function __construct(string $userId) { $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/tenants/all/users/{user_id}'); + return str_replace(['{user_id}'], [$this->user_id], '/tenants/all/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,17 +46,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Users', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetAllTenantUsers.php b/generated/Auth/Endpoint/GetAllTenantUsers.php index dd1cf96..f952698 100644 --- a/generated/Auth/Endpoint/GetAllTenantUsers.php +++ b/generated/Auth/Endpoint/GetAllTenantUsers.php @@ -5,21 +5,21 @@ class GetAllTenantUsers extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/tenants/all/users'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Users', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUsersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAllTenantUsersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetAuthCredentials.php b/generated/Auth/Endpoint/GetAuthCredentials.php index 4ff1610..a7df906 100644 --- a/generated/Auth/Endpoint/GetAuthCredentials.php +++ b/generated/Auth/Endpoint/GetAuthCredentials.php @@ -5,51 +5,49 @@ class GetAuthCredentials extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 一時コードまたはリフレッシュトークンを利用してIDトークン・アクセストークン・リフレッシュトークンを取得する。 - - Get ID token, access token, and refresh token using a temporary code or a refresh token. + * Get ID token, access token, and refresh token using a temporary code or a refresh token. * * @param array $queryParameters { - * @var string $code 一時コード(Temp Code) - * @var string $auth-flow 認証フロー(Authentication Flow) - tempCodeAuth: 一時コードを利用した認証情報の取得 - refreshTokenAuth: リフレッシュトークンを利用した認証情報の取得 - 指定されていない場合は tempCodeAuth になります + * @var string $code Temp Code + * @var string $auth-flow Authentication Flow + tempCodeAuth: Getting authentication information using a temporary code + refreshTokenAuth: Getting authentication information using a refresh token + If not specified, it will be tempCodeAuth - * @var string $refresh-token リフレッシュトークン(Refresh Token) + * @var string $refresh-token Refresh Token * } */ - public function __construct(array $queryParameters = array()) + public function __construct(array $queryParameters = []) { $this->queryParameters = $queryParameters; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/credentials'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } - protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolver\OptionsResolver + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(array('code', 'auth-flow', 'refresh-token')); - $optionsResolver->setRequired(array()); - $optionsResolver->setDefaults(array()); - $optionsResolver->addAllowedTypes('code', array('string')); - $optionsResolver->addAllowedTypes('auth-flow', array('string')); - $optionsResolver->addAllowedTypes('refresh-token', array('string')); + $optionsResolver->setDefined(['code', 'auth-flow', 'refresh-token']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('code', ['string']); + $optionsResolver->addAllowedTypes('auth-flow', ['string']); + $optionsResolver->addAllowedTypes('refresh-token', ['string']); return $optionsResolver; } /** @@ -65,17 +63,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Credentials', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthCredentialsNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthCredentialsNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthCredentialsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthCredentialsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetAuthInfo.php b/generated/Auth/Endpoint/GetAuthInfo.php index ba0c9dc..d545679 100644 --- a/generated/Auth/Endpoint/GetAuthInfo.php +++ b/generated/Auth/Endpoint/GetAuthInfo.php @@ -5,21 +5,21 @@ class GetAuthInfo extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/auth-info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthInfo', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetAuthInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetBasicInfo.php b/generated/Auth/Endpoint/GetBasicInfo.php index 288d9b5..32cde88 100644 --- a/generated/Auth/Endpoint/GetBasicInfo.php +++ b/generated/Auth/Endpoint/GetBasicInfo.php @@ -5,21 +5,21 @@ class GetBasicInfo extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/basic-info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BasicInfo', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetBasicInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetBasicInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetCloudFormationLaunchStackLinkForSingleTenant.php b/generated/Auth/Endpoint/GetCloudFormationLaunchStackLinkForSingleTenant.php new file mode 100644 index 0000000..59a8f02 --- /dev/null +++ b/generated/Auth/Endpoint/GetCloudFormationLaunchStackLinkForSingleTenant.php @@ -0,0 +1,46 @@ + ['application/json']]; + } + /** + * {@inheritdoc} + * + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); + } + } + public function getAuthenticationScopes(): array + { + return ['Bearer']; + } +} \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetCustomizePageSettings.php b/generated/Auth/Endpoint/GetCustomizePageSettings.php index 2cee454..72f45d0 100644 --- a/generated/Auth/Endpoint/GetCustomizePageSettings.php +++ b/generated/Auth/Endpoint/GetCustomizePageSettings.php @@ -5,21 +5,21 @@ class GetCustomizePageSettings extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/customize-page-settings'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettings', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCustomizePageSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCustomizePageSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetCustomizePages.php b/generated/Auth/Endpoint/GetCustomizePages.php index 2b10a84..d262fc4 100644 --- a/generated/Auth/Endpoint/GetCustomizePages.php +++ b/generated/Auth/Endpoint/GetCustomizePages.php @@ -5,21 +5,21 @@ class GetCustomizePages extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/customize-pages'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePages', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCustomizePagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetCustomizePagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetEnv.php b/generated/Auth/Endpoint/GetEnv.php index bd2d2bc..5e4e6fa 100644 --- a/generated/Auth/Endpoint/GetEnv.php +++ b/generated/Auth/Endpoint/GetEnv.php @@ -6,33 +6,30 @@ class GetEnv extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint { protected $env_id; /** - * 環境情報の詳細を取得します。 - - Get environment details. - - * - * @param int $envId 環境ID(Env ID) - */ + * Get environment details. + * + * @param int $envId Env ID + */ public function __construct(int $envId) { $this->env_id = $envId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{env_id}'), array($this->env_id), '/envs/{env_id}'); + return str_replace(['{env_id}'], [$this->env_id], '/envs/{env_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,17 +44,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Env', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetEnvs.php b/generated/Auth/Endpoint/GetEnvs.php index ad02793..bc2fe74 100644 --- a/generated/Auth/Endpoint/GetEnvs.php +++ b/generated/Auth/Endpoint/GetEnvs.php @@ -5,21 +5,21 @@ class GetEnvs extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/envs'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Envs', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Envs', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetEnvsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetIdentityProviders.php b/generated/Auth/Endpoint/GetIdentityProviders.php index e4e14fc..0e782ff 100644 --- a/generated/Auth/Endpoint/GetIdentityProviders.php +++ b/generated/Auth/Endpoint/GetIdentityProviders.php @@ -5,21 +5,21 @@ class GetIdentityProviders extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/identity-providers'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviders', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetIdentityProvidersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetIdentityProvidersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetInvitationValidity.php b/generated/Auth/Endpoint/GetInvitationValidity.php index ba1cfb5..cbe8166 100644 --- a/generated/Auth/Endpoint/GetInvitationValidity.php +++ b/generated/Auth/Endpoint/GetInvitationValidity.php @@ -6,33 +6,30 @@ class GetInvitationValidity extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Clie { protected $invitation_id; /** - * テナントへの招待の有効性を取得します。 - - Get the validity of an invitation to the tenant. - - * - * @param string $invitationId 招待ID(Invitation ID) - */ + * Get the validity of an invitation to the tenant. + * + * @param string $invitationId Invitation ID + */ public function __construct(string $invitationId) { $this->invitation_id = $invitationId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{invitation_id}'), array($this->invitation_id), '/invitations/{invitation_id}/validity'); + return str_replace(['{invitation_id}'], [$this->invitation_id], '/invitations/{invitation_id}/validity'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,17 +44,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\InvitationValidity', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetInvitationValidityInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetRoles.php b/generated/Auth/Endpoint/GetRoles.php index 506a44f..db19a24 100644 --- a/generated/Auth/Endpoint/GetRoles.php +++ b/generated/Auth/Endpoint/GetRoles.php @@ -5,21 +5,21 @@ class GetRoles extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/roles'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Roles', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Roles', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetRolesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetRolesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetSaasUser.php b/generated/Auth/Endpoint/GetSaasUser.php index 177efa7..ef1f58c 100644 --- a/generated/Auth/Endpoint/GetSaasUser.php +++ b/generated/Auth/Endpoint/GetSaasUser.php @@ -6,33 +6,30 @@ class GetSaasUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEnd { protected $user_id; /** - * ユーザーIDからユーザー情報を取得します。 - - Get user information based on user ID. - - * - * @param string $userId ユーザーID(User ID) - */ + * Get user information based on user ID. + * + * @param string $userId User ID + */ public function __construct(string $userId) { $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,17 +44,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetSaasUsers.php b/generated/Auth/Endpoint/GetSaasUsers.php index 22eb0f9..2150535 100644 --- a/generated/Auth/Endpoint/GetSaasUsers.php +++ b/generated/Auth/Endpoint/GetSaasUsers.php @@ -5,21 +5,21 @@ class GetSaasUsers extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/users'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUsers', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUsersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSaasUsersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetSignInSettings.php b/generated/Auth/Endpoint/GetSignInSettings.php index 69d87a8..a9d3096 100644 --- a/generated/Auth/Endpoint/GetSignInSettings.php +++ b/generated/Auth/Endpoint/GetSignInSettings.php @@ -5,21 +5,21 @@ class GetSignInSettings extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/sign-in-settings'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignInSettings', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSignInSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSignInSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetSingleTenantSettings.php b/generated/Auth/Endpoint/GetSingleTenantSettings.php new file mode 100644 index 0000000..ef83d6f --- /dev/null +++ b/generated/Auth/Endpoint/GetSingleTenantSettings.php @@ -0,0 +1,46 @@ + ['application/json']]; + } + /** + * {@inheritdoc} + * + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSingleTenantSettingsInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetSingleTenantSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); + } + } + public function getAuthenticationScopes(): array + { + return ['Bearer']; + } +} \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenant.php b/generated/Auth/Endpoint/GetTenant.php index 20a4f6a..c12759a 100644 --- a/generated/Auth/Endpoint/GetTenant.php +++ b/generated/Auth/Endpoint/GetTenant.php @@ -6,33 +6,30 @@ class GetTenant extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpo { protected $tenant_id; /** - * SaaSus Platform で管理する、テナントの詳細情報を取得します。 - - Get the details of tenant managed on the SaaSus Platform. - - * - * @param string $tenantId テナントID(Tenant ID) - */ + * Get the details of tenant managed on the SaaSus Platform. + * + * @param string $tenantId Tenant ID + */ public function __construct(string $tenantId) { $this->tenant_id = $tenantId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,17 +44,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantDetail', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenantAttributes.php b/generated/Auth/Endpoint/GetTenantAttributes.php index 63cc2bd..ad4578d 100644 --- a/generated/Auth/Endpoint/GetTenantAttributes.php +++ b/generated/Auth/Endpoint/GetTenantAttributes.php @@ -5,21 +5,21 @@ class GetTenantAttributes extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/tenant-attributes'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantAttributes', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantAttributesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantAttributesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenantIdentityProviders.php b/generated/Auth/Endpoint/GetTenantIdentityProviders.php index 42492fa..5df7f62 100644 --- a/generated/Auth/Endpoint/GetTenantIdentityProviders.php +++ b/generated/Auth/Endpoint/GetTenantIdentityProviders.php @@ -6,33 +6,30 @@ class GetTenantIdentityProviders extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime { protected $tenant_id; /** - * テナント毎の外部IDプロバイダ経由のサインイン情報を取得します。 - - Get sign-in information via external identity provider per tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - */ + * Get sign-in information via external identity provider per tenant. + * + * @param string $tenantId Tenant ID + */ public function __construct(string $tenantId) { $this->tenant_id = $tenantId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/identity-providers'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/identity-providers'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProviders', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantIdentityProvidersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantIdentityProvidersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenantInvitation.php b/generated/Auth/Endpoint/GetTenantInvitation.php index a65a8e8..4521a1d 100644 --- a/generated/Auth/Endpoint/GetTenantInvitation.php +++ b/generated/Auth/Endpoint/GetTenantInvitation.php @@ -7,35 +7,32 @@ class GetTenantInvitation extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client protected $tenant_id; protected $invitation_id; /** - * テナントへの招待情報を取得します。 - - Get invitation information to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $invitationId 招待ID(Invitation ID) - */ + * Get invitation information for the tenant. + * + * @param string $tenantId Tenant ID + * @param string $invitationId Invitation ID + */ public function __construct(string $tenantId, string $invitationId) { $this->tenant_id = $tenantId; $this->invitation_id = $invitationId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{invitation_id}'), array($this->tenant_id, $this->invitation_id), '/tenants/{tenant_id}/invitations/{invitation_id}'); + return str_replace(['{tenant_id}', '{invitation_id}'], [$this->tenant_id, $this->invitation_id], '/tenants/{tenant_id}/invitations/{invitation_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,17 +47,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenantInvitations.php b/generated/Auth/Endpoint/GetTenantInvitations.php index 078dd5c..7ee7492 100644 --- a/generated/Auth/Endpoint/GetTenantInvitations.php +++ b/generated/Auth/Endpoint/GetTenantInvitations.php @@ -6,33 +6,30 @@ class GetTenantInvitations extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Clien { protected $tenant_id; /** - * テナントへの招待一覧を取得します。 - - Get a list of invitations to the tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - */ + * Get a list of invitations to the tenant. + * + * @param string $tenantId Tenant ID + */ public function __construct(string $tenantId) { $this->tenant_id = $tenantId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/invitations'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/invitations'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitations', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantInvitationsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenantUser.php b/generated/Auth/Endpoint/GetTenantUser.php index 7031137..5a0aadd 100644 --- a/generated/Auth/Endpoint/GetTenantUser.php +++ b/generated/Auth/Endpoint/GetTenantUser.php @@ -7,35 +7,32 @@ class GetTenantUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseE protected $tenant_id; protected $user_id; /** - * テナントのユーザーをIDから一件取得します。 - - Get one tenant user by specific ID. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - */ + * Get one tenant user by specific ID. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + */ public function __construct(string $tenantId, string $userId) { $this->tenant_id = $tenantId; $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{user_id}'), array($this->tenant_id, $this->user_id), '/tenants/{tenant_id}/users/{user_id}'); + return str_replace(['{tenant_id}', '{user_id}'], [$this->tenant_id, $this->user_id], '/tenants/{tenant_id}/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,17 +47,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\User', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenantUsers.php b/generated/Auth/Endpoint/GetTenantUsers.php index 2db84fc..2f6e254 100644 --- a/generated/Auth/Endpoint/GetTenantUsers.php +++ b/generated/Auth/Endpoint/GetTenantUsers.php @@ -6,34 +6,32 @@ class GetTenantUsers extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Base { protected $tenant_id; /** - * テナントに所属するユーザーを全件取得します。 idは一意です。 - - Get all the users belonging to the tenant. + * Get all the users belonging to the tenant. Id is unique. * - * @param string $tenantId テナントID(Tenant ID) + * @param string $tenantId Tenant ID */ public function __construct(string $tenantId) { $this->tenant_id = $tenantId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/users'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/users'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Users', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUsersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantUsersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetTenants.php b/generated/Auth/Endpoint/GetTenants.php index 81b5d2b..f32ef15 100644 --- a/generated/Auth/Endpoint/GetTenants.php +++ b/generated/Auth/Endpoint/GetTenants.php @@ -5,21 +5,21 @@ class GetTenants extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/tenants'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenants', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetTenantsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetUserAttributes.php b/generated/Auth/Endpoint/GetUserAttributes.php index 3f14dea..60bbc51 100644 --- a/generated/Auth/Endpoint/GetUserAttributes.php +++ b/generated/Auth/Endpoint/GetUserAttributes.php @@ -5,21 +5,21 @@ class GetUserAttributes extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/user-attributes'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAttributes', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserAttributesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserAttributesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetUserInfo.php b/generated/Auth/Endpoint/GetUserInfo.php index cb9339f..16c4521 100644 --- a/generated/Auth/Endpoint/GetUserInfo.php +++ b/generated/Auth/Endpoint/GetUserInfo.php @@ -5,49 +5,44 @@ class GetUserInfo extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * SaaS利用ユーザ(登録ユーザ)のIDトークンを元に、ユーザ情報を取得します。 - IDトークンは、SaaSus Platform生成のログイン画面からログイン時にCallback URLに渡されます。 - サーバ側でそのURLからIDトークンを取得し、このAPIを呼ぶことにより、該当ユーザの情報が取得できます。 - 取得した上には、所属テナントや役割(ロール)、料金プランなどが含まれているため、それを元に認可の実装を行うことが可能です。 - - User information is obtained based on the ID token of the SaaS user (registered user). + * User information is obtained based on the ID token of the SaaS user (registered user). The ID token is passed to the Callback URL during login from the SaaSus Platform generated login screen. User information can be obtained from calling this API with an ID token from the URL on the server side. Since the acquired tenant, role (role), price plan, etc. are included, it is possible to implement authorization based on it. * * @param array $queryParameters { - * @var string $token IDトークン(ID Token) + * @var string $token ID Token * } */ - public function __construct(array $queryParameters = array()) + public function __construct(array $queryParameters = []) { $this->queryParameters = $queryParameters; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/userinfo'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } - protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolver\OptionsResolver + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(array('token')); - $optionsResolver->setRequired(array('token')); - $optionsResolver->setDefaults(array()); - $optionsResolver->addAllowedTypes('token', array('string')); + $optionsResolver->setDefined(['token']); + $optionsResolver->setRequired(['token']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('token', ['string']); return $optionsResolver; } /** @@ -63,17 +58,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserInfo', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo', 'json'); } if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserInfoUnauthorizedException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserInfoUnauthorizedException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/GetUserMfaPreference.php b/generated/Auth/Endpoint/GetUserMfaPreference.php index 4173e73..0918d93 100644 --- a/generated/Auth/Endpoint/GetUserMfaPreference.php +++ b/generated/Auth/Endpoint/GetUserMfaPreference.php @@ -6,33 +6,30 @@ class GetUserMfaPreference extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Clien { protected $user_id; /** - * ユーザーのMFA設定を取得します。 - - Get the user's MFA settings. - - * - * @param string $userId ユーザーID(User ID) - */ + * Get the user's MFA settings. + * + * @param string $userId User ID + */ public function __construct(string $userId) { $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/mfa/preference'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/mfa/preference'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaPreference', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserMfaPreferenceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\GetUserMfaPreferenceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/LinkAwsMarketplace.php b/generated/Auth/Endpoint/LinkAwsMarketplace.php index 9aa8fae..a6064f2 100644 --- a/generated/Auth/Endpoint/LinkAwsMarketplace.php +++ b/generated/Auth/Endpoint/LinkAwsMarketplace.php @@ -5,10 +5,7 @@ class LinkAwsMarketplace extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * AWS Marketplaceと既存のテナントを連携します。 - Registration Tokenが有効でない場合はエラーを返却します。 - - Link an existing tenant with AWS Marketplace. + * Link an existing tenant with AWS Marketplace. If the Registration Token is not valid, an error is returned. * @@ -19,24 +16,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarket $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { return '/aws-marketplace/link'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,11 +50,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\LinkAwsMarketplaceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\LinkAwsMarketplaceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/RequestEmailUpdate.php b/generated/Auth/Endpoint/RequestEmailUpdate.php index 578f836..6d62e2a 100644 --- a/generated/Auth/Endpoint/RequestEmailUpdate.php +++ b/generated/Auth/Endpoint/RequestEmailUpdate.php @@ -6,18 +6,13 @@ class RequestEmailUpdate extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\ { protected $user_id; /** - * ユーザーのメールアドレス変更を要求します。 - 要求されたメールアドレスに対して検証コードを送信します。 - ユーザーのアクセストークンが必要です。 - 検証コードの有効期限は24時間です。 - - Request to update the user's email address. + * Request to update the user's email address. Sends a verification code to the requested email address. Requires the user's access token. The verification code is valid for 24 hours. * - * @param string $userId ユーザーID(User ID) + * @param string $userId User ID * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam $requestBody */ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam $requestBody = null) @@ -26,24 +21,24 @@ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Mod $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/email/request'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/email/request'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -60,11 +55,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestEmailUpdateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestEmailUpdateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/RequestExternalUserLink.php b/generated/Auth/Endpoint/RequestExternalUserLink.php index 4450901..13328cd 100644 --- a/generated/Auth/Endpoint/RequestExternalUserLink.php +++ b/generated/Auth/Endpoint/RequestExternalUserLink.php @@ -5,11 +5,7 @@ class RequestExternalUserLink extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 外部アカウントのユーザー連携を要求します。 - アクセストークンから連携するユーザーのメールアドレスを取得し、そのメールアドレスに対して検証コードを送信します。 - 検証コードの有効期限は24時間です。 - - Request to link an external account user. + * Request to link an external account user. Get the email address of the user to be linked from the access token and send a verification code to that email address. The verification code is valid for 24 hours. @@ -21,24 +17,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExtern $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/external-users/request'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -56,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestExternalUserLinkBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestExternalUserLinkBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestExternalUserLinkInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\RequestExternalUserLinkInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ResendSignUpConfirmationEmail.php b/generated/Auth/Endpoint/ResendSignUpConfirmationEmail.php index 0b2f40e..beaed82 100644 --- a/generated/Auth/Endpoint/ResendSignUpConfirmationEmail.php +++ b/generated/Auth/Endpoint/ResendSignUpConfirmationEmail.php @@ -5,36 +5,33 @@ class ResendSignUpConfirmationEmail extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 新規登録時の仮パスワードを再送信します。 - - Resend temporary password for the new registered user. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam $requestBody - */ + * Resend temporary password for the new registered user. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/sign-up/resend'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ResendSignUpConfirmationEmailInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ResendSignUpConfirmationEmailInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ResetPlan.php b/generated/Auth/Endpoint/ResetPlan.php index aee8c30..ddd787d 100644 --- a/generated/Auth/Endpoint/ResetPlan.php +++ b/generated/Auth/Endpoint/ResetPlan.php @@ -5,21 +5,21 @@ class ResetPlan extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/plans/reset'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ResetPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ResetPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ReturnInternalServerError.php b/generated/Auth/Endpoint/ReturnInternalServerError.php index 4438c42..4e5d239 100644 --- a/generated/Auth/Endpoint/ReturnInternalServerError.php +++ b/generated/Auth/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/SignUp.php b/generated/Auth/Endpoint/SignUp.php index b30014b..8c8c3d8 100644 --- a/generated/Auth/Endpoint/SignUp.php +++ b/generated/Auth/Endpoint/SignUp.php @@ -5,36 +5,33 @@ class SignUp extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * ユーザーを新規登録します。登録されたメールアドレスに対して仮パスワードを送信します。 - - Register a new user. A temporary password will be sent to the registered email. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam $requestBody - */ + * Register a new user. A temporary password will be sent to the registered email. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/sign-up'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -48,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\SignUpInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\SignUpInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/SignUpWithAwsMarketplace.php b/generated/Auth/Endpoint/SignUpWithAwsMarketplace.php index 2088c6d..128c7f4 100644 --- a/generated/Auth/Endpoint/SignUpWithAwsMarketplace.php +++ b/generated/Auth/Endpoint/SignUpWithAwsMarketplace.php @@ -5,10 +5,7 @@ class SignUpWithAwsMarketplace extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * AWS Marketplaceと連携したユーザーを新規登録します。登録されたメールアドレスに対して仮パスワードを送信します。 - Registration Tokenが有効でない場合はエラーを返却します。 - - Register a new user linked to AWS Marketplace. A temporary password will be sent to the registered email. + * Register a new user linked to AWS Marketplace. A temporary password will be sent to the registered email. If the Registration Token is not valid, an error is returned. * @@ -19,24 +16,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAws $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/aws-marketplace/sign-up'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\SignUpWithAwsMarketplaceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\SignUpWithAwsMarketplaceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UnlinkProvider.php b/generated/Auth/Endpoint/UnlinkProvider.php index c456221..194b51d 100644 --- a/generated/Auth/Endpoint/UnlinkProvider.php +++ b/generated/Auth/Endpoint/UnlinkProvider.php @@ -7,31 +7,32 @@ class UnlinkProvider extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Base protected $provider_name; protected $user_id; /** - * 外部IDプロバイダの連携を解除します。 - - Unlink external identity providers. - - * - * @param string $providerName - * @param string $userId ユーザーID(User ID) - */ + * Unlink external identity providers. + * + * @param string $providerName + * @param string $userId User ID + */ public function __construct(string $providerName, string $userId) { $this->provider_name = $providerName; $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string + { + return str_replace(['{provider_name}', '{user_id}'], [$this->provider_name, $this->user_id], '/users/{user_id}/providers/{provider_name}'); + } + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return str_replace(array('{provider_name}', '{user_id}'), array($this->provider_name, $this->user_id), '/users/{user_id}/providers/{provider_name}'); + return [[], null]; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getExtraHeaders(): array { - return array(array(), null); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,12 +48,12 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re if (200 === $status) { return null; } - if (500 === $status) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UnlinkProviderInternalServerErrorException($response); + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UnlinkProviderInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateAuthInfo.php b/generated/Auth/Endpoint/UpdateAuthInfo.php index 60d1b02..0743f87 100644 --- a/generated/Auth/Endpoint/UpdateAuthInfo.php +++ b/generated/Auth/Endpoint/UpdateAuthInfo.php @@ -5,10 +5,7 @@ class UpdateAuthInfo extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * ログイン後に認証情報を渡す SaaS の URL を登録します。 - ここで登録した URL に認証情報を渡し、SaaSus SDK を利用してこの Callback の実装をすることが可能となります。 - - Register post-login SaaS URL for authentication information. + * Register post-login SaaS URL for authentication information. It is possible to pass authentication information to the URL registered here and implement this Callback using the SaaSus SDK. * @@ -19,24 +16,24 @@ public function __construct(?\stdClass $requestBody = null) $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/auth-info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,11 +50,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateAuthInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateAuthInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateBasicInfo.php b/generated/Auth/Endpoint/UpdateBasicInfo.php index 97d6d01..41bbec5 100644 --- a/generated/Auth/Endpoint/UpdateBasicInfo.php +++ b/generated/Auth/Endpoint/UpdateBasicInfo.php @@ -5,11 +5,7 @@ class UpdateBasicInfo extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * SaaS ID を元にパラメータとして設定したドメイン名を設定更新します。 - CNAME レコードが生成されますので、 DNS に設定して下さい。 - 既に稼働中の SaaS アプリケーションに設定している場合には、動作に影響があります。 - - Update the domain name that was set as a parameter based on the SaaS ID. + * Update the domain name that was set as a parameter based on the SaaS ID. After the CNAME record is generated, set it in your DNS. If it is set on a SaaS application that is already running, it will affect the behavior. @@ -21,24 +17,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicIn $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/basic-info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateBasicInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateBasicInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateCustomizePageSettings.php b/generated/Auth/Endpoint/UpdateCustomizePageSettings.php index aa34a91..b62b548 100644 --- a/generated/Auth/Endpoint/UpdateCustomizePageSettings.php +++ b/generated/Auth/Endpoint/UpdateCustomizePageSettings.php @@ -5,36 +5,33 @@ class UpdateCustomizePageSettings extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 認証認可基本情報を更新します。 - - Update authentication authorization basic information. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam $requestBody - */ + * Update authentication authorization basic information. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { return '/customize-page-settings'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePageSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePageSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateCustomizePages.php b/generated/Auth/Endpoint/UpdateCustomizePages.php index c64ae70..f3fe3ec 100644 --- a/generated/Auth/Endpoint/UpdateCustomizePages.php +++ b/generated/Auth/Endpoint/UpdateCustomizePages.php @@ -5,36 +5,33 @@ class UpdateCustomizePages extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 認証系画面設定情報(新規登録・ログイン・パスワードリセット等)を更新します。 - - Update the authentication page setting information (new registration, login, password reset, etc.). - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam $requestBody - */ + * Update the authentication page setting information (new registration, login, password reset, etc.). + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { return '/customize-pages'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateCustomizePagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateEnv.php b/generated/Auth/Endpoint/UpdateEnv.php index 20755d8..42d4f5c 100644 --- a/generated/Auth/Endpoint/UpdateEnv.php +++ b/generated/Auth/Endpoint/UpdateEnv.php @@ -6,38 +6,35 @@ class UpdateEnv extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpo { protected $env_id; /** - * 環境情報を更新します。 - - Update env info. - - * - * @param int $envId 環境ID(Env ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam $requestBody - */ + * Update env info. + * + * @param int $envId Env ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam $requestBody + */ public function __construct(int $envId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam $requestBody = null) { $this->env_id = $envId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{env_id}'), array($this->env_id), '/envs/{env_id}'); + return str_replace(['{env_id}'], [$this->env_id], '/envs/{env_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateEnvInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateIdentityProvider.php b/generated/Auth/Endpoint/UpdateIdentityProvider.php index 88aa58c..68b5951 100644 --- a/generated/Auth/Endpoint/UpdateIdentityProvider.php +++ b/generated/Auth/Endpoint/UpdateIdentityProvider.php @@ -5,7 +5,7 @@ class UpdateIdentityProvider extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 外部IDプロバイダのサインイン情報更新 + * Update the sign-in information for the external ID provider * * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam $requestBody */ @@ -14,24 +14,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentit $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/identity-providers'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -48,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateIdentityProviderInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateIdentityProviderInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateNotificationMessages.php b/generated/Auth/Endpoint/UpdateNotificationMessages.php index a2620ac..6cbb3d0 100644 --- a/generated/Auth/Endpoint/UpdateNotificationMessages.php +++ b/generated/Auth/Endpoint/UpdateNotificationMessages.php @@ -5,36 +5,33 @@ class UpdateNotificationMessages extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * 各種通知メールテンプレート更新します。 - - Update notification email template. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam $requestBody - */ + * Update notification email template. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/notification-messages'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateNotificationMessagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateNotificationMessagesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateSaasUserEmail.php b/generated/Auth/Endpoint/UpdateSaasUserEmail.php index ff415cd..bc9d72d 100644 --- a/generated/Auth/Endpoint/UpdateSaasUserEmail.php +++ b/generated/Auth/Endpoint/UpdateSaasUserEmail.php @@ -6,38 +6,35 @@ class UpdateSaasUserEmail extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client { protected $user_id; /** - * ユーザーのメールアドレスを変更します。 - - Change user's email. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam $requestBody - */ + * Change user's email. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam $requestBody + */ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam $requestBody = null) { $this->user_id = $userId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/email'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/email'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserEmailInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserEmailInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateSaasUserPassword.php b/generated/Auth/Endpoint/UpdateSaasUserPassword.php index e630085..f2cbce8 100644 --- a/generated/Auth/Endpoint/UpdateSaasUserPassword.php +++ b/generated/Auth/Endpoint/UpdateSaasUserPassword.php @@ -6,38 +6,35 @@ class UpdateSaasUserPassword extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Cli { protected $user_id; /** - * ユーザーのログインパスワードを変更します。 - - Change user's login password. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam $requestBody - */ + * Change user's login password. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam $requestBody + */ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam $requestBody = null) { $this->user_id = $userId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/password'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/password'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserPasswordInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSaasUserPasswordInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateSignInSettings.php b/generated/Auth/Endpoint/UpdateSignInSettings.php index d89d445..23a8493 100644 --- a/generated/Auth/Endpoint/UpdateSignInSettings.php +++ b/generated/Auth/Endpoint/UpdateSignInSettings.php @@ -5,10 +5,7 @@ class UpdateSignInSettings extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Endpoint { /** - * ユーザーパスワードの要件設定を更新します。 - アルファベット、数字、記号の組み合わせで、桁数を長くすれば解読されづらい安全なパスワードを設定することが可能となります。 - - Update user password requirements. + * Update user password requirements. Set a secure password that is difficult to decipher by increasing the number of digits by combining alphabets, numbers, and symbols. * @@ -19,24 +16,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInS $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/sign-in-settings'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,11 +50,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSignInSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSignInSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateSingleTenantSettings.php b/generated/Auth/Endpoint/UpdateSingleTenantSettings.php new file mode 100644 index 0000000..161d593 --- /dev/null +++ b/generated/Auth/Endpoint/UpdateSingleTenantSettings.php @@ -0,0 +1,64 @@ +body = $requestBody; + } + use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; + public function getMethod(): string + { + return 'PATCH'; + } + public function getUri(): string + { + return '/single-tenant/settings'; + } + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + return [[], null]; + } + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + /** + * {@inheritdoc} + * + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSingleTenantSettingsBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSingleTenantSettingsInternalServerErrorException + * + * @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; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSingleTenantSettingsBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSingleTenantSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); + } + } + public function getAuthenticationScopes(): array + { + return ['Bearer']; + } +} \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateSoftwareToken.php b/generated/Auth/Endpoint/UpdateSoftwareToken.php index 2cd06d5..4056e31 100644 --- a/generated/Auth/Endpoint/UpdateSoftwareToken.php +++ b/generated/Auth/Endpoint/UpdateSoftwareToken.php @@ -6,38 +6,35 @@ class UpdateSoftwareToken extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client { protected $user_id; /** - * 認証アプリケーションを登録します。 - - Register an authentication application. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam $requestBody - */ + * Register an authentication application. + * + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam $requestBody + */ public function __construct(string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam $requestBody = null) { $this->user_id = $userId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/mfa/software-token'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/mfa/software-token'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSoftwareTokenInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateSoftwareTokenInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateTenant.php b/generated/Auth/Endpoint/UpdateTenant.php index f7c78b2..f56df6d 100644 --- a/generated/Auth/Endpoint/UpdateTenant.php +++ b/generated/Auth/Endpoint/UpdateTenant.php @@ -6,38 +6,35 @@ class UpdateTenant extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\BaseEn { protected $tenant_id; /** - * SaaSus Platform で管理する、テナントの詳細情報を更新します。 - - Update SaaSus Platform tenant details. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\stdClass $requestBody - */ + * Update SaaSus Platform tenant details. + * + * @param string $tenantId Tenant ID + * @param null|\stdClass $requestBody + */ public function __construct(string $tenantId, ?\stdClass $requestBody = null) { $this->tenant_id = $tenantId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateTenantBillingInfo.php b/generated/Auth/Endpoint/UpdateTenantBillingInfo.php index 3b5c453..31507be 100644 --- a/generated/Auth/Endpoint/UpdateTenantBillingInfo.php +++ b/generated/Auth/Endpoint/UpdateTenantBillingInfo.php @@ -6,38 +6,35 @@ class UpdateTenantBillingInfo extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Cl { protected $tenant_id; /** - * SaaSus Platform で管理しているテナントの請求先情報を更新します。 - - Update SaaSus Platform tenant billing information. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\stdClass $requestBody - */ + * Update SaaSus Platform tenant billing information. + * + * @param string $tenantId Tenant ID + * @param null|\stdClass $requestBody + */ public function __construct(string $tenantId, ?\stdClass $requestBody = null) { $this->tenant_id = $tenantId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/billing-info'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/billing-info'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -56,17 +53,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantBillingInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateTenantIdentityProvider.php b/generated/Auth/Endpoint/UpdateTenantIdentityProvider.php index 462295d..1bdbcde 100644 --- a/generated/Auth/Endpoint/UpdateTenantIdentityProvider.php +++ b/generated/Auth/Endpoint/UpdateTenantIdentityProvider.php @@ -6,38 +6,35 @@ class UpdateTenantIdentityProvider extends \AntiPatternInc\Saasus\Sdk\Auth\Runti { protected $tenant_id; /** - * テナント毎の外部IDプロバイダ経由のサインイン情報を更新します。 - - Update sign-in information via external identity provider per tenant. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam $requestBody - */ + * Update sign-in information via external identity provider per tenant. + * + * @param string $tenantId Tenant ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam $requestBody + */ public function __construct(string $tenantId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam $requestBody = null) { $this->tenant_id = $tenantId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/identity-providers'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/identity-providers'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantIdentityProviderInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantIdentityProviderInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateTenantPlan.php b/generated/Auth/Endpoint/UpdateTenantPlan.php index cbcb95f..7ae6a8a 100644 --- a/generated/Auth/Endpoint/UpdateTenantPlan.php +++ b/generated/Auth/Endpoint/UpdateTenantPlan.php @@ -6,38 +6,35 @@ class UpdateTenantPlan extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Ba { protected $tenant_id; /** - * SaaSus Platform で管理しているテナントのプラン情報を更新します。 - - Update SaaSus Platform tenant plan information. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param null|\stdClass $requestBody - */ + * Update SaaSus Platform tenant plan information. + * + * @param string $tenantId Tenant ID + * @param null|\stdClass $requestBody + */ public function __construct(string $tenantId, ?\stdClass $requestBody = null) { $this->tenant_id = $tenantId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}'), array($this->tenant_id), '/tenants/{tenant_id}/plans'); + return str_replace(['{tenant_id}'], [$this->tenant_id], '/tenants/{tenant_id}/plans'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -56,17 +53,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateTenantUser.php b/generated/Auth/Endpoint/UpdateTenantUser.php index 2fd76a6..5157bfb 100644 --- a/generated/Auth/Endpoint/UpdateTenantUser.php +++ b/generated/Auth/Endpoint/UpdateTenantUser.php @@ -7,15 +7,12 @@ class UpdateTenantUser extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\Ba protected $tenant_id; protected $user_id; /** - * テナントのユーザー属性情報を更新します。 - - Update tenant user attributes. - - * - * @param string $tenantId テナントID(Tenant ID) - * @param string $userId ユーザーID(User ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam $requestBody - */ + * Update tenant user attributes. + * + * @param string $tenantId Tenant ID + * @param string $userId User ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam $requestBody + */ public function __construct(string $tenantId, string $userId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam $requestBody = null) { $this->tenant_id = $tenantId; @@ -23,24 +20,24 @@ public function __construct(string $tenantId, string $userId, ?\AntiPatternInc\S $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{user_id}'), array($this->tenant_id, $this->user_id), '/tenants/{tenant_id}/users/{user_id}'); + return str_replace(['{tenant_id}', '{user_id}'], [$this->tenant_id, $this->user_id], '/tenants/{tenant_id}/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -58,14 +55,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateTenantUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/UpdateUserMfaPreference.php b/generated/Auth/Endpoint/UpdateUserMfaPreference.php index 88f23cb..f728030 100644 --- a/generated/Auth/Endpoint/UpdateUserMfaPreference.php +++ b/generated/Auth/Endpoint/UpdateUserMfaPreference.php @@ -6,38 +6,35 @@ class UpdateUserMfaPreference extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Cl { protected $user_id; /** - * ユーザーのMFA設定を更新します。 - - Update user's MFA settings. - - * - * @param string $userId ユーザーID(User ID) - * @param null|\stdClass $requestBody - */ + * Update user's MFA settings. + * + * @param string $userId User ID + * @param null|\stdClass $requestBody + */ public function __construct(string $userId, ?\stdClass $requestBody = null) { $this->user_id = $userId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{user_id}'), array($this->user_id), '/users/{user_id}/mfa/preference'); + return str_replace(['{user_id}'], [$this->user_id], '/users/{user_id}/mfa/preference'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateUserMfaPreferenceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\UpdateUserMfaPreferenceInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Endpoint/ValidateInvitation.php b/generated/Auth/Endpoint/ValidateInvitation.php index c5d4159..44cbd83 100644 --- a/generated/Auth/Endpoint/ValidateInvitation.php +++ b/generated/Auth/Endpoint/ValidateInvitation.php @@ -6,38 +6,35 @@ class ValidateInvitation extends \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\ { protected $invitation_id; /** - * テナントへの招待を検証します。 - - Validate an invitation to the tenant. - - * - * @param string $invitationId 招待ID(Invitation ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam $requestBody - */ + * Validate an invitation to the tenant. + * + * @param string $invitationId Invitation ID + * @param null|\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam $requestBody + */ public function __construct(string $invitationId, ?\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam $requestBody = null) { $this->invitation_id = $invitationId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{invitation_id}'), array($this->invitation_id), '/invitations/{invitation_id}/validate'); + return str_replace(['{invitation_id}'], [$this->invitation_id], '/invitations/{invitation_id}/validate'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -56,17 +53,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Auth\Exception\ValidateInvitationInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Auth\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Auth/Exception/ConfirmEmailUpdateInternalServerErrorException.php b/generated/Auth/Exception/ConfirmEmailUpdateInternalServerErrorException.php index 3ada72a..ab804cf 100644 --- a/generated/Auth/Exception/ConfirmEmailUpdateInternalServerErrorException.php +++ b/generated/Auth/Exception/ConfirmEmailUpdateInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ConfirmExternalUserLinkBadRequestException.php b/generated/Auth/Exception/ConfirmExternalUserLinkBadRequestException.php index f43b3c4..4f0a935 100644 --- a/generated/Auth/Exception/ConfirmExternalUserLinkBadRequestException.php +++ b/generated/Auth/Exception/ConfirmExternalUserLinkBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ConfirmExternalUserLinkInternalServerErrorException.php b/generated/Auth/Exception/ConfirmExternalUserLinkInternalServerErrorException.php index 29d31f6..96f8961 100644 --- a/generated/Auth/Exception/ConfirmExternalUserLinkInternalServerErrorException.php +++ b/generated/Auth/Exception/ConfirmExternalUserLinkInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ConfirmSignUpWithAwsMarketplaceInternalServerErrorException.php b/generated/Auth/Exception/ConfirmSignUpWithAwsMarketplaceInternalServerErrorException.php index 6b94dbd..a0fe977 100644 --- a/generated/Auth/Exception/ConfirmSignUpWithAwsMarketplaceInternalServerErrorException.php +++ b/generated/Auth/Exception/ConfirmSignUpWithAwsMarketplaceInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateAuthCredentialsBadRequestException.php b/generated/Auth/Exception/CreateAuthCredentialsBadRequestException.php index 57831a8..65d6ade 100644 --- a/generated/Auth/Exception/CreateAuthCredentialsBadRequestException.php +++ b/generated/Auth/Exception/CreateAuthCredentialsBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateAuthCredentialsInternalServerErrorException.php b/generated/Auth/Exception/CreateAuthCredentialsInternalServerErrorException.php index 575d5a5..4d01338 100644 --- a/generated/Auth/Exception/CreateAuthCredentialsInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateAuthCredentialsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateAuthCredentialsUnauthorizedException.php b/generated/Auth/Exception/CreateAuthCredentialsUnauthorizedException.php index 9a9e547..1640334 100644 --- a/generated/Auth/Exception/CreateAuthCredentialsUnauthorizedException.php +++ b/generated/Auth/Exception/CreateAuthCredentialsUnauthorizedException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateEnvInternalServerErrorException.php b/generated/Auth/Exception/CreateEnvInternalServerErrorException.php index 39b2ad5..fa97111 100644 --- a/generated/Auth/Exception/CreateEnvInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateEnvInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateRoleInternalServerErrorException.php b/generated/Auth/Exception/CreateRoleInternalServerErrorException.php index eecf839..f6d42bd 100644 --- a/generated/Auth/Exception/CreateRoleInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateRoleInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateSaasUserBadRequestException.php b/generated/Auth/Exception/CreateSaasUserBadRequestException.php index 93ce33c..f14d3f9 100644 --- a/generated/Auth/Exception/CreateSaasUserBadRequestException.php +++ b/generated/Auth/Exception/CreateSaasUserBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateSaasUserInternalServerErrorException.php b/generated/Auth/Exception/CreateSaasUserInternalServerErrorException.php index dd0cf5b..7677ff3 100644 --- a/generated/Auth/Exception/CreateSaasUserInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateSaasUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateSecretCodeInternalServerErrorException.php b/generated/Auth/Exception/CreateSecretCodeInternalServerErrorException.php index 653581a..e060f89 100644 --- a/generated/Auth/Exception/CreateSecretCodeInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateSecretCodeInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantAndPricingInternalServerErrorException.php b/generated/Auth/Exception/CreateTenantAndPricingInternalServerErrorException.php index e2f177e..ec9ff32 100644 --- a/generated/Auth/Exception/CreateTenantAndPricingInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateTenantAndPricingInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantAttributeInternalServerErrorException.php b/generated/Auth/Exception/CreateTenantAttributeInternalServerErrorException.php index 77e43bc..3a458b4 100644 --- a/generated/Auth/Exception/CreateTenantAttributeInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateTenantAttributeInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantInternalServerErrorException.php b/generated/Auth/Exception/CreateTenantInternalServerErrorException.php index 1cea944..56de268 100644 --- a/generated/Auth/Exception/CreateTenantInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateTenantInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantInvitationBadRequestException.php b/generated/Auth/Exception/CreateTenantInvitationBadRequestException.php index 2a741dc..c4aaba4 100644 --- a/generated/Auth/Exception/CreateTenantInvitationBadRequestException.php +++ b/generated/Auth/Exception/CreateTenantInvitationBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantInvitationInternalServerErrorException.php b/generated/Auth/Exception/CreateTenantInvitationInternalServerErrorException.php index 1486956..c8344cb 100644 --- a/generated/Auth/Exception/CreateTenantInvitationInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateTenantInvitationInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantUserInternalServerErrorException.php b/generated/Auth/Exception/CreateTenantUserInternalServerErrorException.php index eba8026..449d9c6 100644 --- a/generated/Auth/Exception/CreateTenantUserInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateTenantUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateTenantUserRolesInternalServerErrorException.php b/generated/Auth/Exception/CreateTenantUserRolesInternalServerErrorException.php index 87bb96a..569daea 100644 --- a/generated/Auth/Exception/CreateTenantUserRolesInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateTenantUserRolesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/CreateUserAttributeInternalServerErrorException.php b/generated/Auth/Exception/CreateUserAttributeInternalServerErrorException.php index c4e6457..e28ce2d 100644 --- a/generated/Auth/Exception/CreateUserAttributeInternalServerErrorException.php +++ b/generated/Auth/Exception/CreateUserAttributeInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteEnvInternalServerErrorException.php b/generated/Auth/Exception/DeleteEnvInternalServerErrorException.php index b3ea31b..6c8ef43 100644 --- a/generated/Auth/Exception/DeleteEnvInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteEnvInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteEnvNotFoundException.php b/generated/Auth/Exception/DeleteEnvNotFoundException.php index ee41d07..a4128a6 100644 --- a/generated/Auth/Exception/DeleteEnvNotFoundException.php +++ b/generated/Auth/Exception/DeleteEnvNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteRoleBadRequestException.php b/generated/Auth/Exception/DeleteRoleBadRequestException.php index 39517bc..8d50412 100644 --- a/generated/Auth/Exception/DeleteRoleBadRequestException.php +++ b/generated/Auth/Exception/DeleteRoleBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteRoleInternalServerErrorException.php b/generated/Auth/Exception/DeleteRoleInternalServerErrorException.php index f21fe60..6086aff 100644 --- a/generated/Auth/Exception/DeleteRoleInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteRoleInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteRoleNotFoundException.php b/generated/Auth/Exception/DeleteRoleNotFoundException.php index c68c175..b2641f3 100644 --- a/generated/Auth/Exception/DeleteRoleNotFoundException.php +++ b/generated/Auth/Exception/DeleteRoleNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteSaasUserInternalServerErrorException.php b/generated/Auth/Exception/DeleteSaasUserInternalServerErrorException.php index e3a69fb..44d95b0 100644 --- a/generated/Auth/Exception/DeleteSaasUserInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteSaasUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteSaasUserNotFoundException.php b/generated/Auth/Exception/DeleteSaasUserNotFoundException.php index 7a258d2..8f3a792 100644 --- a/generated/Auth/Exception/DeleteSaasUserNotFoundException.php +++ b/generated/Auth/Exception/DeleteSaasUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteStripeTenantAndPricingInternalServerErrorException.php b/generated/Auth/Exception/DeleteStripeTenantAndPricingInternalServerErrorException.php index 8dee7c4..d6395bd 100644 --- a/generated/Auth/Exception/DeleteStripeTenantAndPricingInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteStripeTenantAndPricingInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantAttributeInternalServerErrorException.php b/generated/Auth/Exception/DeleteTenantAttributeInternalServerErrorException.php index 6290017..32a4f23 100644 --- a/generated/Auth/Exception/DeleteTenantAttributeInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteTenantAttributeInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantAttributeNotFoundException.php b/generated/Auth/Exception/DeleteTenantAttributeNotFoundException.php index c9b0147..961c1ed 100644 --- a/generated/Auth/Exception/DeleteTenantAttributeNotFoundException.php +++ b/generated/Auth/Exception/DeleteTenantAttributeNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantInternalServerErrorException.php b/generated/Auth/Exception/DeleteTenantInternalServerErrorException.php index 7041d02..069c560 100644 --- a/generated/Auth/Exception/DeleteTenantInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteTenantInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantInvitationInternalServerErrorException.php b/generated/Auth/Exception/DeleteTenantInvitationInternalServerErrorException.php index 5f56051..6e01fb1 100644 --- a/generated/Auth/Exception/DeleteTenantInvitationInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteTenantInvitationInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantInvitationNotFoundException.php b/generated/Auth/Exception/DeleteTenantInvitationNotFoundException.php index 9a41a8a..ab7b282 100644 --- a/generated/Auth/Exception/DeleteTenantInvitationNotFoundException.php +++ b/generated/Auth/Exception/DeleteTenantInvitationNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantUserInternalServerErrorException.php b/generated/Auth/Exception/DeleteTenantUserInternalServerErrorException.php index bbe15c9..2ebe876 100644 --- a/generated/Auth/Exception/DeleteTenantUserInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteTenantUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantUserNotFoundException.php b/generated/Auth/Exception/DeleteTenantUserNotFoundException.php index f40ae36..2e6d04c 100644 --- a/generated/Auth/Exception/DeleteTenantUserNotFoundException.php +++ b/generated/Auth/Exception/DeleteTenantUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantUserRoleInternalServerErrorException.php b/generated/Auth/Exception/DeleteTenantUserRoleInternalServerErrorException.php index 013907e..f392887 100644 --- a/generated/Auth/Exception/DeleteTenantUserRoleInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteTenantUserRoleInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteTenantUserRoleNotFoundException.php b/generated/Auth/Exception/DeleteTenantUserRoleNotFoundException.php index 3c09650..19d99b1 100644 --- a/generated/Auth/Exception/DeleteTenantUserRoleNotFoundException.php +++ b/generated/Auth/Exception/DeleteTenantUserRoleNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteUserAttributeInternalServerErrorException.php b/generated/Auth/Exception/DeleteUserAttributeInternalServerErrorException.php index d3d8555..7dbca34 100644 --- a/generated/Auth/Exception/DeleteUserAttributeInternalServerErrorException.php +++ b/generated/Auth/Exception/DeleteUserAttributeInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/DeleteUserAttributeNotFoundException.php b/generated/Auth/Exception/DeleteUserAttributeNotFoundException.php index dcfef61..48814f6 100644 --- a/generated/Auth/Exception/DeleteUserAttributeNotFoundException.php +++ b/generated/Auth/Exception/DeleteUserAttributeNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/FindNotificationMessagesInternalServerErrorException.php b/generated/Auth/Exception/FindNotificationMessagesInternalServerErrorException.php index eb2f0c8..44a0c5e 100644 --- a/generated/Auth/Exception/FindNotificationMessagesInternalServerErrorException.php +++ b/generated/Auth/Exception/FindNotificationMessagesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetAllTenantUserInternalServerErrorException.php b/generated/Auth/Exception/GetAllTenantUserInternalServerErrorException.php index cc49670..952dcdd 100644 --- a/generated/Auth/Exception/GetAllTenantUserInternalServerErrorException.php +++ b/generated/Auth/Exception/GetAllTenantUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetAllTenantUserNotFoundException.php b/generated/Auth/Exception/GetAllTenantUserNotFoundException.php index 9237ad7..3c96ef1 100644 --- a/generated/Auth/Exception/GetAllTenantUserNotFoundException.php +++ b/generated/Auth/Exception/GetAllTenantUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetAllTenantUsersInternalServerErrorException.php b/generated/Auth/Exception/GetAllTenantUsersInternalServerErrorException.php index e696ecf..b653974 100644 --- a/generated/Auth/Exception/GetAllTenantUsersInternalServerErrorException.php +++ b/generated/Auth/Exception/GetAllTenantUsersInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetAuthCredentialsInternalServerErrorException.php b/generated/Auth/Exception/GetAuthCredentialsInternalServerErrorException.php index 6a90a3a..d0f349f 100644 --- a/generated/Auth/Exception/GetAuthCredentialsInternalServerErrorException.php +++ b/generated/Auth/Exception/GetAuthCredentialsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetAuthCredentialsNotFoundException.php b/generated/Auth/Exception/GetAuthCredentialsNotFoundException.php index c35effa..220721f 100644 --- a/generated/Auth/Exception/GetAuthCredentialsNotFoundException.php +++ b/generated/Auth/Exception/GetAuthCredentialsNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetAuthInfoInternalServerErrorException.php b/generated/Auth/Exception/GetAuthInfoInternalServerErrorException.php index baa5122..64b98f5 100644 --- a/generated/Auth/Exception/GetAuthInfoInternalServerErrorException.php +++ b/generated/Auth/Exception/GetAuthInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetBasicInfoInternalServerErrorException.php b/generated/Auth/Exception/GetBasicInfoInternalServerErrorException.php index f3b7979..a82728c 100644 --- a/generated/Auth/Exception/GetBasicInfoInternalServerErrorException.php +++ b/generated/Auth/Exception/GetBasicInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException.php b/generated/Auth/Exception/GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException.php new file mode 100644 index 0000000..d10e795 --- /dev/null +++ b/generated/Auth/Exception/GetCloudFormationLaunchStackLinkForSingleTenantInternalServerErrorException.php @@ -0,0 +1,29 @@ +error = $error; + $this->response = $response; + } + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + { + return $this->error; + } + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} \ No newline at end of file diff --git a/generated/Auth/Exception/GetCustomizePageSettingsInternalServerErrorException.php b/generated/Auth/Exception/GetCustomizePageSettingsInternalServerErrorException.php index 7abede4..93b99d2 100644 --- a/generated/Auth/Exception/GetCustomizePageSettingsInternalServerErrorException.php +++ b/generated/Auth/Exception/GetCustomizePageSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetCustomizePagesInternalServerErrorException.php b/generated/Auth/Exception/GetCustomizePagesInternalServerErrorException.php index 6562f18..0c9960f 100644 --- a/generated/Auth/Exception/GetCustomizePagesInternalServerErrorException.php +++ b/generated/Auth/Exception/GetCustomizePagesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetEnvInternalServerErrorException.php b/generated/Auth/Exception/GetEnvInternalServerErrorException.php index ad5cf1a..edabe5c 100644 --- a/generated/Auth/Exception/GetEnvInternalServerErrorException.php +++ b/generated/Auth/Exception/GetEnvInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetEnvNotFoundException.php b/generated/Auth/Exception/GetEnvNotFoundException.php index 9458b51..3a55d2e 100644 --- a/generated/Auth/Exception/GetEnvNotFoundException.php +++ b/generated/Auth/Exception/GetEnvNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetEnvsInternalServerErrorException.php b/generated/Auth/Exception/GetEnvsInternalServerErrorException.php index 11c2d6a..3e94016 100644 --- a/generated/Auth/Exception/GetEnvsInternalServerErrorException.php +++ b/generated/Auth/Exception/GetEnvsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetIdentityProvidersInternalServerErrorException.php b/generated/Auth/Exception/GetIdentityProvidersInternalServerErrorException.php index 181ae8a..5c769d9 100644 --- a/generated/Auth/Exception/GetIdentityProvidersInternalServerErrorException.php +++ b/generated/Auth/Exception/GetIdentityProvidersInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetInvitationValidityInternalServerErrorException.php b/generated/Auth/Exception/GetInvitationValidityInternalServerErrorException.php index 805b75d..bb02e2a 100644 --- a/generated/Auth/Exception/GetInvitationValidityInternalServerErrorException.php +++ b/generated/Auth/Exception/GetInvitationValidityInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetInvitationValidityNotFoundException.php b/generated/Auth/Exception/GetInvitationValidityNotFoundException.php index 7cbf9c9..5877f84 100644 --- a/generated/Auth/Exception/GetInvitationValidityNotFoundException.php +++ b/generated/Auth/Exception/GetInvitationValidityNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetRolesInternalServerErrorException.php b/generated/Auth/Exception/GetRolesInternalServerErrorException.php index c337d9c..3254d11 100644 --- a/generated/Auth/Exception/GetRolesInternalServerErrorException.php +++ b/generated/Auth/Exception/GetRolesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetSaasUserInternalServerErrorException.php b/generated/Auth/Exception/GetSaasUserInternalServerErrorException.php index 652133d..4f5444b 100644 --- a/generated/Auth/Exception/GetSaasUserInternalServerErrorException.php +++ b/generated/Auth/Exception/GetSaasUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetSaasUserNotFoundException.php b/generated/Auth/Exception/GetSaasUserNotFoundException.php index c45ed6a..0e9d0e5 100644 --- a/generated/Auth/Exception/GetSaasUserNotFoundException.php +++ b/generated/Auth/Exception/GetSaasUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetSaasUsersInternalServerErrorException.php b/generated/Auth/Exception/GetSaasUsersInternalServerErrorException.php index 4f02884..da9fc65 100644 --- a/generated/Auth/Exception/GetSaasUsersInternalServerErrorException.php +++ b/generated/Auth/Exception/GetSaasUsersInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetSignInSettingsInternalServerErrorException.php b/generated/Auth/Exception/GetSignInSettingsInternalServerErrorException.php index 8252f91..be77744 100644 --- a/generated/Auth/Exception/GetSignInSettingsInternalServerErrorException.php +++ b/generated/Auth/Exception/GetSignInSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetSingleTenantSettingsInternalServerErrorException.php b/generated/Auth/Exception/GetSingleTenantSettingsInternalServerErrorException.php new file mode 100644 index 0000000..aab6227 --- /dev/null +++ b/generated/Auth/Exception/GetSingleTenantSettingsInternalServerErrorException.php @@ -0,0 +1,29 @@ +error = $error; + $this->response = $response; + } + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + { + return $this->error; + } + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} \ No newline at end of file diff --git a/generated/Auth/Exception/GetTenantAttributesInternalServerErrorException.php b/generated/Auth/Exception/GetTenantAttributesInternalServerErrorException.php index 8ebf4c8..b236d62 100644 --- a/generated/Auth/Exception/GetTenantAttributesInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantAttributesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantIdentityProvidersInternalServerErrorException.php b/generated/Auth/Exception/GetTenantIdentityProvidersInternalServerErrorException.php index b218a53..6a10fa2 100644 --- a/generated/Auth/Exception/GetTenantIdentityProvidersInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantIdentityProvidersInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantInternalServerErrorException.php b/generated/Auth/Exception/GetTenantInternalServerErrorException.php index 3272423..6a00bc5 100644 --- a/generated/Auth/Exception/GetTenantInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantInvitationInternalServerErrorException.php b/generated/Auth/Exception/GetTenantInvitationInternalServerErrorException.php index 8698b68..49aeb0f 100644 --- a/generated/Auth/Exception/GetTenantInvitationInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantInvitationInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantInvitationNotFoundException.php b/generated/Auth/Exception/GetTenantInvitationNotFoundException.php index 588eb80..d8bb0f1 100644 --- a/generated/Auth/Exception/GetTenantInvitationNotFoundException.php +++ b/generated/Auth/Exception/GetTenantInvitationNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantInvitationsInternalServerErrorException.php b/generated/Auth/Exception/GetTenantInvitationsInternalServerErrorException.php index f3adde9..033bde2 100644 --- a/generated/Auth/Exception/GetTenantInvitationsInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantInvitationsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantNotFoundException.php b/generated/Auth/Exception/GetTenantNotFoundException.php index 69b5606..525987e 100644 --- a/generated/Auth/Exception/GetTenantNotFoundException.php +++ b/generated/Auth/Exception/GetTenantNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantUserInternalServerErrorException.php b/generated/Auth/Exception/GetTenantUserInternalServerErrorException.php index ab9fdae..74a66d6 100644 --- a/generated/Auth/Exception/GetTenantUserInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantUserNotFoundException.php b/generated/Auth/Exception/GetTenantUserNotFoundException.php index 8215f78..7fa503d 100644 --- a/generated/Auth/Exception/GetTenantUserNotFoundException.php +++ b/generated/Auth/Exception/GetTenantUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantUsersInternalServerErrorException.php b/generated/Auth/Exception/GetTenantUsersInternalServerErrorException.php index 7df067c..71d3e00 100644 --- a/generated/Auth/Exception/GetTenantUsersInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantUsersInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetTenantsInternalServerErrorException.php b/generated/Auth/Exception/GetTenantsInternalServerErrorException.php index 66b1c99..2d3578e 100644 --- a/generated/Auth/Exception/GetTenantsInternalServerErrorException.php +++ b/generated/Auth/Exception/GetTenantsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetUserAttributesInternalServerErrorException.php b/generated/Auth/Exception/GetUserAttributesInternalServerErrorException.php index fff97e8..088a34a 100644 --- a/generated/Auth/Exception/GetUserAttributesInternalServerErrorException.php +++ b/generated/Auth/Exception/GetUserAttributesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetUserInfoInternalServerErrorException.php b/generated/Auth/Exception/GetUserInfoInternalServerErrorException.php index f76a007..e391292 100644 --- a/generated/Auth/Exception/GetUserInfoInternalServerErrorException.php +++ b/generated/Auth/Exception/GetUserInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetUserInfoUnauthorizedException.php b/generated/Auth/Exception/GetUserInfoUnauthorizedException.php index 305328d..75d20c6 100644 --- a/generated/Auth/Exception/GetUserInfoUnauthorizedException.php +++ b/generated/Auth/Exception/GetUserInfoUnauthorizedException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/GetUserMfaPreferenceInternalServerErrorException.php b/generated/Auth/Exception/GetUserMfaPreferenceInternalServerErrorException.php index 7d3f87f..f88b7b3 100644 --- a/generated/Auth/Exception/GetUserMfaPreferenceInternalServerErrorException.php +++ b/generated/Auth/Exception/GetUserMfaPreferenceInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/LinkAwsMarketplaceInternalServerErrorException.php b/generated/Auth/Exception/LinkAwsMarketplaceInternalServerErrorException.php index 8c4b2fd..d89a40f 100644 --- a/generated/Auth/Exception/LinkAwsMarketplaceInternalServerErrorException.php +++ b/generated/Auth/Exception/LinkAwsMarketplaceInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/RequestEmailUpdateInternalServerErrorException.php b/generated/Auth/Exception/RequestEmailUpdateInternalServerErrorException.php index 0e86737..38b5fa8 100644 --- a/generated/Auth/Exception/RequestEmailUpdateInternalServerErrorException.php +++ b/generated/Auth/Exception/RequestEmailUpdateInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/RequestExternalUserLinkBadRequestException.php b/generated/Auth/Exception/RequestExternalUserLinkBadRequestException.php index 293e180..f656e39 100644 --- a/generated/Auth/Exception/RequestExternalUserLinkBadRequestException.php +++ b/generated/Auth/Exception/RequestExternalUserLinkBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/RequestExternalUserLinkInternalServerErrorException.php b/generated/Auth/Exception/RequestExternalUserLinkInternalServerErrorException.php index 1395907..cb13e7c 100644 --- a/generated/Auth/Exception/RequestExternalUserLinkInternalServerErrorException.php +++ b/generated/Auth/Exception/RequestExternalUserLinkInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ResendSignUpConfirmationEmailInternalServerErrorException.php b/generated/Auth/Exception/ResendSignUpConfirmationEmailInternalServerErrorException.php index 7713804..fbb1548 100644 --- a/generated/Auth/Exception/ResendSignUpConfirmationEmailInternalServerErrorException.php +++ b/generated/Auth/Exception/ResendSignUpConfirmationEmailInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ResetPlanInternalServerErrorException.php b/generated/Auth/Exception/ResetPlanInternalServerErrorException.php index 1bfc14d..c47e5c2 100644 --- a/generated/Auth/Exception/ResetPlanInternalServerErrorException.php +++ b/generated/Auth/Exception/ResetPlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/Auth/Exception/ReturnInternalServerErrorInternalServerErrorException.php index 3a2286d..0891203 100644 --- a/generated/Auth/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/Auth/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/SignUpInternalServerErrorException.php b/generated/Auth/Exception/SignUpInternalServerErrorException.php index 3097da0..a9b6954 100644 --- a/generated/Auth/Exception/SignUpInternalServerErrorException.php +++ b/generated/Auth/Exception/SignUpInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/SignUpWithAwsMarketplaceInternalServerErrorException.php b/generated/Auth/Exception/SignUpWithAwsMarketplaceInternalServerErrorException.php index 620c1ca..1e6eb36 100644 --- a/generated/Auth/Exception/SignUpWithAwsMarketplaceInternalServerErrorException.php +++ b/generated/Auth/Exception/SignUpWithAwsMarketplaceInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UnlinkProviderInternalServerErrorException.php b/generated/Auth/Exception/UnlinkProviderInternalServerErrorException.php index 59a8061..af49cff 100644 --- a/generated/Auth/Exception/UnlinkProviderInternalServerErrorException.php +++ b/generated/Auth/Exception/UnlinkProviderInternalServerErrorException.php @@ -4,16 +4,25 @@ class UnlinkProviderInternalServerErrorException extends InternalServerErrorException { + /** + * @var \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + */ + private $error; /** * @var \Psr\Http\Message\ResponseInterface */ private $response; - public function __construct(\Psr\Http\Message\ResponseInterface $response = null) + public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, \Psr\Http\Message\ResponseInterface $response) { parent::__construct('Internal Server Error'); + $this->error = $error; $this->response = $response; } - public function getResponse() : ?\Psr\Http\Message\ResponseInterface + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + { + return $this->error; + } + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateAuthInfoInternalServerErrorException.php b/generated/Auth/Exception/UpdateAuthInfoInternalServerErrorException.php index 71c5dd5..0a312d4 100644 --- a/generated/Auth/Exception/UpdateAuthInfoInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateAuthInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateBasicInfoInternalServerErrorException.php b/generated/Auth/Exception/UpdateBasicInfoInternalServerErrorException.php index b0853a3..1446d65 100644 --- a/generated/Auth/Exception/UpdateBasicInfoInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateBasicInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateCustomizePageSettingsInternalServerErrorException.php b/generated/Auth/Exception/UpdateCustomizePageSettingsInternalServerErrorException.php index dafd0b7..b55fa5e 100644 --- a/generated/Auth/Exception/UpdateCustomizePageSettingsInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateCustomizePageSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateCustomizePagesInternalServerErrorException.php b/generated/Auth/Exception/UpdateCustomizePagesInternalServerErrorException.php index 6c8ca96..8fd05fc 100644 --- a/generated/Auth/Exception/UpdateCustomizePagesInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateCustomizePagesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateEnvInternalServerErrorException.php b/generated/Auth/Exception/UpdateEnvInternalServerErrorException.php index 14914d9..52b8518 100644 --- a/generated/Auth/Exception/UpdateEnvInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateEnvInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateEnvNotFoundException.php b/generated/Auth/Exception/UpdateEnvNotFoundException.php index f9e59cd..6cfcbda 100644 --- a/generated/Auth/Exception/UpdateEnvNotFoundException.php +++ b/generated/Auth/Exception/UpdateEnvNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateIdentityProviderInternalServerErrorException.php b/generated/Auth/Exception/UpdateIdentityProviderInternalServerErrorException.php index 34728c0..84b18bc 100644 --- a/generated/Auth/Exception/UpdateIdentityProviderInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateIdentityProviderInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateNotificationMessagesInternalServerErrorException.php b/generated/Auth/Exception/UpdateNotificationMessagesInternalServerErrorException.php index 3980823..f746090 100644 --- a/generated/Auth/Exception/UpdateNotificationMessagesInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateNotificationMessagesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateSaasUserEmailInternalServerErrorException.php b/generated/Auth/Exception/UpdateSaasUserEmailInternalServerErrorException.php index 7c77d49..d0ba152 100644 --- a/generated/Auth/Exception/UpdateSaasUserEmailInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateSaasUserEmailInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateSaasUserPasswordInternalServerErrorException.php b/generated/Auth/Exception/UpdateSaasUserPasswordInternalServerErrorException.php index ea4b2b6..90558d1 100644 --- a/generated/Auth/Exception/UpdateSaasUserPasswordInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateSaasUserPasswordInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateSignInSettingsInternalServerErrorException.php b/generated/Auth/Exception/UpdateSignInSettingsInternalServerErrorException.php index 776900f..8da8810 100644 --- a/generated/Auth/Exception/UpdateSignInSettingsInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateSignInSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateSingleTenantSettingsBadRequestException.php b/generated/Auth/Exception/UpdateSingleTenantSettingsBadRequestException.php new file mode 100644 index 0000000..474b0b4 --- /dev/null +++ b/generated/Auth/Exception/UpdateSingleTenantSettingsBadRequestException.php @@ -0,0 +1,29 @@ +error = $error; + $this->response = $response; + } + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + { + return $this->error; + } + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} \ No newline at end of file diff --git a/generated/Auth/Exception/UpdateSingleTenantSettingsInternalServerErrorException.php b/generated/Auth/Exception/UpdateSingleTenantSettingsInternalServerErrorException.php new file mode 100644 index 0000000..8a37530 --- /dev/null +++ b/generated/Auth/Exception/UpdateSingleTenantSettingsInternalServerErrorException.php @@ -0,0 +1,29 @@ +error = $error; + $this->response = $response; + } + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + { + return $this->error; + } + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} \ No newline at end of file diff --git a/generated/Auth/Exception/UpdateSoftwareTokenInternalServerErrorException.php b/generated/Auth/Exception/UpdateSoftwareTokenInternalServerErrorException.php index b37a12c..3b43cc8 100644 --- a/generated/Auth/Exception/UpdateSoftwareTokenInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateSoftwareTokenInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantBillingInfoBadRequestException.php b/generated/Auth/Exception/UpdateTenantBillingInfoBadRequestException.php index c523233..9b849c4 100644 --- a/generated/Auth/Exception/UpdateTenantBillingInfoBadRequestException.php +++ b/generated/Auth/Exception/UpdateTenantBillingInfoBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantBillingInfoInternalServerErrorException.php b/generated/Auth/Exception/UpdateTenantBillingInfoInternalServerErrorException.php index 3cd2c35..fe8787a 100644 --- a/generated/Auth/Exception/UpdateTenantBillingInfoInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateTenantBillingInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantBillingInfoNotFoundException.php b/generated/Auth/Exception/UpdateTenantBillingInfoNotFoundException.php index d16be5c..4470f88 100644 --- a/generated/Auth/Exception/UpdateTenantBillingInfoNotFoundException.php +++ b/generated/Auth/Exception/UpdateTenantBillingInfoNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantIdentityProviderInternalServerErrorException.php b/generated/Auth/Exception/UpdateTenantIdentityProviderInternalServerErrorException.php index 45d28e9..0cafa29 100644 --- a/generated/Auth/Exception/UpdateTenantIdentityProviderInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateTenantIdentityProviderInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantInternalServerErrorException.php b/generated/Auth/Exception/UpdateTenantInternalServerErrorException.php index 9b0e788..1f064f0 100644 --- a/generated/Auth/Exception/UpdateTenantInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateTenantInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantNotFoundException.php b/generated/Auth/Exception/UpdateTenantNotFoundException.php index e1e36e3..b5219b7 100644 --- a/generated/Auth/Exception/UpdateTenantNotFoundException.php +++ b/generated/Auth/Exception/UpdateTenantNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantPlanBadRequestException.php b/generated/Auth/Exception/UpdateTenantPlanBadRequestException.php index 0d394cf..7b28194 100644 --- a/generated/Auth/Exception/UpdateTenantPlanBadRequestException.php +++ b/generated/Auth/Exception/UpdateTenantPlanBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantPlanInternalServerErrorException.php b/generated/Auth/Exception/UpdateTenantPlanInternalServerErrorException.php index 9ae65ec..9f3cc45 100644 --- a/generated/Auth/Exception/UpdateTenantPlanInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateTenantPlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantPlanNotFoundException.php b/generated/Auth/Exception/UpdateTenantPlanNotFoundException.php index d112f4f..24ce2e6 100644 --- a/generated/Auth/Exception/UpdateTenantPlanNotFoundException.php +++ b/generated/Auth/Exception/UpdateTenantPlanNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantUserInternalServerErrorException.php b/generated/Auth/Exception/UpdateTenantUserInternalServerErrorException.php index 16057a8..05d1e10 100644 --- a/generated/Auth/Exception/UpdateTenantUserInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateTenantUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateTenantUserNotFoundException.php b/generated/Auth/Exception/UpdateTenantUserNotFoundException.php index d696dab..5f68332 100644 --- a/generated/Auth/Exception/UpdateTenantUserNotFoundException.php +++ b/generated/Auth/Exception/UpdateTenantUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/UpdateUserMfaPreferenceInternalServerErrorException.php b/generated/Auth/Exception/UpdateUserMfaPreferenceInternalServerErrorException.php index 3473216..24e8a6a 100644 --- a/generated/Auth/Exception/UpdateUserMfaPreferenceInternalServerErrorException.php +++ b/generated/Auth/Exception/UpdateUserMfaPreferenceInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ValidateInvitationBadRequestException.php b/generated/Auth/Exception/ValidateInvitationBadRequestException.php index ad76bfe..6cd3eca 100644 --- a/generated/Auth/Exception/ValidateInvitationBadRequestException.php +++ b/generated/Auth/Exception/ValidateInvitationBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ValidateInvitationInternalServerErrorException.php b/generated/Auth/Exception/ValidateInvitationInternalServerErrorException.php index 4f2734a..557932c 100644 --- a/generated/Auth/Exception/ValidateInvitationInternalServerErrorException.php +++ b/generated/Auth/Exception/ValidateInvitationInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Exception/ValidateInvitationNotFoundException.php b/generated/Auth/Exception/ValidateInvitationNotFoundException.php index c06cd2c..2fcfa81 100644 --- a/generated/Auth/Exception/ValidateInvitationNotFoundException.php +++ b/generated/Auth/Exception/ValidateInvitationNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Auth\Model\Error $error, $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Auth\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Auth\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Auth/Model/AccountVerification.php b/generated/Auth/Model/AccountVerification.php index bf4b748..8af3a5c 100644 --- a/generated/Auth/Model/AccountVerification.php +++ b/generated/Auth/Model/AccountVerification.php @@ -7,80 +7,80 @@ class AccountVerification extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * code: 検証コード(verification code) - link: 検証リンク(verification link) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * code: verification code + link: verification link + ※ This function is not yet provided, so it cannot be changed or saved. * * @var string|null */ protected $verificationMethod; /** - * email: Eメール(e-mail) + * email: e-mail sms: SMS - smsOrEmail: SMS不可の場合にEメール(email if SMS is not possible) + smsOrEmail: email if SMS is not possible * * @var string|null */ protected $sendingTo; /** - * code: 検証コード(verification code) - link: 検証リンク(verification link) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * code: verification code + link: verification link + ※ This function is not yet provided, so it cannot be changed or saved. * * @return string|null */ - public function getVerificationMethod() : ?string + public function getVerificationMethod(): ?string { return $this->verificationMethod; } /** - * code: 検証コード(verification code) - link: 検証リンク(verification link) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * code: verification code + link: verification link + ※ This function is not yet provided, so it cannot be changed or saved. * * @param string|null $verificationMethod * * @return self */ - public function setVerificationMethod(?string $verificationMethod) : self + public function setVerificationMethod(?string $verificationMethod): self { $this->initialized['verificationMethod'] = true; $this->verificationMethod = $verificationMethod; return $this; } /** - * email: Eメール(e-mail) + * email: e-mail sms: SMS - smsOrEmail: SMS不可の場合にEメール(email if SMS is not possible) + smsOrEmail: email if SMS is not possible * * @return string|null */ - public function getSendingTo() : ?string + public function getSendingTo(): ?string { return $this->sendingTo; } /** - * email: Eメール(e-mail) + * email: e-mail sms: SMS - smsOrEmail: SMS不可の場合にEメール(email if SMS is not possible) + smsOrEmail: email if SMS is not possible * * @param string|null $sendingTo * * @return self */ - public function setSendingTo(?string $sendingTo) : self + public function setSendingTo(?string $sendingTo): self { $this->initialized['sendingTo'] = true; $this->sendingTo = $sendingTo; diff --git a/generated/Auth/Model/ApiKeys.php b/generated/Auth/Model/ApiKeys.php index 7db4875..c049058 100644 --- a/generated/Auth/Model/ApiKeys.php +++ b/generated/Auth/Model/ApiKeys.php @@ -7,34 +7,34 @@ class ApiKeys extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * APIキー(API Key) + * API Key * - * @var string[]|null + * @var list|null */ protected $apiKeys; /** - * APIキー(API Key) + * API Key * - * @return string[]|null + * @return list|null */ - public function getApiKeys() : ?array + public function getApiKeys(): ?array { return $this->apiKeys; } /** - * APIキー(API Key) + * API Key * - * @param string[]|null $apiKeys + * @param list|null $apiKeys * * @return self */ - public function setApiKeys(?array $apiKeys) : self + public function setApiKeys(?array $apiKeys): self { $this->initialized['apiKeys'] = true; $this->apiKeys = $apiKeys; diff --git a/generated/Auth/Model/Attribute.php b/generated/Auth/Model/Attribute.php index 9f8a3fb..3befa0c 100644 --- a/generated/Auth/Model/Attribute.php +++ b/generated/Auth/Model/Attribute.php @@ -7,96 +7,90 @@ class Attribute extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 属性名(attribute name) + * Attribute Name * * @var string|null */ protected $attributeName; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 型(dateはYYYY-MM-DDの形式で使用する事ができます。) - (Type (date can be set to YYYY-MM-DD format.)) - - * - * @var string|null - */ + * Type (date can be set to YYYY-MM-DD format.) + * + * @var string|null + */ protected $attributeType; /** - * 属性名(attribute name) + * Attribute Name * * @return string|null */ - public function getAttributeName() : ?string + public function getAttributeName(): ?string { return $this->attributeName; } /** - * 属性名(attribute name) + * Attribute Name * * @param string|null $attributeName * * @return self */ - public function setAttributeName(?string $attributeName) : self + public function setAttributeName(?string $attributeName): self { $this->initialized['attributeName'] = true; $this->attributeName = $attributeName; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 型(dateはYYYY-MM-DDの形式で使用する事ができます。) - (Type (date can be set to YYYY-MM-DD format.)) - - * - * @return string|null - */ - public function getAttributeType() : ?string + * Type (date can be set to YYYY-MM-DD format.) + * + * @return string|null + */ + public function getAttributeType(): ?string { return $this->attributeType; } /** - * 型(dateはYYYY-MM-DDの形式で使用する事ができます。) - (Type (date can be set to YYYY-MM-DD format.)) - - * - * @param string|null $attributeType - * - * @return self - */ - public function setAttributeType(?string $attributeType) : self + * Type (date can be set to YYYY-MM-DD format.) + * + * @param string|null $attributeType + * + * @return self + */ + public function setAttributeType(?string $attributeType): self { $this->initialized['attributeType'] = true; $this->attributeType = $attributeType; diff --git a/generated/Auth/Model/AuthInfo.php b/generated/Auth/Model/AuthInfo.php index 0bc10ef..2859a0d 100644 --- a/generated/Auth/Model/AuthInfo.php +++ b/generated/Auth/Model/AuthInfo.php @@ -7,34 +7,34 @@ class AuthInfo extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 認証後遷移先(Redirect After Authentication) + * Redirect After Authentication * * @var string|null */ protected $callbackUrl; /** - * 認証後遷移先(Redirect After Authentication) + * Redirect After Authentication * * @return string|null */ - public function getCallbackUrl() : ?string + public function getCallbackUrl(): ?string { return $this->callbackUrl; } /** - * 認証後遷移先(Redirect After Authentication) + * Redirect After Authentication * * @param string|null $callbackUrl * * @return self */ - public function setCallbackUrl(?string $callbackUrl) : self + public function setCallbackUrl(?string $callbackUrl): self { $this->initialized['callbackUrl'] = true; $this->callbackUrl = $callbackUrl; diff --git a/generated/Auth/Model/AuthorizationTempCode.php b/generated/Auth/Model/AuthorizationTempCode.php index 09503d0..5ca154f 100644 --- a/generated/Auth/Model/AuthorizationTempCode.php +++ b/generated/Auth/Model/AuthorizationTempCode.php @@ -7,8 +7,8 @@ class AuthorizationTempCode extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getCode() : ?string + public function getCode(): ?string { return $this->code; } @@ -34,7 +34,7 @@ public function getCode() : ?string * * @return self */ - public function setCode(?string $code) : self + public function setCode(?string $code): self { $this->initialized['code'] = true; $this->code = $code; diff --git a/generated/Auth/Model/BasicInfo.php b/generated/Auth/Model/BasicInfo.php index 8501c96..e2b2aab 100644 --- a/generated/Auth/Model/BasicInfo.php +++ b/generated/Auth/Model/BasicInfo.php @@ -7,19 +7,19 @@ class BasicInfo extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * ドメイン名(Domain Name) + * Domain Name * * @var string|null */ protected $domainName; /** - * DNSレコードの検証結果(DNS Record Verification Results) + * DNS Record Verification Results * * @var bool|null */ @@ -37,74 +37,74 @@ public function isInitialized($property) : bool */ protected $cloudFrontDnsRecord; /** - * DKIM DNS レコード(DKIM DNS Records) + * DKIM DNS Records * - * @var DnsRecord[]|null + * @var list|null */ protected $dkimDnsRecords; /** - * デフォルトドメイン名(Default Domain Name) + * Default Domain Name * * @var string|null */ protected $defaultDomainName; /** - * 認証メールの送信元メールアドレス(Sender Email for Authentication Email) + * Sender Email for Authentication Email * * @var string|null */ protected $fromEmailAddress; /** - * 認証メールの返信元メールアドレス(Reply-from email address of authentication email) + * Reply-from email address of authentication email * * @var string|null */ protected $replyEmailAddress; /** - * SESのサンドボックス解除及びCognitoのSES設定結果(SES sandbox release and Cognito SES configuration results) + * SES sandbox release and Cognito SES configuration results * * @var bool|null */ protected $isSesSandboxGranted; /** - * ドメイン名(Domain Name) + * Domain Name * * @return string|null */ - public function getDomainName() : ?string + public function getDomainName(): ?string { return $this->domainName; } /** - * ドメイン名(Domain Name) + * Domain Name * * @param string|null $domainName * * @return self */ - public function setDomainName(?string $domainName) : self + public function setDomainName(?string $domainName): self { $this->initialized['domainName'] = true; $this->domainName = $domainName; return $this; } /** - * DNSレコードの検証結果(DNS Record Verification Results) + * DNS Record Verification Results * * @return bool|null */ - public function getIsDnsValidated() : ?bool + public function getIsDnsValidated(): ?bool { return $this->isDnsValidated; } /** - * DNSレコードの検証結果(DNS Record Verification Results) + * DNS Record Verification Results * * @param bool|null $isDnsValidated * * @return self */ - public function setIsDnsValidated(?bool $isDnsValidated) : self + public function setIsDnsValidated(?bool $isDnsValidated): self { $this->initialized['isDnsValidated'] = true; $this->isDnsValidated = $isDnsValidated; @@ -115,7 +115,7 @@ public function setIsDnsValidated(?bool $isDnsValidated) : self * * @return DnsRecord|null */ - public function getCertificateDnsRecord() : ?DnsRecord + public function getCertificateDnsRecord(): ?DnsRecord { return $this->certificateDnsRecord; } @@ -126,7 +126,7 @@ public function getCertificateDnsRecord() : ?DnsRecord * * @return self */ - public function setCertificateDnsRecord(?DnsRecord $certificateDnsRecord) : self + public function setCertificateDnsRecord(?DnsRecord $certificateDnsRecord): self { $this->initialized['certificateDnsRecord'] = true; $this->certificateDnsRecord = $certificateDnsRecord; @@ -137,7 +137,7 @@ public function setCertificateDnsRecord(?DnsRecord $certificateDnsRecord) : self * * @return DnsRecord|null */ - public function getCloudFrontDnsRecord() : ?DnsRecord + public function getCloudFrontDnsRecord(): ?DnsRecord { return $this->cloudFrontDnsRecord; } @@ -148,117 +148,117 @@ public function getCloudFrontDnsRecord() : ?DnsRecord * * @return self */ - public function setCloudFrontDnsRecord(?DnsRecord $cloudFrontDnsRecord) : self + public function setCloudFrontDnsRecord(?DnsRecord $cloudFrontDnsRecord): self { $this->initialized['cloudFrontDnsRecord'] = true; $this->cloudFrontDnsRecord = $cloudFrontDnsRecord; return $this; } /** - * DKIM DNS レコード(DKIM DNS Records) + * DKIM DNS Records * - * @return DnsRecord[]|null + * @return list|null */ - public function getDkimDnsRecords() : ?array + public function getDkimDnsRecords(): ?array { return $this->dkimDnsRecords; } /** - * DKIM DNS レコード(DKIM DNS Records) + * DKIM DNS Records * - * @param DnsRecord[]|null $dkimDnsRecords + * @param list|null $dkimDnsRecords * * @return self */ - public function setDkimDnsRecords(?array $dkimDnsRecords) : self + public function setDkimDnsRecords(?array $dkimDnsRecords): self { $this->initialized['dkimDnsRecords'] = true; $this->dkimDnsRecords = $dkimDnsRecords; return $this; } /** - * デフォルトドメイン名(Default Domain Name) + * Default Domain Name * * @return string|null */ - public function getDefaultDomainName() : ?string + public function getDefaultDomainName(): ?string { return $this->defaultDomainName; } /** - * デフォルトドメイン名(Default Domain Name) + * Default Domain Name * * @param string|null $defaultDomainName * * @return self */ - public function setDefaultDomainName(?string $defaultDomainName) : self + public function setDefaultDomainName(?string $defaultDomainName): self { $this->initialized['defaultDomainName'] = true; $this->defaultDomainName = $defaultDomainName; return $this; } /** - * 認証メールの送信元メールアドレス(Sender Email for Authentication Email) + * Sender Email for Authentication Email * * @return string|null */ - public function getFromEmailAddress() : ?string + public function getFromEmailAddress(): ?string { return $this->fromEmailAddress; } /** - * 認証メールの送信元メールアドレス(Sender Email for Authentication Email) + * Sender Email for Authentication Email * * @param string|null $fromEmailAddress * * @return self */ - public function setFromEmailAddress(?string $fromEmailAddress) : self + public function setFromEmailAddress(?string $fromEmailAddress): self { $this->initialized['fromEmailAddress'] = true; $this->fromEmailAddress = $fromEmailAddress; return $this; } /** - * 認証メールの返信元メールアドレス(Reply-from email address of authentication email) + * Reply-from email address of authentication email * * @return string|null */ - public function getReplyEmailAddress() : ?string + public function getReplyEmailAddress(): ?string { return $this->replyEmailAddress; } /** - * 認証メールの返信元メールアドレス(Reply-from email address of authentication email) + * Reply-from email address of authentication email * * @param string|null $replyEmailAddress * * @return self */ - public function setReplyEmailAddress(?string $replyEmailAddress) : self + public function setReplyEmailAddress(?string $replyEmailAddress): self { $this->initialized['replyEmailAddress'] = true; $this->replyEmailAddress = $replyEmailAddress; return $this; } /** - * SESのサンドボックス解除及びCognitoのSES設定結果(SES sandbox release and Cognito SES configuration results) + * SES sandbox release and Cognito SES configuration results * * @return bool|null */ - public function getIsSesSandboxGranted() : ?bool + public function getIsSesSandboxGranted(): ?bool { return $this->isSesSandboxGranted; } /** - * SESのサンドボックス解除及びCognitoのSES設定結果(SES sandbox release and Cognito SES configuration results) + * SES sandbox release and Cognito SES configuration results * * @param bool|null $isSesSandboxGranted * * @return self */ - public function setIsSesSandboxGranted(?bool $isSesSandboxGranted) : self + public function setIsSesSandboxGranted(?bool $isSesSandboxGranted): self { $this->initialized['isSesSandboxGranted'] = true; $this->isSesSandboxGranted = $isSesSandboxGranted; diff --git a/generated/Auth/Model/BillingAddress.php b/generated/Auth/Model/BillingAddress.php index bfeeaee..45590b1 100644 --- a/generated/Auth/Model/BillingAddress.php +++ b/generated/Auth/Model/BillingAddress.php @@ -7,228 +7,174 @@ class BillingAddress extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 住所の通りの名前や番地を含めた部分 - - Street address, apartment or suite number. - - * - * @var string|null - */ + * Street address, apartment or suite number. + * + * @var string|null + */ protected $street; /** - * 住所の市区町村 - - City, district, suburb, town, or village. - - * - * @var string|null - */ + * City, district, suburb, town, or village. + * + * @var string|null + */ protected $city; /** - * 住所の都道府県または州 - - State name or abbreviation. - - * - * @var string|null - */ + * State name or abbreviation. + * + * @var string|null + */ protected $state; /** - * 住所の国を ISO 3166-1 alpha-2 コードで指定します。 - - Country of the address using ISO 3166-1 alpha-2 code. - - * - * @var string|null - */ + * Country of the address using ISO 3166-1 alpha-2 code. + * + * @var string|null + */ protected $country; /** - * 建物名・部屋番号などの住所に関する追加情報 - - Additional information about the address, such as a building name, floor, or department name. - - * - * @var string|null - */ + * Additional information about the address, such as a building name, floor, or department name. + * + * @var string|null + */ protected $additionalAddressInfo; /** - * 郵便番号 - - ZIP or postal code. - - * - * @var string|null - */ + * ZIP or postal code. + * + * @var string|null + */ protected $postalCode; /** - * 住所の通りの名前や番地を含めた部分 - - Street address, apartment or suite number. - - * - * @return string|null - */ - public function getStreet() : ?string + * Street address, apartment or suite number. + * + * @return string|null + */ + public function getStreet(): ?string { return $this->street; } /** - * 住所の通りの名前や番地を含めた部分 - - Street address, apartment or suite number. - - * - * @param string|null $street - * - * @return self - */ - public function setStreet(?string $street) : self + * Street address, apartment or suite number. + * + * @param string|null $street + * + * @return self + */ + public function setStreet(?string $street): self { $this->initialized['street'] = true; $this->street = $street; return $this; } /** - * 住所の市区町村 - - City, district, suburb, town, or village. - - * - * @return string|null - */ - public function getCity() : ?string + * City, district, suburb, town, or village. + * + * @return string|null + */ + public function getCity(): ?string { return $this->city; } /** - * 住所の市区町村 - - City, district, suburb, town, or village. - - * - * @param string|null $city - * - * @return self - */ - public function setCity(?string $city) : self + * City, district, suburb, town, or village. + * + * @param string|null $city + * + * @return self + */ + public function setCity(?string $city): self { $this->initialized['city'] = true; $this->city = $city; return $this; } /** - * 住所の都道府県または州 - - State name or abbreviation. - - * - * @return string|null - */ - public function getState() : ?string + * State name or abbreviation. + * + * @return string|null + */ + public function getState(): ?string { return $this->state; } /** - * 住所の都道府県または州 - - State name or abbreviation. - - * - * @param string|null $state - * - * @return self - */ - public function setState(?string $state) : self + * State name or abbreviation. + * + * @param string|null $state + * + * @return self + */ + public function setState(?string $state): self { $this->initialized['state'] = true; $this->state = $state; return $this; } /** - * 住所の国を ISO 3166-1 alpha-2 コードで指定します。 - - Country of the address using ISO 3166-1 alpha-2 code. - - * - * @return string|null - */ - public function getCountry() : ?string + * Country of the address using ISO 3166-1 alpha-2 code. + * + * @return string|null + */ + public function getCountry(): ?string { return $this->country; } /** - * 住所の国を ISO 3166-1 alpha-2 コードで指定します。 - - Country of the address using ISO 3166-1 alpha-2 code. - - * - * @param string|null $country - * - * @return self - */ - public function setCountry(?string $country) : self + * Country of the address using ISO 3166-1 alpha-2 code. + * + * @param string|null $country + * + * @return self + */ + public function setCountry(?string $country): self { $this->initialized['country'] = true; $this->country = $country; return $this; } /** - * 建物名・部屋番号などの住所に関する追加情報 - - Additional information about the address, such as a building name, floor, or department name. - - * - * @return string|null - */ - public function getAdditionalAddressInfo() : ?string + * Additional information about the address, such as a building name, floor, or department name. + * + * @return string|null + */ + public function getAdditionalAddressInfo(): ?string { return $this->additionalAddressInfo; } /** - * 建物名・部屋番号などの住所に関する追加情報 - - Additional information about the address, such as a building name, floor, or department name. - - * - * @param string|null $additionalAddressInfo - * - * @return self - */ - public function setAdditionalAddressInfo(?string $additionalAddressInfo) : self + * Additional information about the address, such as a building name, floor, or department name. + * + * @param string|null $additionalAddressInfo + * + * @return self + */ + public function setAdditionalAddressInfo(?string $additionalAddressInfo): self { $this->initialized['additionalAddressInfo'] = true; $this->additionalAddressInfo = $additionalAddressInfo; return $this; } /** - * 郵便番号 - - ZIP or postal code. - - * - * @return string|null - */ - public function getPostalCode() : ?string + * ZIP or postal code. + * + * @return string|null + */ + public function getPostalCode(): ?string { return $this->postalCode; } /** - * 郵便番号 - - ZIP or postal code. - - * - * @param string|null $postalCode - * - * @return self - */ - public function setPostalCode(?string $postalCode) : self + * ZIP or postal code. + * + * @param string|null $postalCode + * + * @return self + */ + public function setPostalCode(?string $postalCode): self { $this->initialized['postalCode'] = true; $this->postalCode = $postalCode; diff --git a/generated/Auth/Model/BillingInfo.php b/generated/Auth/Model/BillingInfo.php index efd76e4..f42e3b6 100644 --- a/generated/Auth/Model/BillingInfo.php +++ b/generated/Auth/Model/BillingInfo.php @@ -7,19 +7,16 @@ class BillingInfo extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 請求用のテナント名 - - Tenant name for billing - - * - * @var string|null - */ + * Tenant name for billing + * + * @var string|null + */ protected $name; /** * @@ -28,37 +25,28 @@ public function isInitialized($property) : bool */ protected $address; /** - * 請求書の言語 - - Language of invoice - - * - * @var string|null - */ + * Language of invoice + * + * @var string|null + */ protected $invoiceLanguage; /** - * 請求用のテナント名 - - Tenant name for billing - - * - * @return string|null - */ - public function getName() : ?string + * Tenant name for billing + * + * @return string|null + */ + public function getName(): ?string { return $this->name; } /** - * 請求用のテナント名 - - Tenant name for billing - - * - * @param string|null $name - * - * @return self - */ - public function setName(?string $name) : self + * Tenant name for billing + * + * @param string|null $name + * + * @return self + */ + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; @@ -69,7 +57,7 @@ public function setName(?string $name) : self * * @return BillingAddress|null */ - public function getAddress() : ?BillingAddress + public function getAddress(): ?BillingAddress { return $this->address; } @@ -80,35 +68,29 @@ public function getAddress() : ?BillingAddress * * @return self */ - public function setAddress(?BillingAddress $address) : self + public function setAddress(?BillingAddress $address): self { $this->initialized['address'] = true; $this->address = $address; return $this; } /** - * 請求書の言語 - - Language of invoice - - * - * @return string|null - */ - public function getInvoiceLanguage() : ?string + * Language of invoice + * + * @return string|null + */ + public function getInvoiceLanguage(): ?string { return $this->invoiceLanguage; } /** - * 請求書の言語 - - Language of invoice - - * - * @param string|null $invoiceLanguage - * - * @return self - */ - public function setInvoiceLanguage(?string $invoiceLanguage) : self + * Language of invoice + * + * @param string|null $invoiceLanguage + * + * @return self + */ + public function setInvoiceLanguage(?string $invoiceLanguage): self { $this->initialized['invoiceLanguage'] = true; $this->invoiceLanguage = $invoiceLanguage; diff --git a/generated/Auth/Model/ClientSecret.php b/generated/Auth/Model/ClientSecret.php index 86ecdb3..23a90ed 100644 --- a/generated/Auth/Model/ClientSecret.php +++ b/generated/Auth/Model/ClientSecret.php @@ -7,34 +7,34 @@ class ClientSecret extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * クライアントシークレット(client secret) + * Client Secret * * @var string|null */ protected $clientSecret; /** - * クライアントシークレット(client secret) + * Client Secret * * @return string|null */ - public function getClientSecret() : ?string + public function getClientSecret(): ?string { return $this->clientSecret; } /** - * クライアントシークレット(client secret) + * Client Secret * * @param string|null $clientSecret * * @return self */ - public function setClientSecret(?string $clientSecret) : self + public function setClientSecret(?string $clientSecret): self { $this->initialized['clientSecret'] = true; $this->clientSecret = $clientSecret; diff --git a/generated/Auth/Model/CloudFormationLaunchStackLink.php b/generated/Auth/Model/CloudFormationLaunchStackLink.php new file mode 100644 index 0000000..18712a1 --- /dev/null +++ b/generated/Auth/Model/CloudFormationLaunchStackLink.php @@ -0,0 +1,43 @@ +initialized); + } + /** + * + * + * @var string|null + */ + protected $link; + /** + * + * + * @return string|null + */ + public function getLink(): ?string + { + return $this->link; + } + /** + * + * + * @param string|null $link + * + * @return self + */ + public function setLink(?string $link): self + { + $this->initialized['link'] = true; + $this->link = $link; + return $this; + } +} \ No newline at end of file diff --git a/generated/Auth/Model/ConfirmEmailUpdateParam.php b/generated/Auth/Model/ConfirmEmailUpdateParam.php index 8b324e0..ff5cd08 100644 --- a/generated/Auth/Model/ConfirmEmailUpdateParam.php +++ b/generated/Auth/Model/ConfirmEmailUpdateParam.php @@ -7,8 +7,8 @@ class ConfirmEmailUpdateParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getCode() : ?string + public function getCode(): ?string { return $this->code; } @@ -40,7 +40,7 @@ public function getCode() : ?string * * @return self */ - public function setCode(?string $code) : self + public function setCode(?string $code): self { $this->initialized['code'] = true; $this->code = $code; @@ -51,7 +51,7 @@ public function setCode(?string $code) : self * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } @@ -62,7 +62,7 @@ public function getAccessToken() : ?string * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; diff --git a/generated/Auth/Model/ConfirmExternalUserLinkParam.php b/generated/Auth/Model/ConfirmExternalUserLinkParam.php index f09a9ad..7d260f8 100644 --- a/generated/Auth/Model/ConfirmExternalUserLinkParam.php +++ b/generated/Auth/Model/ConfirmExternalUserLinkParam.php @@ -7,8 +7,8 @@ class ConfirmExternalUserLinkParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } @@ -40,7 +40,7 @@ public function getAccessToken() : ?string * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; @@ -51,7 +51,7 @@ public function setAccessToken(?string $accessToken) : self * * @return string|null */ - public function getCode() : ?string + public function getCode(): ?string { return $this->code; } @@ -62,7 +62,7 @@ public function getCode() : ?string * * @return self */ - public function setCode(?string $code) : self + public function setCode(?string $code): self { $this->initialized['code'] = true; $this->code = $code; diff --git a/generated/Auth/Model/ConfirmSignUpWithAwsMarketplaceParam.php b/generated/Auth/Model/ConfirmSignUpWithAwsMarketplaceParam.php index c23dea1..b70ace9 100644 --- a/generated/Auth/Model/ConfirmSignUpWithAwsMarketplaceParam.php +++ b/generated/Auth/Model/ConfirmSignUpWithAwsMarketplaceParam.php @@ -7,19 +7,19 @@ class ConfirmSignUpWithAwsMarketplaceParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * テナント名(tenant name) + * Tenant name * * @var string|null */ protected $tenantName; /** - * アクセストークン(access token) + * Access token * * @var string|null */ @@ -31,44 +31,44 @@ public function isInitialized($property) : bool */ protected $registrationToken; /** - * テナント名(tenant name) + * Tenant name * * @return string|null */ - public function getTenantName() : ?string + public function getTenantName(): ?string { return $this->tenantName; } /** - * テナント名(tenant name) + * Tenant name * * @param string|null $tenantName * * @return self */ - public function setTenantName(?string $tenantName) : self + public function setTenantName(?string $tenantName): self { $this->initialized['tenantName'] = true; $this->tenantName = $tenantName; return $this; } /** - * アクセストークン(access token) + * Access token * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * アクセストークン(access token) + * Access token * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; @@ -79,7 +79,7 @@ public function setAccessToken(?string $accessToken) : self * * @return string|null */ - public function getRegistrationToken() : ?string + public function getRegistrationToken(): ?string { return $this->registrationToken; } @@ -90,7 +90,7 @@ public function getRegistrationToken() : ?string * * @return self */ - public function setRegistrationToken(?string $registrationToken) : self + public function setRegistrationToken(?string $registrationToken): self { $this->initialized['registrationToken'] = true; $this->registrationToken = $registrationToken; diff --git a/generated/Auth/Model/CreateSaasUserParam.php b/generated/Auth/Model/CreateSaasUserParam.php index ddee7f5..02de5b3 100644 --- a/generated/Auth/Model/CreateSaasUserParam.php +++ b/generated/Auth/Model/CreateSaasUserParam.php @@ -7,62 +7,62 @@ class CreateSaasUserParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(E-mail) + * E-mail * * @var string|null */ protected $email; /** - * パスワード(Password) + * Password * * @var string|null */ protected $password; /** - * メールアドレス(E-mail) + * E-mail * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(E-mail) + * E-mail * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * パスワード(Password) + * Password * * @return string|null */ - public function getPassword() : ?string + public function getPassword(): ?string { return $this->password; } /** - * パスワード(Password) + * Password * * @param string|null $password * * @return self */ - public function setPassword(?string $password) : self + public function setPassword(?string $password): self { $this->initialized['password'] = true; $this->password = $password; diff --git a/generated/Auth/Model/CreateSecretCodeParam.php b/generated/Auth/Model/CreateSecretCodeParam.php index 32cf1bb..2d2bb4d 100644 --- a/generated/Auth/Model/CreateSecretCodeParam.php +++ b/generated/Auth/Model/CreateSecretCodeParam.php @@ -7,34 +7,34 @@ class CreateSecretCodeParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * アクセストークン(access token) + * access token * * @var string|null */ protected $accessToken; /** - * アクセストークン(access token) + * access token * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * アクセストークン(access token) + * access token * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; diff --git a/generated/Auth/Model/CreateTenantInvitationParam.php b/generated/Auth/Model/CreateTenantInvitationParam.php index b29f188..5965d12 100644 --- a/generated/Auth/Model/CreateTenantInvitationParam.php +++ b/generated/Auth/Model/CreateTenantInvitationParam.php @@ -7,19 +7,19 @@ class CreateTenantInvitationParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 招待するユーザーのメールアドレス(email address of the user to be invited) + * Email address of the user to be invited * * @var string|null */ protected $email; /** - * 招待を作成するユーザーのアクセストークン(access token of the user who creates an invitation) + * Access token of the user who creates an invitation * * @var string|null */ @@ -27,48 +27,48 @@ public function isInitialized($property) : bool /** * * - * @var CreateTenantInvitationParamEnvsItem[]|null + * @var list|null */ protected $envs; /** - * 招待するユーザーのメールアドレス(email address of the user to be invited) + * Email address of the user to be invited * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * 招待するユーザーのメールアドレス(email address of the user to be invited) + * Email address of the user to be invited * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * 招待を作成するユーザーのアクセストークン(access token of the user who creates an invitation) + * Access token of the user who creates an invitation * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * 招待を作成するユーザーのアクセストークン(access token of the user who creates an invitation) + * Access token of the user who creates an invitation * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; @@ -77,20 +77,20 @@ public function setAccessToken(?string $accessToken) : self /** * * - * @return CreateTenantInvitationParamEnvsItem[]|null + * @return list|null */ - public function getEnvs() : ?array + public function getEnvs(): ?array { return $this->envs; } /** * * - * @param CreateTenantInvitationParamEnvsItem[]|null $envs + * @param list|null $envs * * @return self */ - public function setEnvs(?array $envs) : self + public function setEnvs(?array $envs): self { $this->initialized['envs'] = true; $this->envs = $envs; diff --git a/generated/Auth/Model/CreateTenantInvitationParamEnvsItem.php b/generated/Auth/Model/CreateTenantInvitationParamEnvsItem.php index 6a1ab69..8b42d46 100644 --- a/generated/Auth/Model/CreateTenantInvitationParamEnvsItem.php +++ b/generated/Auth/Model/CreateTenantInvitationParamEnvsItem.php @@ -7,8 +7,8 @@ class CreateTenantInvitationParamEnvsItem extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,9 +19,9 @@ public function isInitialized($property) : bool */ protected $id; /** - * 役割名(role name) + * Role name * - * @var string[]|null + * @var list|null */ protected $roleNames; /** @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return int|null */ - public function getId() : ?int + public function getId(): ?int { return $this->id; } @@ -40,29 +40,29 @@ public function getId() : ?int * * @return self */ - public function setId(?int $id) : self + public function setId(?int $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * 役割名(role name) + * Role name * - * @return string[]|null + * @return list|null */ - public function getRoleNames() : ?array + public function getRoleNames(): ?array { return $this->roleNames; } /** - * 役割名(role name) + * Role name * - * @param string[]|null $roleNames + * @param list|null $roleNames * * @return self */ - public function setRoleNames(?array $roleNames) : self + public function setRoleNames(?array $roleNames): self { $this->initialized['roleNames'] = true; $this->roleNames = $roleNames; diff --git a/generated/Auth/Model/CreateTenantUserParam.php b/generated/Auth/Model/CreateTenantUserParam.php index 54c2943..e67b28c 100644 --- a/generated/Auth/Model/CreateTenantUserParam.php +++ b/generated/Auth/Model/CreateTenantUserParam.php @@ -7,71 +7,62 @@ class CreateTenantUserParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(e-mail) + * E-mail * * @var string|null */ protected $email; /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @var array|null - */ + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @var array|null + */ protected $attributes; /** - * メールアドレス(e-mail) + * E-mail * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(e-mail) + * E-mail * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @return array|null - */ - public function getAttributes() : ?iterable + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @return array|null + */ + public function getAttributes(): ?iterable { return $this->attributes; } /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @param array|null $attributes - * - * @return self - */ - public function setAttributes(?iterable $attributes) : self + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @param array|null $attributes + * + * @return self + */ + public function setAttributes(?iterable $attributes): self { $this->initialized['attributes'] = true; $this->attributes = $attributes; diff --git a/generated/Auth/Model/CreateTenantUserRolesParam.php b/generated/Auth/Model/CreateTenantUserRolesParam.php index 65e9126..8db94d6 100644 --- a/generated/Auth/Model/CreateTenantUserRolesParam.php +++ b/generated/Auth/Model/CreateTenantUserRolesParam.php @@ -7,34 +7,34 @@ class CreateTenantUserRolesParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 役割(ロール)情報(Role Info) + * Role Info * - * @var string[]|null + * @var list|null */ protected $roleNames; /** - * 役割(ロール)情報(Role Info) + * Role Info * - * @return string[]|null + * @return list|null */ - public function getRoleNames() : ?array + public function getRoleNames(): ?array { return $this->roleNames; } /** - * 役割(ロール)情報(Role Info) + * Role Info * - * @param string[]|null $roleNames + * @param list|null $roleNames * * @return self */ - public function setRoleNames(?array $roleNames) : self + public function setRoleNames(?array $roleNames): self { $this->initialized['roleNames'] = true; $this->roleNames = $roleNames; diff --git a/generated/Auth/Model/Credentials.php b/generated/Auth/Model/Credentials.php index 8c8f23c..e1e14ef 100644 --- a/generated/Auth/Model/Credentials.php +++ b/generated/Auth/Model/Credentials.php @@ -7,90 +7,90 @@ class Credentials extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * IDトークン(ID token) + * ID token * * @var string|null */ protected $idToken; /** - * アクセストークン(access token) + * Access token * * @var string|null */ protected $accessToken; /** - * リフレッシュトークン(refresh token) + * Refresh token * * @var string|null */ protected $refreshToken; /** - * IDトークン(ID token) + * ID token * * @return string|null */ - public function getIdToken() : ?string + public function getIdToken(): ?string { return $this->idToken; } /** - * IDトークン(ID token) + * ID token * * @param string|null $idToken * * @return self */ - public function setIdToken(?string $idToken) : self + public function setIdToken(?string $idToken): self { $this->initialized['idToken'] = true; $this->idToken = $idToken; return $this; } /** - * アクセストークン(access token) + * Access token * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * アクセストークン(access token) + * Access token * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; return $this; } /** - * リフレッシュトークン(refresh token) + * Refresh token * * @return string|null */ - public function getRefreshToken() : ?string + public function getRefreshToken(): ?string { return $this->refreshToken; } /** - * リフレッシュトークン(refresh token) + * Refresh token * * @param string|null $refreshToken * * @return self */ - public function setRefreshToken(?string $refreshToken) : self + public function setRefreshToken(?string $refreshToken): self { $this->initialized['refreshToken'] = true; $this->refreshToken = $refreshToken; diff --git a/generated/Auth/Model/CustomizePageProps.php b/generated/Auth/Model/CustomizePageProps.php index bb9298f..c2d908e 100644 --- a/generated/Auth/Model/CustomizePageProps.php +++ b/generated/Auth/Model/CustomizePageProps.php @@ -7,16 +7,13 @@ class CustomizePageProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 画面のHTMLを編集できます - ※ 未提供の機能のため、変更・保存はできません - - Edit page HTML + * Edit page HTML ※ This function is not yet provided, so it cannot be changed or saved. * @@ -24,36 +21,30 @@ public function isInitialized($property) : bool */ protected $htmlContents; /** - * 利用規約の同意チェックボックスを表示するが設定されているか(display the terms of use agreement check box) + * display the terms of use agreement check box * * @var bool|null */ protected $isTermsOfService; /** - * プライバシーポリシーチェックボックスを表示するが設定されているか(show the privacy policy checkbox) + * show the privacy policy checkbox * * @var bool|null */ protected $isPrivacyPolicy; /** - * 画面のHTMLを編集できます - ※ 未提供の機能のため、変更・保存はできません - - Edit page HTML + * Edit page HTML ※ This function is not yet provided, so it cannot be changed or saved. * * @return string|null */ - public function getHtmlContents() : ?string + public function getHtmlContents(): ?string { return $this->htmlContents; } /** - * 画面のHTMLを編集できます - ※ 未提供の機能のため、変更・保存はできません - - Edit page HTML + * Edit page HTML ※ This function is not yet provided, so it cannot be changed or saved. * @@ -61,51 +52,51 @@ public function getHtmlContents() : ?string * * @return self */ - public function setHtmlContents(?string $htmlContents) : self + public function setHtmlContents(?string $htmlContents): self { $this->initialized['htmlContents'] = true; $this->htmlContents = $htmlContents; return $this; } /** - * 利用規約の同意チェックボックスを表示するが設定されているか(display the terms of use agreement check box) + * display the terms of use agreement check box * * @return bool|null */ - public function getIsTermsOfService() : ?bool + public function getIsTermsOfService(): ?bool { return $this->isTermsOfService; } /** - * 利用規約の同意チェックボックスを表示するが設定されているか(display the terms of use agreement check box) + * display the terms of use agreement check box * * @param bool|null $isTermsOfService * * @return self */ - public function setIsTermsOfService(?bool $isTermsOfService) : self + public function setIsTermsOfService(?bool $isTermsOfService): self { $this->initialized['isTermsOfService'] = true; $this->isTermsOfService = $isTermsOfService; return $this; } /** - * プライバシーポリシーチェックボックスを表示するが設定されているか(show the privacy policy checkbox) + * show the privacy policy checkbox * * @return bool|null */ - public function getIsPrivacyPolicy() : ?bool + public function getIsPrivacyPolicy(): ?bool { return $this->isPrivacyPolicy; } /** - * プライバシーポリシーチェックボックスを表示するが設定されているか(show the privacy policy checkbox) + * show the privacy policy checkbox * * @param bool|null $isPrivacyPolicy * * @return self */ - public function setIsPrivacyPolicy(?bool $isPrivacyPolicy) : self + public function setIsPrivacyPolicy(?bool $isPrivacyPolicy): self { $this->initialized['isPrivacyPolicy'] = true; $this->isPrivacyPolicy = $isPrivacyPolicy; diff --git a/generated/Auth/Model/CustomizePageSettings.php b/generated/Auth/Model/CustomizePageSettings.php index 20b4408..53d6a70 100644 --- a/generated/Auth/Model/CustomizePageSettings.php +++ b/generated/Auth/Model/CustomizePageSettings.php @@ -7,174 +7,174 @@ class CustomizePageSettings extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * サービスアイコン(service icon) + * service icon * * @var string|null */ protected $icon; /** - * ファビコン(favicon) + * favicon * * @var string|null */ protected $favicon; /** - * サービス名(service name) + * service name * * @var string|null */ protected $title; /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @var string|null */ protected $termsOfServiceUrl; /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @var string|null */ protected $privacyPolicyUrl; /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @var string|null */ protected $googleTagManagerContainerId; /** - * サービスアイコン(service icon) + * service icon * * @return string|null */ - public function getIcon() : ?string + public function getIcon(): ?string { return $this->icon; } /** - * サービスアイコン(service icon) + * service icon * * @param string|null $icon * * @return self */ - public function setIcon(?string $icon) : self + public function setIcon(?string $icon): self { $this->initialized['icon'] = true; $this->icon = $icon; return $this; } /** - * ファビコン(favicon) + * favicon * * @return string|null */ - public function getFavicon() : ?string + public function getFavicon(): ?string { return $this->favicon; } /** - * ファビコン(favicon) + * favicon * * @param string|null $favicon * * @return self */ - public function setFavicon(?string $favicon) : self + public function setFavicon(?string $favicon): self { $this->initialized['favicon'] = true; $this->favicon = $favicon; return $this; } /** - * サービス名(service name) + * service name * * @return string|null */ - public function getTitle() : ?string + public function getTitle(): ?string { return $this->title; } /** - * サービス名(service name) + * service name * * @param string|null $title * * @return self */ - public function setTitle(?string $title) : self + public function setTitle(?string $title): self { $this->initialized['title'] = true; $this->title = $title; return $this; } /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @return string|null */ - public function getTermsOfServiceUrl() : ?string + public function getTermsOfServiceUrl(): ?string { return $this->termsOfServiceUrl; } /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @param string|null $termsOfServiceUrl * * @return self */ - public function setTermsOfServiceUrl(?string $termsOfServiceUrl) : self + public function setTermsOfServiceUrl(?string $termsOfServiceUrl): self { $this->initialized['termsOfServiceUrl'] = true; $this->termsOfServiceUrl = $termsOfServiceUrl; return $this; } /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @return string|null */ - public function getPrivacyPolicyUrl() : ?string + public function getPrivacyPolicyUrl(): ?string { return $this->privacyPolicyUrl; } /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @param string|null $privacyPolicyUrl * * @return self */ - public function setPrivacyPolicyUrl(?string $privacyPolicyUrl) : self + public function setPrivacyPolicyUrl(?string $privacyPolicyUrl): self { $this->initialized['privacyPolicyUrl'] = true; $this->privacyPolicyUrl = $privacyPolicyUrl; return $this; } /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @return string|null */ - public function getGoogleTagManagerContainerId() : ?string + public function getGoogleTagManagerContainerId(): ?string { return $this->googleTagManagerContainerId; } /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @param string|null $googleTagManagerContainerId * * @return self */ - public function setGoogleTagManagerContainerId(?string $googleTagManagerContainerId) : self + public function setGoogleTagManagerContainerId(?string $googleTagManagerContainerId): self { $this->initialized['googleTagManagerContainerId'] = true; $this->googleTagManagerContainerId = $googleTagManagerContainerId; diff --git a/generated/Auth/Model/CustomizePageSettingsProps.php b/generated/Auth/Model/CustomizePageSettingsProps.php index 2611b43..ba52afb 100644 --- a/generated/Auth/Model/CustomizePageSettingsProps.php +++ b/generated/Auth/Model/CustomizePageSettingsProps.php @@ -7,118 +7,118 @@ class CustomizePageSettingsProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * サービス名(service name) + * service name * * @var string|null */ protected $title; /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @var string|null */ protected $termsOfServiceUrl; /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @var string|null */ protected $privacyPolicyUrl; /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @var string|null */ protected $googleTagManagerContainerId; /** - * サービス名(service name) + * service name * * @return string|null */ - public function getTitle() : ?string + public function getTitle(): ?string { return $this->title; } /** - * サービス名(service name) + * service name * * @param string|null $title * * @return self */ - public function setTitle(?string $title) : self + public function setTitle(?string $title): self { $this->initialized['title'] = true; $this->title = $title; return $this; } /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @return string|null */ - public function getTermsOfServiceUrl() : ?string + public function getTermsOfServiceUrl(): ?string { return $this->termsOfServiceUrl; } /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @param string|null $termsOfServiceUrl * * @return self */ - public function setTermsOfServiceUrl(?string $termsOfServiceUrl) : self + public function setTermsOfServiceUrl(?string $termsOfServiceUrl): self { $this->initialized['termsOfServiceUrl'] = true; $this->termsOfServiceUrl = $termsOfServiceUrl; return $this; } /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @return string|null */ - public function getPrivacyPolicyUrl() : ?string + public function getPrivacyPolicyUrl(): ?string { return $this->privacyPolicyUrl; } /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @param string|null $privacyPolicyUrl * * @return self */ - public function setPrivacyPolicyUrl(?string $privacyPolicyUrl) : self + public function setPrivacyPolicyUrl(?string $privacyPolicyUrl): self { $this->initialized['privacyPolicyUrl'] = true; $this->privacyPolicyUrl = $privacyPolicyUrl; return $this; } /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @return string|null */ - public function getGoogleTagManagerContainerId() : ?string + public function getGoogleTagManagerContainerId(): ?string { return $this->googleTagManagerContainerId; } /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @param string|null $googleTagManagerContainerId * * @return self */ - public function setGoogleTagManagerContainerId(?string $googleTagManagerContainerId) : self + public function setGoogleTagManagerContainerId(?string $googleTagManagerContainerId): self { $this->initialized['googleTagManagerContainerId'] = true; $this->googleTagManagerContainerId = $googleTagManagerContainerId; diff --git a/generated/Auth/Model/CustomizePages.php b/generated/Auth/Model/CustomizePages.php index f697bf8..9bcadeb 100644 --- a/generated/Auth/Model/CustomizePages.php +++ b/generated/Auth/Model/CustomizePages.php @@ -7,8 +7,8 @@ class CustomizePages extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return CustomizePageProps|null */ - public function getSignUpPage() : ?CustomizePageProps + public function getSignUpPage(): ?CustomizePageProps { return $this->signUpPage; } @@ -46,7 +46,7 @@ public function getSignUpPage() : ?CustomizePageProps * * @return self */ - public function setSignUpPage(?CustomizePageProps $signUpPage) : self + public function setSignUpPage(?CustomizePageProps $signUpPage): self { $this->initialized['signUpPage'] = true; $this->signUpPage = $signUpPage; @@ -57,7 +57,7 @@ public function setSignUpPage(?CustomizePageProps $signUpPage) : self * * @return CustomizePageProps|null */ - public function getSignInPage() : ?CustomizePageProps + public function getSignInPage(): ?CustomizePageProps { return $this->signInPage; } @@ -68,7 +68,7 @@ public function getSignInPage() : ?CustomizePageProps * * @return self */ - public function setSignInPage(?CustomizePageProps $signInPage) : self + public function setSignInPage(?CustomizePageProps $signInPage): self { $this->initialized['signInPage'] = true; $this->signInPage = $signInPage; @@ -79,7 +79,7 @@ public function setSignInPage(?CustomizePageProps $signInPage) : self * * @return CustomizePageProps|null */ - public function getPasswordResetPage() : ?CustomizePageProps + public function getPasswordResetPage(): ?CustomizePageProps { return $this->passwordResetPage; } @@ -90,7 +90,7 @@ public function getPasswordResetPage() : ?CustomizePageProps * * @return self */ - public function setPasswordResetPage(?CustomizePageProps $passwordResetPage) : self + public function setPasswordResetPage(?CustomizePageProps $passwordResetPage): self { $this->initialized['passwordResetPage'] = true; $this->passwordResetPage = $passwordResetPage; diff --git a/generated/Auth/Model/DeviceConfiguration.php b/generated/Auth/Model/DeviceConfiguration.php index 5121a21..a78c61b 100644 --- a/generated/Auth/Model/DeviceConfiguration.php +++ b/generated/Auth/Model/DeviceConfiguration.php @@ -7,43 +7,43 @@ class DeviceConfiguration extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * always: 常に記憶する(always remember) - userOptIn: ユーザーオプトイン(user opt-in) - no: (don't save) + * always: always remember + userOptIn: user opt-in + no: don't save * * @var string|null */ protected $deviceRemembering; /** - * always: 常に記憶する(always remember) - userOptIn: ユーザーオプトイン(user opt-in) - no: (don't save) + * always: always remember + userOptIn: user opt-in + no: don't save * * @return string|null */ - public function getDeviceRemembering() : ?string + public function getDeviceRemembering(): ?string { return $this->deviceRemembering; } /** - * always: 常に記憶する(always remember) - userOptIn: ユーザーオプトイン(user opt-in) - no: (don't save) + * always: always remember + userOptIn: user opt-in + no: don't save * * @param string|null $deviceRemembering * * @return self */ - public function setDeviceRemembering(?string $deviceRemembering) : self + public function setDeviceRemembering(?string $deviceRemembering): self { $this->initialized['deviceRemembering'] = true; $this->deviceRemembering = $deviceRemembering; diff --git a/generated/Auth/Model/DnsRecord.php b/generated/Auth/Model/DnsRecord.php index 27f081a..ca44018 100644 --- a/generated/Auth/Model/DnsRecord.php +++ b/generated/Auth/Model/DnsRecord.php @@ -7,90 +7,90 @@ class DnsRecord extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * CNAMEリソースレコード(CNAME Resource Record) + * CNAME Resource Record * * @var string|null */ protected $type; /** - * レコード名(Record Name) + * Record Name * * @var string|null */ protected $name; /** - * 値(Value) + * Value * * @var string|null */ protected $value; /** - * CNAMEリソースレコード(CNAME Resource Record) + * CNAME Resource Record * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * CNAMEリソースレコード(CNAME Resource Record) + * CNAME Resource Record * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * レコード名(Record Name) + * Record Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * レコード名(Record Name) + * Record Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 値(Value) + * Value * * @return string|null */ - public function getValue() : ?string + public function getValue(): ?string { return $this->value; } /** - * 値(Value) + * Value * * @param string|null $value * * @return self */ - public function setValue(?string $value) : self + public function setValue(?string $value): self { $this->initialized['value'] = true; $this->value = $value; diff --git a/generated/Auth/Model/Env.php b/generated/Auth/Model/Env.php index 15d1c9b..54bf866 100644 --- a/generated/Auth/Model/Env.php +++ b/generated/Auth/Model/Env.php @@ -7,8 +7,8 @@ class Env extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,13 +19,13 @@ public function isInitialized($property) : bool */ protected $id; /** - * 環境名(env name) + * env name * * @var string|null */ protected $name; /** - * 環境表示名(env display name) + * env display name * * @var string|null */ @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return int|null */ - public function getId() : ?int + public function getId(): ?int { return $this->id; } @@ -46,51 +46,51 @@ public function getId() : ?int * * @return self */ - public function setId(?int $id) : self + public function setId(?int $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * 環境名(env name) + * env name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 環境名(env name) + * env name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 環境表示名(env display name) + * env display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 環境表示名(env display name) + * env display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; diff --git a/generated/Auth/Model/Envs.php b/generated/Auth/Model/Envs.php index 3f39bc5..cc97d9d 100644 --- a/generated/Auth/Model/Envs.php +++ b/generated/Auth/Model/Envs.php @@ -7,34 +7,34 @@ class Envs extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var Env[]|null + * @var list|null */ protected $envs; /** * * - * @return Env[]|null + * @return list|null */ - public function getEnvs() : ?array + public function getEnvs(): ?array { return $this->envs; } /** * * - * @param Env[]|null $envs + * @param list|null $envs * * @return self */ - public function setEnvs(?array $envs) : self + public function setEnvs(?array $envs): self { $this->initialized['envs'] = true; $this->envs = $envs; diff --git a/generated/Auth/Model/Error.php b/generated/Auth/Model/Error.php index ab9d6a5..f129743 100644 --- a/generated/Auth/Model/Error.php +++ b/generated/Auth/Model/Error.php @@ -7,8 +7,8 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } @@ -46,7 +46,7 @@ public function getType() : ?string * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -57,7 +57,7 @@ public function setType(?string $type) : self * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } @@ -68,7 +68,7 @@ public function getMessage() : ?string * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; @@ -79,7 +79,7 @@ public function setMessage(?string $message) : self * * @return array|null */ - public function getData() : ?iterable + public function getData(): ?iterable { return $this->data; } @@ -90,7 +90,7 @@ public function getData() : ?iterable * * @return self */ - public function setData(?iterable $data) : self + public function setData(?iterable $data): self { $this->initialized['data'] = true; $this->data = $data; diff --git a/generated/Auth/Model/IdentityProviderConfiguration.php b/generated/Auth/Model/IdentityProviderConfiguration.php index c0dacda..cc58df4 100644 --- a/generated/Auth/Model/IdentityProviderConfiguration.php +++ b/generated/Auth/Model/IdentityProviderConfiguration.php @@ -7,118 +7,118 @@ class IdentityProviderConfiguration extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * ドメイン(domain) + * domain * * @var string|null */ protected $domain; /** - * リダイレクトURL(redirect URL) + * redirect URL * * @var string|null */ protected $redirectUrl; /** - * 識別子(entity ID) + * entity ID * * @var string|null */ protected $entityId; /** - * 応答URL(reply URL) + * reply URL * * @var string|null */ protected $replyUrl; /** - * ドメイン(domain) + * domain * * @return string|null */ - public function getDomain() : ?string + public function getDomain(): ?string { return $this->domain; } /** - * ドメイン(domain) + * domain * * @param string|null $domain * * @return self */ - public function setDomain(?string $domain) : self + public function setDomain(?string $domain): self { $this->initialized['domain'] = true; $this->domain = $domain; return $this; } /** - * リダイレクトURL(redirect URL) + * redirect URL * * @return string|null */ - public function getRedirectUrl() : ?string + public function getRedirectUrl(): ?string { return $this->redirectUrl; } /** - * リダイレクトURL(redirect URL) + * redirect URL * * @param string|null $redirectUrl * * @return self */ - public function setRedirectUrl(?string $redirectUrl) : self + public function setRedirectUrl(?string $redirectUrl): self { $this->initialized['redirectUrl'] = true; $this->redirectUrl = $redirectUrl; return $this; } /** - * 識別子(entity ID) + * entity ID * * @return string|null */ - public function getEntityId() : ?string + public function getEntityId(): ?string { return $this->entityId; } /** - * 識別子(entity ID) + * entity ID * * @param string|null $entityId * * @return self */ - public function setEntityId(?string $entityId) : self + public function setEntityId(?string $entityId): self { $this->initialized['entityId'] = true; $this->entityId = $entityId; return $this; } /** - * 応答URL(reply URL) + * reply URL * * @return string|null */ - public function getReplyUrl() : ?string + public function getReplyUrl(): ?string { return $this->replyUrl; } /** - * 応答URL(reply URL) + * reply URL * * @param string|null $replyUrl * * @return self */ - public function setReplyUrl(?string $replyUrl) : self + public function setReplyUrl(?string $replyUrl): self { $this->initialized['replyUrl'] = true; $this->replyUrl = $replyUrl; diff --git a/generated/Auth/Model/IdentityProviderProps.php b/generated/Auth/Model/IdentityProviderProps.php index 21687c7..406427d 100644 --- a/generated/Auth/Model/IdentityProviderProps.php +++ b/generated/Auth/Model/IdentityProviderProps.php @@ -7,8 +7,8 @@ class IdentityProviderProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -41,7 +41,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getApplicationId() : ?string + public function getApplicationId(): ?string { return $this->applicationId; } @@ -52,7 +52,7 @@ public function getApplicationId() : ?string * * @return self */ - public function setApplicationId(?string $applicationId) : self + public function setApplicationId(?string $applicationId): self { $this->initialized['applicationId'] = true; $this->applicationId = $applicationId; @@ -63,7 +63,7 @@ public function setApplicationId(?string $applicationId) : self * * @return string|null */ - public function getApplicationSecret() : ?string + public function getApplicationSecret(): ?string { return $this->applicationSecret; } @@ -74,7 +74,7 @@ public function getApplicationSecret() : ?string * * @return self */ - public function setApplicationSecret(?string $applicationSecret) : self + public function setApplicationSecret(?string $applicationSecret): self { $this->initialized['applicationSecret'] = true; $this->applicationSecret = $applicationSecret; @@ -85,7 +85,7 @@ public function setApplicationSecret(?string $applicationSecret) : self * * @return string|null */ - public function getApprovalScope() : ?string + public function getApprovalScope(): ?string { return $this->approvalScope; } @@ -96,7 +96,7 @@ public function getApprovalScope() : ?string * * @return self */ - public function setApprovalScope(?string $approvalScope) : self + public function setApprovalScope(?string $approvalScope): self { $this->initialized['approvalScope'] = true; $this->approvalScope = $approvalScope; @@ -107,7 +107,7 @@ public function setApprovalScope(?string $approvalScope) : self * * @return bool|null */ - public function getIsButtonHidden() : ?bool + public function getIsButtonHidden(): ?bool { return $this->isButtonHidden; } @@ -118,7 +118,7 @@ public function getIsButtonHidden() : ?bool * * @return self */ - public function setIsButtonHidden(?bool $isButtonHidden) : self + public function setIsButtonHidden(?bool $isButtonHidden): self { $this->initialized['isButtonHidden'] = true; $this->isButtonHidden = $isButtonHidden; diff --git a/generated/Auth/Model/IdentityProviderSaml.php b/generated/Auth/Model/IdentityProviderSaml.php index 3eef90c..fc3c83d 100644 --- a/generated/Auth/Model/IdentityProviderSaml.php +++ b/generated/Auth/Model/IdentityProviderSaml.php @@ -7,8 +7,8 @@ class IdentityProviderSaml extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getMetadataUrl() : ?string + public function getMetadataUrl(): ?string { return $this->metadataUrl; } @@ -40,7 +40,7 @@ public function getMetadataUrl() : ?string * * @return self */ - public function setMetadataUrl(?string $metadataUrl) : self + public function setMetadataUrl(?string $metadataUrl): self { $this->initialized['metadataUrl'] = true; $this->metadataUrl = $metadataUrl; @@ -51,7 +51,7 @@ public function setMetadataUrl(?string $metadataUrl) : self * * @return string|null */ - public function getEmailAttribute() : ?string + public function getEmailAttribute(): ?string { return $this->emailAttribute; } @@ -62,7 +62,7 @@ public function getEmailAttribute() : ?string * * @return self */ - public function setEmailAttribute(?string $emailAttribute) : self + public function setEmailAttribute(?string $emailAttribute): self { $this->initialized['emailAttribute'] = true; $this->emailAttribute = $emailAttribute; diff --git a/generated/Auth/Model/IdentityProviders.php b/generated/Auth/Model/IdentityProviders.php index 0c502b4..5fa7fcf 100644 --- a/generated/Auth/Model/IdentityProviders.php +++ b/generated/Auth/Model/IdentityProviders.php @@ -7,8 +7,8 @@ class IdentityProviders extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return IdentityProviderProps|null */ - public function getGoogle() : ?IdentityProviderProps + public function getGoogle(): ?IdentityProviderProps { return $this->google; } @@ -34,7 +34,7 @@ public function getGoogle() : ?IdentityProviderProps * * @return self */ - public function setGoogle(?IdentityProviderProps $google) : self + public function setGoogle(?IdentityProviderProps $google): self { $this->initialized['google'] = true; $this->google = $google; diff --git a/generated/Auth/Model/Invitation.php b/generated/Auth/Model/Invitation.php index 1652fed..e9f9011 100644 --- a/generated/Auth/Model/Invitation.php +++ b/generated/Auth/Model/Invitation.php @@ -7,8 +7,8 @@ class Invitation extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,13 +19,13 @@ public function isInitialized($property) : bool */ protected $id; /** - * 招待されたユーザーのメールアドレス(email address of the invited user) + * Email address of the invited user * * @var string|null */ protected $email; /** - * 招待URL(invitation URL) + * Invitation URL * * @var string|null */ @@ -33,11 +33,11 @@ public function isInitialized($property) : bool /** * * - * @var object[]|null + * @var list|null */ protected $envs; /** - * 招待の有効期限(expiration date of the invitation) + * Expiration date of the invitation * * @var int|null */ @@ -53,7 +53,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -64,51 +64,51 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * 招待されたユーザーのメールアドレス(email address of the invited user) + * Email address of the invited user * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * 招待されたユーザーのメールアドレス(email address of the invited user) + * Email address of the invited user * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * 招待URL(invitation URL) + * Invitation URL * * @return string|null */ - public function getInvitationUrl() : ?string + public function getInvitationUrl(): ?string { return $this->invitationUrl; } /** - * 招待URL(invitation URL) + * Invitation URL * * @param string|null $invitationUrl * * @return self */ - public function setInvitationUrl(?string $invitationUrl) : self + public function setInvitationUrl(?string $invitationUrl): self { $this->initialized['invitationUrl'] = true; $this->invitationUrl = $invitationUrl; @@ -117,42 +117,42 @@ public function setInvitationUrl(?string $invitationUrl) : self /** * * - * @return object[]|null + * @return list|null */ - public function getEnvs() : ?array + public function getEnvs(): ?array { return $this->envs; } /** * * - * @param object[]|null $envs + * @param list|null $envs * * @return self */ - public function setEnvs(?array $envs) : self + public function setEnvs(?array $envs): self { $this->initialized['envs'] = true; $this->envs = $envs; return $this; } /** - * 招待の有効期限(expiration date of the invitation) + * Expiration date of the invitation * * @return int|null */ - public function getExpiredAt() : ?int + public function getExpiredAt(): ?int { return $this->expiredAt; } /** - * 招待の有効期限(expiration date of the invitation) + * Expiration date of the invitation * * @param int|null $expiredAt * * @return self */ - public function setExpiredAt(?int $expiredAt) : self + public function setExpiredAt(?int $expiredAt): self { $this->initialized['expiredAt'] = true; $this->expiredAt = $expiredAt; @@ -163,7 +163,7 @@ public function setExpiredAt(?int $expiredAt) : self * * @return string|null */ - public function getStatus() : ?string + public function getStatus(): ?string { return $this->status; } @@ -174,7 +174,7 @@ public function getStatus() : ?string * * @return self */ - public function setStatus(?string $status) : self + public function setStatus(?string $status): self { $this->initialized['status'] = true; $this->status = $status; diff --git a/generated/Auth/Model/InvitationValidity.php b/generated/Auth/Model/InvitationValidity.php index 8e0c425..83bc2c5 100644 --- a/generated/Auth/Model/InvitationValidity.php +++ b/generated/Auth/Model/InvitationValidity.php @@ -7,34 +7,34 @@ class InvitationValidity extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 招待が有効か否か(Whether the validation is valid or not) + * Whether the validation is valid or not * * @var bool|null */ protected $isValid; /** - * 招待が有効か否か(Whether the validation is valid or not) + * Whether the validation is valid or not * * @return bool|null */ - public function getIsValid() : ?bool + public function getIsValid(): ?bool { return $this->isValid; } /** - * 招待が有効か否か(Whether the validation is valid or not) + * Whether the validation is valid or not * * @param bool|null $isValid * * @return self */ - public function setIsValid(?bool $isValid) : self + public function setIsValid(?bool $isValid): self { $this->initialized['isValid'] = true; $this->isValid = $isValid; diff --git a/generated/Auth/Model/Invitations.php b/generated/Auth/Model/Invitations.php index ee1d8b2..7325987 100644 --- a/generated/Auth/Model/Invitations.php +++ b/generated/Auth/Model/Invitations.php @@ -7,34 +7,34 @@ class Invitations extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 招待一覧(invitation list) + * Invitation list * - * @var Invitation[]|null + * @var list|null */ protected $invitations; /** - * 招待一覧(invitation list) + * Invitation list * - * @return Invitation[]|null + * @return list|null */ - public function getInvitations() : ?array + public function getInvitations(): ?array { return $this->invitations; } /** - * 招待一覧(invitation list) + * Invitation list * - * @param Invitation[]|null $invitations + * @param list|null $invitations * * @return self */ - public function setInvitations(?array $invitations) : self + public function setInvitations(?array $invitations): self { $this->initialized['invitations'] = true; $this->invitations = $invitations; diff --git a/generated/Auth/Model/LinkAwsMarketplaceParam.php b/generated/Auth/Model/LinkAwsMarketplaceParam.php index a3aac2c..62a2339 100644 --- a/generated/Auth/Model/LinkAwsMarketplaceParam.php +++ b/generated/Auth/Model/LinkAwsMarketplaceParam.php @@ -7,19 +7,19 @@ class LinkAwsMarketplaceParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * テナントID(tenant ID) + * Tenant ID * * @var string|null */ protected $tenantId; /** - * アクセストークン(access token) + * Access token * * @var string|null */ @@ -31,44 +31,44 @@ public function isInitialized($property) : bool */ protected $registrationToken; /** - * テナントID(tenant ID) + * Tenant ID * * @return string|null */ - public function getTenantId() : ?string + public function getTenantId(): ?string { return $this->tenantId; } /** - * テナントID(tenant ID) + * Tenant ID * * @param string|null $tenantId * * @return self */ - public function setTenantId(?string $tenantId) : self + public function setTenantId(?string $tenantId): self { $this->initialized['tenantId'] = true; $this->tenantId = $tenantId; return $this; } /** - * アクセストークン(access token) + * Access token * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * アクセストークン(access token) + * Access token * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; @@ -79,7 +79,7 @@ public function setAccessToken(?string $accessToken) : self * * @return string|null */ - public function getRegistrationToken() : ?string + public function getRegistrationToken(): ?string { return $this->registrationToken; } @@ -90,7 +90,7 @@ public function getRegistrationToken() : ?string * * @return self */ - public function setRegistrationToken(?string $registrationToken) : self + public function setRegistrationToken(?string $registrationToken): self { $this->initialized['registrationToken'] = true; $this->registrationToken = $registrationToken; diff --git a/generated/Auth/Model/MessageTemplate.php b/generated/Auth/Model/MessageTemplate.php index e31d5e6..d4c4c06 100644 --- a/generated/Auth/Model/MessageTemplate.php +++ b/generated/Auth/Model/MessageTemplate.php @@ -7,62 +7,62 @@ class MessageTemplate extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * タイトル(title) + * Title * * @var string|null */ protected $subject; /** - * メッセージ(message) + * Message * * @var string|null */ protected $message; /** - * タイトル(title) + * Title * * @return string|null */ - public function getSubject() : ?string + public function getSubject(): ?string { return $this->subject; } /** - * タイトル(title) + * Title * * @param string|null $subject * * @return self */ - public function setSubject(?string $subject) : self + public function setSubject(?string $subject): self { $this->initialized['subject'] = true; $this->subject = $subject; return $this; } /** - * メッセージ(message) + * Message * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } /** - * メッセージ(message) + * Message * * @param string|null $message * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/Auth/Model/MfaConfiguration.php b/generated/Auth/Model/MfaConfiguration.php index 81ec87a..0d7a34d 100644 --- a/generated/Auth/Model/MfaConfiguration.php +++ b/generated/Auth/Model/MfaConfiguration.php @@ -7,43 +7,43 @@ class MfaConfiguration extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * on: 全ユーザーがログイン時に適用(apply when all users log in) - optional: MFA要素が有効になっている個別ユーザーに適用(apply to individual users with MFA factor enabled) - ※ パラメータは現在optionalで固定となります。(The parameter is currently optional and fixed.) + * on: apply when all users log in + optional: apply to individual users with MFA factor enabled + ※ The parameter is currently optional and fixed. * * @var string|null */ protected $mfaConfiguration; /** - * on: 全ユーザーがログイン時に適用(apply when all users log in) - optional: MFA要素が有効になっている個別ユーザーに適用(apply to individual users with MFA factor enabled) - ※ パラメータは現在optionalで固定となります。(The parameter is currently optional and fixed.) + * on: apply when all users log in + optional: apply to individual users with MFA factor enabled + ※ The parameter is currently optional and fixed. * * @return string|null */ - public function getMfaConfiguration() : ?string + public function getMfaConfiguration(): ?string { return $this->mfaConfiguration; } /** - * on: 全ユーザーがログイン時に適用(apply when all users log in) - optional: MFA要素が有効になっている個別ユーザーに適用(apply to individual users with MFA factor enabled) - ※ パラメータは現在optionalで固定となります。(The parameter is currently optional and fixed.) + * on: apply when all users log in + optional: apply to individual users with MFA factor enabled + ※ The parameter is currently optional and fixed. * * @param string|null $mfaConfiguration * * @return self */ - public function setMfaConfiguration(?string $mfaConfiguration) : self + public function setMfaConfiguration(?string $mfaConfiguration): self { $this->initialized['mfaConfiguration'] = true; $this->mfaConfiguration = $mfaConfiguration; diff --git a/generated/Auth/Model/MfaPreference.php b/generated/Auth/Model/MfaPreference.php index 018f9aa..ca5b18d 100644 --- a/generated/Auth/Model/MfaPreference.php +++ b/generated/Auth/Model/MfaPreference.php @@ -7,62 +7,62 @@ class MfaPreference extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * MFAを有効にするか否か(enable MFA) + * enable MFA * * @var bool|null */ protected $enabled; /** - * MFAの方法(enabledがtrueの場合は必須)(MFA method (required if enabled is true)) + * MFA method (required if enabled is true) * * @var string|null */ protected $method; /** - * MFAを有効にするか否か(enable MFA) + * enable MFA * * @return bool|null */ - public function getEnabled() : ?bool + public function getEnabled(): ?bool { return $this->enabled; } /** - * MFAを有効にするか否か(enable MFA) + * enable MFA * * @param bool|null $enabled * * @return self */ - public function setEnabled(?bool $enabled) : self + public function setEnabled(?bool $enabled): self { $this->initialized['enabled'] = true; $this->enabled = $enabled; return $this; } /** - * MFAの方法(enabledがtrueの場合は必須)(MFA method (required if enabled is true)) + * MFA method (required if enabled is true) * * @return string|null */ - public function getMethod() : ?string + public function getMethod(): ?string { return $this->method; } /** - * MFAの方法(enabledがtrueの場合は必須)(MFA method (required if enabled is true)) + * MFA method (required if enabled is true) * * @param string|null $method * * @return self */ - public function setMethod(?string $method) : self + public function setMethod(?string $method): self { $this->initialized['method'] = true; $this->method = $method; diff --git a/generated/Auth/Model/NotificationMessages.php b/generated/Auth/Model/NotificationMessages.php index eac66b0..fe5ceb4 100644 --- a/generated/Auth/Model/NotificationMessages.php +++ b/generated/Auth/Model/NotificationMessages.php @@ -7,8 +7,8 @@ class NotificationMessages extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -71,7 +71,7 @@ public function isInitialized($property) : bool * * @return MessageTemplate|null */ - public function getSignUp() : ?MessageTemplate + public function getSignUp(): ?MessageTemplate { return $this->signUp; } @@ -82,7 +82,7 @@ public function getSignUp() : ?MessageTemplate * * @return self */ - public function setSignUp(?MessageTemplate $signUp) : self + public function setSignUp(?MessageTemplate $signUp): self { $this->initialized['signUp'] = true; $this->signUp = $signUp; @@ -93,7 +93,7 @@ public function setSignUp(?MessageTemplate $signUp) : self * * @return MessageTemplate|null */ - public function getCreateUser() : ?MessageTemplate + public function getCreateUser(): ?MessageTemplate { return $this->createUser; } @@ -104,7 +104,7 @@ public function getCreateUser() : ?MessageTemplate * * @return self */ - public function setCreateUser(?MessageTemplate $createUser) : self + public function setCreateUser(?MessageTemplate $createUser): self { $this->initialized['createUser'] = true; $this->createUser = $createUser; @@ -115,7 +115,7 @@ public function setCreateUser(?MessageTemplate $createUser) : self * * @return MessageTemplate|null */ - public function getResendCode() : ?MessageTemplate + public function getResendCode(): ?MessageTemplate { return $this->resendCode; } @@ -126,7 +126,7 @@ public function getResendCode() : ?MessageTemplate * * @return self */ - public function setResendCode(?MessageTemplate $resendCode) : self + public function setResendCode(?MessageTemplate $resendCode): self { $this->initialized['resendCode'] = true; $this->resendCode = $resendCode; @@ -137,7 +137,7 @@ public function setResendCode(?MessageTemplate $resendCode) : self * * @return MessageTemplate|null */ - public function getForgotPassword() : ?MessageTemplate + public function getForgotPassword(): ?MessageTemplate { return $this->forgotPassword; } @@ -148,7 +148,7 @@ public function getForgotPassword() : ?MessageTemplate * * @return self */ - public function setForgotPassword(?MessageTemplate $forgotPassword) : self + public function setForgotPassword(?MessageTemplate $forgotPassword): self { $this->initialized['forgotPassword'] = true; $this->forgotPassword = $forgotPassword; @@ -159,7 +159,7 @@ public function setForgotPassword(?MessageTemplate $forgotPassword) : self * * @return MessageTemplate|null */ - public function getUpdateUserAttribute() : ?MessageTemplate + public function getUpdateUserAttribute(): ?MessageTemplate { return $this->updateUserAttribute; } @@ -170,7 +170,7 @@ public function getUpdateUserAttribute() : ?MessageTemplate * * @return self */ - public function setUpdateUserAttribute(?MessageTemplate $updateUserAttribute) : self + public function setUpdateUserAttribute(?MessageTemplate $updateUserAttribute): self { $this->initialized['updateUserAttribute'] = true; $this->updateUserAttribute = $updateUserAttribute; @@ -181,7 +181,7 @@ public function setUpdateUserAttribute(?MessageTemplate $updateUserAttribute) : * * @return MessageTemplate|null */ - public function getVerifyUserAttribute() : ?MessageTemplate + public function getVerifyUserAttribute(): ?MessageTemplate { return $this->verifyUserAttribute; } @@ -192,7 +192,7 @@ public function getVerifyUserAttribute() : ?MessageTemplate * * @return self */ - public function setVerifyUserAttribute(?MessageTemplate $verifyUserAttribute) : self + public function setVerifyUserAttribute(?MessageTemplate $verifyUserAttribute): self { $this->initialized['verifyUserAttribute'] = true; $this->verifyUserAttribute = $verifyUserAttribute; @@ -203,7 +203,7 @@ public function setVerifyUserAttribute(?MessageTemplate $verifyUserAttribute) : * * @return MessageTemplate|null */ - public function getAuthenticationMfa() : ?MessageTemplate + public function getAuthenticationMfa(): ?MessageTemplate { return $this->authenticationMfa; } @@ -214,7 +214,7 @@ public function getAuthenticationMfa() : ?MessageTemplate * * @return self */ - public function setAuthenticationMfa(?MessageTemplate $authenticationMfa) : self + public function setAuthenticationMfa(?MessageTemplate $authenticationMfa): self { $this->initialized['authenticationMfa'] = true; $this->authenticationMfa = $authenticationMfa; @@ -225,7 +225,7 @@ public function setAuthenticationMfa(?MessageTemplate $authenticationMfa) : self * * @return MessageTemplate|null */ - public function getInviteTenantUser() : ?MessageTemplate + public function getInviteTenantUser(): ?MessageTemplate { return $this->inviteTenantUser; } @@ -236,7 +236,7 @@ public function getInviteTenantUser() : ?MessageTemplate * * @return self */ - public function setInviteTenantUser(?MessageTemplate $inviteTenantUser) : self + public function setInviteTenantUser(?MessageTemplate $inviteTenantUser): self { $this->initialized['inviteTenantUser'] = true; $this->inviteTenantUser = $inviteTenantUser; @@ -247,7 +247,7 @@ public function setInviteTenantUser(?MessageTemplate $inviteTenantUser) : self * * @return MessageTemplate|null */ - public function getVerifyExternalUser() : ?MessageTemplate + public function getVerifyExternalUser(): ?MessageTemplate { return $this->verifyExternalUser; } @@ -258,7 +258,7 @@ public function getVerifyExternalUser() : ?MessageTemplate * * @return self */ - public function setVerifyExternalUser(?MessageTemplate $verifyExternalUser) : self + public function setVerifyExternalUser(?MessageTemplate $verifyExternalUser): self { $this->initialized['verifyExternalUser'] = true; $this->verifyExternalUser = $verifyExternalUser; diff --git a/generated/Auth/Model/PasswordPolicy.php b/generated/Auth/Model/PasswordPolicy.php index e1a451d..4a0ecc0 100644 --- a/generated/Auth/Model/PasswordPolicy.php +++ b/generated/Auth/Model/PasswordPolicy.php @@ -7,174 +7,174 @@ class PasswordPolicy extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 最小文字数(minimum number of characters) + * Minimum number of characters * * @var int|null */ protected $minimumLength; /** - * 一文字以上の小文字を含むが設定されているか(contains one or more lowercase characters) + * Contains one or more lowercase characters * * @var bool|null */ protected $isRequireLowercase; /** - * 一文字以上の数字を含むが設定されているか(contains one or more numeric characters) + * Contains one or more numeric characters * * @var bool|null */ protected $isRequireNumbers; /** - * 一文字以上の特殊文字を含むが設定されているか(contains one or more special characters) + * Contains one or more special characters * * @var bool|null */ protected $isRequireSymbols; /** - * 一文字以上の大文字を含むが設定されているか(contains one or more uppercase letters) + * Contains one or more uppercase letters * * @var bool|null */ protected $isRequireUppercase; /** - * 仮パスワードの有効期限(temporary password expiration date) + * Temporary password expiration date * * @var int|null */ protected $temporaryPasswordValidityDays; /** - * 最小文字数(minimum number of characters) + * Minimum number of characters * * @return int|null */ - public function getMinimumLength() : ?int + public function getMinimumLength(): ?int { return $this->minimumLength; } /** - * 最小文字数(minimum number of characters) + * Minimum number of characters * * @param int|null $minimumLength * * @return self */ - public function setMinimumLength(?int $minimumLength) : self + public function setMinimumLength(?int $minimumLength): self { $this->initialized['minimumLength'] = true; $this->minimumLength = $minimumLength; return $this; } /** - * 一文字以上の小文字を含むが設定されているか(contains one or more lowercase characters) + * Contains one or more lowercase characters * * @return bool|null */ - public function getIsRequireLowercase() : ?bool + public function getIsRequireLowercase(): ?bool { return $this->isRequireLowercase; } /** - * 一文字以上の小文字を含むが設定されているか(contains one or more lowercase characters) + * Contains one or more lowercase characters * * @param bool|null $isRequireLowercase * * @return self */ - public function setIsRequireLowercase(?bool $isRequireLowercase) : self + public function setIsRequireLowercase(?bool $isRequireLowercase): self { $this->initialized['isRequireLowercase'] = true; $this->isRequireLowercase = $isRequireLowercase; return $this; } /** - * 一文字以上の数字を含むが設定されているか(contains one or more numeric characters) + * Contains one or more numeric characters * * @return bool|null */ - public function getIsRequireNumbers() : ?bool + public function getIsRequireNumbers(): ?bool { return $this->isRequireNumbers; } /** - * 一文字以上の数字を含むが設定されているか(contains one or more numeric characters) + * Contains one or more numeric characters * * @param bool|null $isRequireNumbers * * @return self */ - public function setIsRequireNumbers(?bool $isRequireNumbers) : self + public function setIsRequireNumbers(?bool $isRequireNumbers): self { $this->initialized['isRequireNumbers'] = true; $this->isRequireNumbers = $isRequireNumbers; return $this; } /** - * 一文字以上の特殊文字を含むが設定されているか(contains one or more special characters) + * Contains one or more special characters * * @return bool|null */ - public function getIsRequireSymbols() : ?bool + public function getIsRequireSymbols(): ?bool { return $this->isRequireSymbols; } /** - * 一文字以上の特殊文字を含むが設定されているか(contains one or more special characters) + * Contains one or more special characters * * @param bool|null $isRequireSymbols * * @return self */ - public function setIsRequireSymbols(?bool $isRequireSymbols) : self + public function setIsRequireSymbols(?bool $isRequireSymbols): self { $this->initialized['isRequireSymbols'] = true; $this->isRequireSymbols = $isRequireSymbols; return $this; } /** - * 一文字以上の大文字を含むが設定されているか(contains one or more uppercase letters) + * Contains one or more uppercase letters * * @return bool|null */ - public function getIsRequireUppercase() : ?bool + public function getIsRequireUppercase(): ?bool { return $this->isRequireUppercase; } /** - * 一文字以上の大文字を含むが設定されているか(contains one or more uppercase letters) + * Contains one or more uppercase letters * * @param bool|null $isRequireUppercase * * @return self */ - public function setIsRequireUppercase(?bool $isRequireUppercase) : self + public function setIsRequireUppercase(?bool $isRequireUppercase): self { $this->initialized['isRequireUppercase'] = true; $this->isRequireUppercase = $isRequireUppercase; return $this; } /** - * 仮パスワードの有効期限(temporary password expiration date) + * Temporary password expiration date * * @return int|null */ - public function getTemporaryPasswordValidityDays() : ?int + public function getTemporaryPasswordValidityDays(): ?int { return $this->temporaryPasswordValidityDays; } /** - * 仮パスワードの有効期限(temporary password expiration date) + * Temporary password expiration date * * @param int|null $temporaryPasswordValidityDays * * @return self */ - public function setTemporaryPasswordValidityDays(?int $temporaryPasswordValidityDays) : self + public function setTemporaryPasswordValidityDays(?int $temporaryPasswordValidityDays): self { $this->initialized['temporaryPasswordValidityDays'] = true; $this->temporaryPasswordValidityDays = $temporaryPasswordValidityDays; diff --git a/generated/Auth/Model/PlanHistories.php b/generated/Auth/Model/PlanHistories.php index cff758b..91a2c49 100644 --- a/generated/Auth/Model/PlanHistories.php +++ b/generated/Auth/Model/PlanHistories.php @@ -7,34 +7,34 @@ class PlanHistories extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 料金プラン履歴 + * Plan History * - * @var PlanHistory[]|null + * @var list|null */ protected $planHistories; /** - * 料金プラン履歴 + * Plan History * - * @return PlanHistory[]|null + * @return list|null */ - public function getPlanHistories() : ?array + public function getPlanHistories(): ?array { return $this->planHistories; } /** - * 料金プラン履歴 + * Plan History * - * @param PlanHistory[]|null $planHistories + * @param list|null $planHistories * * @return self */ - public function setPlanHistories(?array $planHistories) : self + public function setPlanHistories(?array $planHistories): self { $this->initialized['planHistories'] = true; $this->planHistories = $planHistories; diff --git a/generated/Auth/Model/PlanHistory.php b/generated/Auth/Model/PlanHistory.php index ca5f480..130213a 100644 --- a/generated/Auth/Model/PlanHistory.php +++ b/generated/Auth/Model/PlanHistory.php @@ -7,8 +7,8 @@ class PlanHistory extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,7 +19,7 @@ public function isInitialized($property) : bool */ protected $planId; /** - * 登録日時 + * Registration date * * @var int|null */ @@ -31,10 +31,7 @@ public function isInitialized($property) : bool */ protected $taxRateId; /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -42,11 +39,7 @@ public function isInitialized($property) : bool */ protected $prorationBehavior; /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -59,7 +52,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getPlanId() : ?string + public function getPlanId(): ?string { return $this->planId; } @@ -70,29 +63,29 @@ public function getPlanId() : ?string * * @return self */ - public function setPlanId(?string $planId) : self + public function setPlanId(?string $planId): self { $this->initialized['planId'] = true; $this->planId = $planId; return $this; } /** - * 登録日時 + * Registration date * * @return int|null */ - public function getPlanAppliedAt() : ?int + public function getPlanAppliedAt(): ?int { return $this->planAppliedAt; } /** - * 登録日時 + * Registration date * * @param int|null $planAppliedAt * * @return self */ - public function setPlanAppliedAt(?int $planAppliedAt) : self + public function setPlanAppliedAt(?int $planAppliedAt): self { $this->initialized['planAppliedAt'] = true; $this->planAppliedAt = $planAppliedAt; @@ -103,7 +96,7 @@ public function setPlanAppliedAt(?int $planAppliedAt) : self * * @return string|null */ - public function getTaxRateId() : ?string + public function getTaxRateId(): ?string { return $this->taxRateId; } @@ -114,31 +107,25 @@ public function getTaxRateId() : ?string * * @return self */ - public function setTaxRateId(?string $taxRateId) : self + public function setTaxRateId(?string $taxRateId): self { $this->initialized['taxRateId'] = true; $this->taxRateId = $taxRateId; return $this; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * * @return string|null */ - public function getProrationBehavior() : ?string + public function getProrationBehavior(): ?string { return $this->prorationBehavior; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -146,34 +133,26 @@ public function getProrationBehavior() : ?string * * @return self */ - public function setProrationBehavior(?string $prorationBehavior) : self + public function setProrationBehavior(?string $prorationBehavior): self { $this->initialized['prorationBehavior'] = true; $this->prorationBehavior = $prorationBehavior; return $this; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. * * @return bool|null */ - public function getDeleteUsage() : ?bool + public function getDeleteUsage(): ?bool { return $this->deleteUsage; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -182,7 +161,7 @@ public function getDeleteUsage() : ?bool * * @return self */ - public function setDeleteUsage(?bool $deleteUsage) : self + public function setDeleteUsage(?bool $deleteUsage): self { $this->initialized['deleteUsage'] = true; $this->deleteUsage = $deleteUsage; diff --git a/generated/Auth/Model/PlanReservation.php b/generated/Auth/Model/PlanReservation.php index 190258b..cd01ced 100644 --- a/generated/Auth/Model/PlanReservation.php +++ b/generated/Auth/Model/PlanReservation.php @@ -7,8 +7,8 @@ class PlanReservation extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,12 +19,10 @@ public function isInitialized($property) : bool */ protected $nextPlanId; /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @var int|null - */ + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @var int|null + */ protected $usingNextPlanFrom; /** * @@ -33,10 +31,7 @@ public function isInitialized($property) : bool */ protected $nextPlanTaxRateId; /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -44,11 +39,7 @@ public function isInitialized($property) : bool */ protected $prorationBehavior; /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -61,7 +52,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getNextPlanId() : ?string + public function getNextPlanId(): ?string { return $this->nextPlanId; } @@ -72,33 +63,29 @@ public function getNextPlanId() : ?string * * @return self */ - public function setNextPlanId(?string $nextPlanId) : self + public function setNextPlanId(?string $nextPlanId): self { $this->initialized['nextPlanId'] = true; $this->nextPlanId = $nextPlanId; return $this; } /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @return int|null - */ - public function getUsingNextPlanFrom() : ?int + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @return int|null + */ + public function getUsingNextPlanFrom(): ?int { return $this->usingNextPlanFrom; } /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @param int|null $usingNextPlanFrom - * - * @return self - */ - public function setUsingNextPlanFrom(?int $usingNextPlanFrom) : self + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @param int|null $usingNextPlanFrom + * + * @return self + */ + public function setUsingNextPlanFrom(?int $usingNextPlanFrom): self { $this->initialized['usingNextPlanFrom'] = true; $this->usingNextPlanFrom = $usingNextPlanFrom; @@ -109,7 +96,7 @@ public function setUsingNextPlanFrom(?int $usingNextPlanFrom) : self * * @return string|null */ - public function getNextPlanTaxRateId() : ?string + public function getNextPlanTaxRateId(): ?string { return $this->nextPlanTaxRateId; } @@ -120,31 +107,25 @@ public function getNextPlanTaxRateId() : ?string * * @return self */ - public function setNextPlanTaxRateId(?string $nextPlanTaxRateId) : self + public function setNextPlanTaxRateId(?string $nextPlanTaxRateId): self { $this->initialized['nextPlanTaxRateId'] = true; $this->nextPlanTaxRateId = $nextPlanTaxRateId; return $this; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * * @return string|null */ - public function getProrationBehavior() : ?string + public function getProrationBehavior(): ?string { return $this->prorationBehavior; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -152,34 +133,26 @@ public function getProrationBehavior() : ?string * * @return self */ - public function setProrationBehavior(?string $prorationBehavior) : self + public function setProrationBehavior(?string $prorationBehavior): self { $this->initialized['prorationBehavior'] = true; $this->prorationBehavior = $prorationBehavior; return $this; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. * * @return bool|null */ - public function getDeleteUsage() : ?bool + public function getDeleteUsage(): ?bool { return $this->deleteUsage; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -188,7 +161,7 @@ public function getDeleteUsage() : ?bool * * @return self */ - public function setDeleteUsage(?bool $deleteUsage) : self + public function setDeleteUsage(?bool $deleteUsage): self { $this->initialized['deleteUsage'] = true; $this->deleteUsage = $deleteUsage; diff --git a/generated/Auth/Model/RecaptchaProps.php b/generated/Auth/Model/RecaptchaProps.php index 0dbbd64..3e0aeb7 100644 --- a/generated/Auth/Model/RecaptchaProps.php +++ b/generated/Auth/Model/RecaptchaProps.php @@ -7,62 +7,62 @@ class RecaptchaProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * サイトキー(site key) + * site key * * @var string|null */ protected $siteKey; /** - * シークレットキー(secret key) + * secret key * * @var string|null */ protected $secretKey; /** - * サイトキー(site key) + * site key * * @return string|null */ - public function getSiteKey() : ?string + public function getSiteKey(): ?string { return $this->siteKey; } /** - * サイトキー(site key) + * site key * * @param string|null $siteKey * * @return self */ - public function setSiteKey(?string $siteKey) : self + public function setSiteKey(?string $siteKey): self { $this->initialized['siteKey'] = true; $this->siteKey = $siteKey; return $this; } /** - * シークレットキー(secret key) + * secret key * * @return string|null */ - public function getSecretKey() : ?string + public function getSecretKey(): ?string { return $this->secretKey; } /** - * シークレットキー(secret key) + * secret key * * @param string|null $secretKey * * @return self */ - public function setSecretKey(?string $secretKey) : self + public function setSecretKey(?string $secretKey): self { $this->initialized['secretKey'] = true; $this->secretKey = $secretKey; diff --git a/generated/Auth/Model/RequestEmailUpdateParam.php b/generated/Auth/Model/RequestEmailUpdateParam.php index 7a978df..97f82e8 100644 --- a/generated/Auth/Model/RequestEmailUpdateParam.php +++ b/generated/Auth/Model/RequestEmailUpdateParam.php @@ -7,13 +7,13 @@ class RequestEmailUpdateParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(Email Address) + * Email Address * * @var string|null */ @@ -25,22 +25,22 @@ public function isInitialized($property) : bool */ protected $accessToken; /** - * メールアドレス(Email Address) + * Email Address * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(Email Address) + * Email Address * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; @@ -51,7 +51,7 @@ public function setEmail(?string $email) : self * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } @@ -62,7 +62,7 @@ public function getAccessToken() : ?string * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; diff --git a/generated/Auth/Model/RequestExternalUserLinkParam.php b/generated/Auth/Model/RequestExternalUserLinkParam.php index 6c7cf51..03ae2f6 100644 --- a/generated/Auth/Model/RequestExternalUserLinkParam.php +++ b/generated/Auth/Model/RequestExternalUserLinkParam.php @@ -7,8 +7,8 @@ class RequestExternalUserLinkParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } @@ -34,7 +34,7 @@ public function getAccessToken() : ?string * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; diff --git a/generated/Auth/Model/ResendSignUpConfirmationEmailParam.php b/generated/Auth/Model/ResendSignUpConfirmationEmailParam.php index 8675efd..91a85aa 100644 --- a/generated/Auth/Model/ResendSignUpConfirmationEmailParam.php +++ b/generated/Auth/Model/ResendSignUpConfirmationEmailParam.php @@ -7,34 +7,34 @@ class ResendSignUpConfirmationEmailParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(Email Address) + * Email Address * * @var string|null */ protected $email; /** - * メールアドレス(Email Address) + * Email Address * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(Email Address) + * Email Address * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; diff --git a/generated/Auth/Model/Role.php b/generated/Auth/Model/Role.php index 0abf982..b207581 100644 --- a/generated/Auth/Model/Role.php +++ b/generated/Auth/Model/Role.php @@ -7,62 +7,62 @@ class Role extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 役割(ロール)名(role name) + * role name * * @var string|null */ protected $roleName; /** - * 役割(ロール)表示名(role display name) + * role display name * * @var string|null */ protected $displayName; /** - * 役割(ロール)名(role name) + * role name * * @return string|null */ - public function getRoleName() : ?string + public function getRoleName(): ?string { return $this->roleName; } /** - * 役割(ロール)名(role name) + * role name * * @param string|null $roleName * * @return self */ - public function setRoleName(?string $roleName) : self + public function setRoleName(?string $roleName): self { $this->initialized['roleName'] = true; $this->roleName = $roleName; return $this; } /** - * 役割(ロール)表示名(role display name) + * role display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 役割(ロール)表示名(role display name) + * role display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; diff --git a/generated/Auth/Model/Roles.php b/generated/Auth/Model/Roles.php index 005cd83..d911f4a 100644 --- a/generated/Auth/Model/Roles.php +++ b/generated/Auth/Model/Roles.php @@ -7,34 +7,34 @@ class Roles extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var Role[]|null + * @var list|null */ protected $roles; /** * * - * @return Role[]|null + * @return list|null */ - public function getRoles() : ?array + public function getRoles(): ?array { return $this->roles; } /** * * - * @param Role[]|null $roles + * @param list|null $roles * * @return self */ - public function setRoles(?array $roles) : self + public function setRoles(?array $roles): self { $this->initialized['roles'] = true; $this->roles = $roles; diff --git a/generated/Auth/Model/SaasId.php b/generated/Auth/Model/SaasId.php index 3356fab..0f479c7 100644 --- a/generated/Auth/Model/SaasId.php +++ b/generated/Auth/Model/SaasId.php @@ -7,8 +7,8 @@ class SaasId extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -25,7 +25,7 @@ public function isInitialized($property) : bool */ protected $envId; /** - * saas id + * SaaS ID * * @var string|null */ @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getTenantId() : ?string + public function getTenantId(): ?string { return $this->tenantId; } @@ -46,7 +46,7 @@ public function getTenantId() : ?string * * @return self */ - public function setTenantId(?string $tenantId) : self + public function setTenantId(?string $tenantId): self { $this->initialized['tenantId'] = true; $this->tenantId = $tenantId; @@ -57,7 +57,7 @@ public function setTenantId(?string $tenantId) : self * * @return int|null */ - public function getEnvId() : ?int + public function getEnvId(): ?int { return $this->envId; } @@ -68,29 +68,29 @@ public function getEnvId() : ?int * * @return self */ - public function setEnvId(?int $envId) : self + public function setEnvId(?int $envId): self { $this->initialized['envId'] = true; $this->envId = $envId; return $this; } /** - * saas id + * SaaS ID * * @return string|null */ - public function getSaasId() : ?string + public function getSaasId(): ?string { return $this->saasId; } /** - * saas id + * SaaS ID * * @param string|null $saasId * * @return self */ - public function setSaasId(?string $saasId) : self + public function setSaasId(?string $saasId): self { $this->initialized['saasId'] = true; $this->saasId = $saasId; diff --git a/generated/Auth/Model/SaasUser.php b/generated/Auth/Model/SaasUser.php index 561b1c3..ee44667 100644 --- a/generated/Auth/Model/SaasUser.php +++ b/generated/Auth/Model/SaasUser.php @@ -7,8 +7,8 @@ class SaasUser extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,7 +19,7 @@ public function isInitialized($property) : bool */ protected $id; /** - * メールアドレス(E-mail) + * E-mail * * @var string|null */ @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -40,29 +40,29 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * メールアドレス(E-mail) + * E-mail * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(E-mail) + * E-mail * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; diff --git a/generated/Auth/Model/SaasUsers.php b/generated/Auth/Model/SaasUsers.php index 10f1de2..be9a400 100644 --- a/generated/Auth/Model/SaasUsers.php +++ b/generated/Auth/Model/SaasUsers.php @@ -7,34 +7,34 @@ class SaasUsers extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var SaasUser[]|null + * @var list|null */ protected $users; /** * * - * @return SaasUser[]|null + * @return list|null */ - public function getUsers() : ?array + public function getUsers(): ?array { return $this->users; } /** * * - * @param SaasUser[]|null $users + * @param list|null $users * * @return self */ - public function setUsers(?array $users) : self + public function setUsers(?array $users): self { $this->initialized['users'] = true; $this->users = $users; diff --git a/generated/Auth/Model/SelfRegist.php b/generated/Auth/Model/SelfRegist.php index 1ece9e8..3cdd4f5 100644 --- a/generated/Auth/Model/SelfRegist.php +++ b/generated/Auth/Model/SelfRegist.php @@ -7,8 +7,8 @@ class SelfRegist extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return bool|null */ - public function getEnable() : ?bool + public function getEnable(): ?bool { return $this->enable; } @@ -34,7 +34,7 @@ public function getEnable() : ?bool * * @return self */ - public function setEnable(?bool $enable) : self + public function setEnable(?bool $enable): self { $this->initialized['enable'] = true; $this->enable = $enable; diff --git a/generated/Auth/Model/SignInSettings.php b/generated/Auth/Model/SignInSettings.php index 09a4bcd..2f25398 100644 --- a/generated/Auth/Model/SignInSettings.php +++ b/generated/Auth/Model/SignInSettings.php @@ -7,226 +7,226 @@ class SignInSettings extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * パスワードポリシー(password policy) + * Password Policy * * @var PasswordPolicy|null */ protected $passwordPolicy; /** - * 信頼済みデバイスの記憶の設定(settings for remembering trusted devices) + * Settings for remembering trusted devices * * @var DeviceConfiguration|null */ protected $deviceConfiguration; /** - * MFAデバイス認証設定(MFA device authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * MFA device authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @var MfaConfiguration|null */ protected $mfaConfiguration; /** - * reCAPTCHA認証設定(reCAPTCHA authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * reCAPTCHA authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @var RecaptchaProps|null */ protected $recaptchaProps; /** - * アカウント認証設定(account authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * Account authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @var AccountVerification|null */ protected $accountVerification; /** - * セルフサインアップを許可設定(self sign-up permission) + * self sign-up permission * * @var SelfRegist|null */ protected $selfRegist; /** - * 外部IDプロバイダを利用したサインインの設定をするために必要な情報です。(This information is required to set up sign-in using an external identity provider.) - 変更はできません。(It cannot be changed.) + * This information is required to set up sign-in using an external identity provider. + It cannot be changed. * * @var IdentityProviderConfiguration|null */ protected $identityProviderConfiguration; /** - * パスワードポリシー(password policy) + * Password Policy * * @return PasswordPolicy|null */ - public function getPasswordPolicy() : ?PasswordPolicy + public function getPasswordPolicy(): ?PasswordPolicy { return $this->passwordPolicy; } /** - * パスワードポリシー(password policy) + * Password Policy * * @param PasswordPolicy|null $passwordPolicy * * @return self */ - public function setPasswordPolicy(?PasswordPolicy $passwordPolicy) : self + public function setPasswordPolicy(?PasswordPolicy $passwordPolicy): self { $this->initialized['passwordPolicy'] = true; $this->passwordPolicy = $passwordPolicy; return $this; } /** - * 信頼済みデバイスの記憶の設定(settings for remembering trusted devices) + * Settings for remembering trusted devices * * @return DeviceConfiguration|null */ - public function getDeviceConfiguration() : ?DeviceConfiguration + public function getDeviceConfiguration(): ?DeviceConfiguration { return $this->deviceConfiguration; } /** - * 信頼済みデバイスの記憶の設定(settings for remembering trusted devices) + * Settings for remembering trusted devices * * @param DeviceConfiguration|null $deviceConfiguration * * @return self */ - public function setDeviceConfiguration(?DeviceConfiguration $deviceConfiguration) : self + public function setDeviceConfiguration(?DeviceConfiguration $deviceConfiguration): self { $this->initialized['deviceConfiguration'] = true; $this->deviceConfiguration = $deviceConfiguration; return $this; } /** - * MFAデバイス認証設定(MFA device authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * MFA device authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @return MfaConfiguration|null */ - public function getMfaConfiguration() : ?MfaConfiguration + public function getMfaConfiguration(): ?MfaConfiguration { return $this->mfaConfiguration; } /** - * MFAデバイス認証設定(MFA device authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * MFA device authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @param MfaConfiguration|null $mfaConfiguration * * @return self */ - public function setMfaConfiguration(?MfaConfiguration $mfaConfiguration) : self + public function setMfaConfiguration(?MfaConfiguration $mfaConfiguration): self { $this->initialized['mfaConfiguration'] = true; $this->mfaConfiguration = $mfaConfiguration; return $this; } /** - * reCAPTCHA認証設定(reCAPTCHA authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * reCAPTCHA authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @return RecaptchaProps|null */ - public function getRecaptchaProps() : ?RecaptchaProps + public function getRecaptchaProps(): ?RecaptchaProps { return $this->recaptchaProps; } /** - * reCAPTCHA認証設定(reCAPTCHA authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * reCAPTCHA authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @param RecaptchaProps|null $recaptchaProps * * @return self */ - public function setRecaptchaProps(?RecaptchaProps $recaptchaProps) : self + public function setRecaptchaProps(?RecaptchaProps $recaptchaProps): self { $this->initialized['recaptchaProps'] = true; $this->recaptchaProps = $recaptchaProps; return $this; } /** - * アカウント認証設定(account authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * Account authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @return AccountVerification|null */ - public function getAccountVerification() : ?AccountVerification + public function getAccountVerification(): ?AccountVerification { return $this->accountVerification; } /** - * アカウント認証設定(account authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * Account authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @param AccountVerification|null $accountVerification * * @return self */ - public function setAccountVerification(?AccountVerification $accountVerification) : self + public function setAccountVerification(?AccountVerification $accountVerification): self { $this->initialized['accountVerification'] = true; $this->accountVerification = $accountVerification; return $this; } /** - * セルフサインアップを許可設定(self sign-up permission) + * self sign-up permission * * @return SelfRegist|null */ - public function getSelfRegist() : ?SelfRegist + public function getSelfRegist(): ?SelfRegist { return $this->selfRegist; } /** - * セルフサインアップを許可設定(self sign-up permission) + * self sign-up permission * * @param SelfRegist|null $selfRegist * * @return self */ - public function setSelfRegist(?SelfRegist $selfRegist) : self + public function setSelfRegist(?SelfRegist $selfRegist): self { $this->initialized['selfRegist'] = true; $this->selfRegist = $selfRegist; return $this; } /** - * 外部IDプロバイダを利用したサインインの設定をするために必要な情報です。(This information is required to set up sign-in using an external identity provider.) - 変更はできません。(It cannot be changed.) + * This information is required to set up sign-in using an external identity provider. + It cannot be changed. * * @return IdentityProviderConfiguration|null */ - public function getIdentityProviderConfiguration() : ?IdentityProviderConfiguration + public function getIdentityProviderConfiguration(): ?IdentityProviderConfiguration { return $this->identityProviderConfiguration; } /** - * 外部IDプロバイダを利用したサインインの設定をするために必要な情報です。(This information is required to set up sign-in using an external identity provider.) - 変更はできません。(It cannot be changed.) + * This information is required to set up sign-in using an external identity provider. + It cannot be changed. * * @param IdentityProviderConfiguration|null $identityProviderConfiguration * * @return self */ - public function setIdentityProviderConfiguration(?IdentityProviderConfiguration $identityProviderConfiguration) : self + public function setIdentityProviderConfiguration(?IdentityProviderConfiguration $identityProviderConfiguration): self { $this->initialized['identityProviderConfiguration'] = true; $this->identityProviderConfiguration = $identityProviderConfiguration; diff --git a/generated/Auth/Model/SignUpParam.php b/generated/Auth/Model/SignUpParam.php index 3f3a679..231bd03 100644 --- a/generated/Auth/Model/SignUpParam.php +++ b/generated/Auth/Model/SignUpParam.php @@ -7,34 +7,34 @@ class SignUpParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(Email Address) + * Email Address * * @var string|null */ protected $email; /** - * メールアドレス(Email Address) + * Email Address * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(Email Address) + * Email Address * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; diff --git a/generated/Auth/Model/SignUpWithAwsMarketplaceParam.php b/generated/Auth/Model/SignUpWithAwsMarketplaceParam.php index 9363149..5d8db58 100644 --- a/generated/Auth/Model/SignUpWithAwsMarketplaceParam.php +++ b/generated/Auth/Model/SignUpWithAwsMarketplaceParam.php @@ -7,13 +7,13 @@ class SignUpWithAwsMarketplaceParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(Email Address) + * Email Address * * @var string|null */ @@ -25,22 +25,22 @@ public function isInitialized($property) : bool */ protected $registrationToken; /** - * メールアドレス(Email Address) + * Email Address * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(Email Address) + * Email Address * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; @@ -51,7 +51,7 @@ public function setEmail(?string $email) : self * * @return string|null */ - public function getRegistrationToken() : ?string + public function getRegistrationToken(): ?string { return $this->registrationToken; } @@ -62,7 +62,7 @@ public function getRegistrationToken() : ?string * * @return self */ - public function setRegistrationToken(?string $registrationToken) : self + public function setRegistrationToken(?string $registrationToken): self { $this->initialized['registrationToken'] = true; $this->registrationToken = $registrationToken; diff --git a/generated/Auth/Model/SingleTenantSettings.php b/generated/Auth/Model/SingleTenantSettings.php new file mode 100644 index 0000000..347224d --- /dev/null +++ b/generated/Auth/Model/SingleTenantSettings.php @@ -0,0 +1,155 @@ +initialized); + } + /** + * enable Single Tenant settings or not + * + * @var bool|null + */ + protected $enabled; + /** + * ARN of the role for SaaS Platform to AssumeRole + * + * @var string|null + */ + protected $roleArn; + /** + * S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored + * + * @var string|null + */ + protected $cloudformationTemplateUrl; + /** + * S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored + * + * @var string|null + */ + protected $ddlTemplateUrl; + /** + * External id used by SaaSus when AssumeRole to operate SaaS + * + * @var string|null + */ + protected $roleExternalId; + /** + * enable Single Tenant settings or not + * + * @return bool|null + */ + public function getEnabled(): ?bool + { + return $this->enabled; + } + /** + * enable Single Tenant settings or not + * + * @param bool|null $enabled + * + * @return self + */ + public function setEnabled(?bool $enabled): self + { + $this->initialized['enabled'] = true; + $this->enabled = $enabled; + return $this; + } + /** + * ARN of the role for SaaS Platform to AssumeRole + * + * @return string|null + */ + public function getRoleArn(): ?string + { + return $this->roleArn; + } + /** + * ARN of the role for SaaS Platform to AssumeRole + * + * @param string|null $roleArn + * + * @return self + */ + public function setRoleArn(?string $roleArn): self + { + $this->initialized['roleArn'] = true; + $this->roleArn = $roleArn; + return $this; + } + /** + * S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored + * + * @return string|null + */ + public function getCloudformationTemplateUrl(): ?string + { + return $this->cloudformationTemplateUrl; + } + /** + * S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored + * + * @param string|null $cloudformationTemplateUrl + * + * @return self + */ + public function setCloudformationTemplateUrl(?string $cloudformationTemplateUrl): self + { + $this->initialized['cloudformationTemplateUrl'] = true; + $this->cloudformationTemplateUrl = $cloudformationTemplateUrl; + return $this; + } + /** + * S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored + * + * @return string|null + */ + public function getDdlTemplateUrl(): ?string + { + return $this->ddlTemplateUrl; + } + /** + * S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored + * + * @param string|null $ddlTemplateUrl + * + * @return self + */ + public function setDdlTemplateUrl(?string $ddlTemplateUrl): self + { + $this->initialized['ddlTemplateUrl'] = true; + $this->ddlTemplateUrl = $ddlTemplateUrl; + return $this; + } + /** + * External id used by SaaSus when AssumeRole to operate SaaS + * + * @return string|null + */ + public function getRoleExternalId(): ?string + { + return $this->roleExternalId; + } + /** + * External id used by SaaSus when AssumeRole to operate SaaS + * + * @param string|null $roleExternalId + * + * @return self + */ + public function setRoleExternalId(?string $roleExternalId): self + { + $this->initialized['roleExternalId'] = true; + $this->roleExternalId = $roleExternalId; + return $this; + } +} \ No newline at end of file diff --git a/generated/Auth/Model/SoftwareTokenSecretCode.php b/generated/Auth/Model/SoftwareTokenSecretCode.php index ff80142..e38b693 100644 --- a/generated/Auth/Model/SoftwareTokenSecretCode.php +++ b/generated/Auth/Model/SoftwareTokenSecretCode.php @@ -7,34 +7,34 @@ class SoftwareTokenSecretCode extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * シークレットコード(secret code) + * secret code * * @var string|null */ protected $secretCode; /** - * シークレットコード(secret code) + * secret code * * @return string|null */ - public function getSecretCode() : ?string + public function getSecretCode(): ?string { return $this->secretCode; } /** - * シークレットコード(secret code) + * secret code * * @param string|null $secretCode * * @return self */ - public function setSecretCode(?string $secretCode) : self + public function setSecretCode(?string $secretCode): self { $this->initialized['secretCode'] = true; $this->secretCode = $secretCode; diff --git a/generated/Auth/Model/Tenant.php b/generated/Auth/Model/Tenant.php index b799883..f620220 100644 --- a/generated/Auth/Model/Tenant.php +++ b/generated/Auth/Model/Tenant.php @@ -7,8 +7,8 @@ class Tenant extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -31,19 +31,19 @@ public function isInitialized($property) : bool */ protected $billingInfo; /** - * テナント名(tenant name) + * tenant name * * @var string|null */ protected $name; /** - * 属性情報(attribute info) + * attribute info * * @var array|null */ protected $attributes; /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @var string|null */ @@ -55,12 +55,10 @@ public function isInitialized($property) : bool */ protected $nextPlanId; /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @var int|null - */ + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @var int|null + */ protected $usingNextPlanFrom; /** * @@ -69,10 +67,7 @@ public function isInitialized($property) : bool */ protected $nextPlanTaxRateId; /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -80,11 +75,7 @@ public function isInitialized($property) : bool */ protected $prorationBehavior; /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -93,9 +84,9 @@ public function isInitialized($property) : bool */ protected $deleteUsage; /** - * 料金プラン履歴 + * Plan History * - * @var PlanHistory[]|null + * @var list|null */ protected $planHistories; /** @@ -103,7 +94,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -114,7 +105,7 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; @@ -125,7 +116,7 @@ public function setId(?string $id) : self * * @return string|null */ - public function getPlanId() : ?string + public function getPlanId(): ?string { return $this->planId; } @@ -136,7 +127,7 @@ public function getPlanId() : ?string * * @return self */ - public function setPlanId(?string $planId) : self + public function setPlanId(?string $planId): self { $this->initialized['planId'] = true; $this->planId = $planId; @@ -147,7 +138,7 @@ public function setPlanId(?string $planId) : self * * @return BillingInfo|null */ - public function getBillingInfo() : ?BillingInfo + public function getBillingInfo(): ?BillingInfo { return $this->billingInfo; } @@ -158,73 +149,73 @@ public function getBillingInfo() : ?BillingInfo * * @return self */ - public function setBillingInfo(?BillingInfo $billingInfo) : self + public function setBillingInfo(?BillingInfo $billingInfo): self { $this->initialized['billingInfo'] = true; $this->billingInfo = $billingInfo; return $this; } /** - * テナント名(tenant name) + * tenant name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * テナント名(tenant name) + * tenant name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 属性情報(attribute info) + * attribute info * * @return array|null */ - public function getAttributes() : ?iterable + public function getAttributes(): ?iterable { return $this->attributes; } /** - * 属性情報(attribute info) + * attribute info * * @param array|null $attributes * * @return self */ - public function setAttributes(?iterable $attributes) : self + public function setAttributes(?iterable $attributes): self { $this->initialized['attributes'] = true; $this->attributes = $attributes; return $this; } /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @return string|null */ - public function getBackOfficeStaffEmail() : ?string + public function getBackOfficeStaffEmail(): ?string { return $this->backOfficeStaffEmail; } /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @param string|null $backOfficeStaffEmail * * @return self */ - public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self + public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail): self { $this->initialized['backOfficeStaffEmail'] = true; $this->backOfficeStaffEmail = $backOfficeStaffEmail; @@ -235,7 +226,7 @@ public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self * * @return string|null */ - public function getNextPlanId() : ?string + public function getNextPlanId(): ?string { return $this->nextPlanId; } @@ -246,33 +237,29 @@ public function getNextPlanId() : ?string * * @return self */ - public function setNextPlanId(?string $nextPlanId) : self + public function setNextPlanId(?string $nextPlanId): self { $this->initialized['nextPlanId'] = true; $this->nextPlanId = $nextPlanId; return $this; } /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @return int|null - */ - public function getUsingNextPlanFrom() : ?int + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @return int|null + */ + public function getUsingNextPlanFrom(): ?int { return $this->usingNextPlanFrom; } /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @param int|null $usingNextPlanFrom - * - * @return self - */ - public function setUsingNextPlanFrom(?int $usingNextPlanFrom) : self + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @param int|null $usingNextPlanFrom + * + * @return self + */ + public function setUsingNextPlanFrom(?int $usingNextPlanFrom): self { $this->initialized['usingNextPlanFrom'] = true; $this->usingNextPlanFrom = $usingNextPlanFrom; @@ -283,7 +270,7 @@ public function setUsingNextPlanFrom(?int $usingNextPlanFrom) : self * * @return string|null */ - public function getNextPlanTaxRateId() : ?string + public function getNextPlanTaxRateId(): ?string { return $this->nextPlanTaxRateId; } @@ -294,31 +281,25 @@ public function getNextPlanTaxRateId() : ?string * * @return self */ - public function setNextPlanTaxRateId(?string $nextPlanTaxRateId) : self + public function setNextPlanTaxRateId(?string $nextPlanTaxRateId): self { $this->initialized['nextPlanTaxRateId'] = true; $this->nextPlanTaxRateId = $nextPlanTaxRateId; return $this; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * * @return string|null */ - public function getProrationBehavior() : ?string + public function getProrationBehavior(): ?string { return $this->prorationBehavior; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -326,34 +307,26 @@ public function getProrationBehavior() : ?string * * @return self */ - public function setProrationBehavior(?string $prorationBehavior) : self + public function setProrationBehavior(?string $prorationBehavior): self { $this->initialized['prorationBehavior'] = true; $this->prorationBehavior = $prorationBehavior; return $this; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. * * @return bool|null */ - public function getDeleteUsage() : ?bool + public function getDeleteUsage(): ?bool { return $this->deleteUsage; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -362,29 +335,29 @@ public function getDeleteUsage() : ?bool * * @return self */ - public function setDeleteUsage(?bool $deleteUsage) : self + public function setDeleteUsage(?bool $deleteUsage): self { $this->initialized['deleteUsage'] = true; $this->deleteUsage = $deleteUsage; return $this; } /** - * 料金プラン履歴 + * Plan History * - * @return PlanHistory[]|null + * @return list|null */ - public function getPlanHistories() : ?array + public function getPlanHistories(): ?array { return $this->planHistories; } /** - * 料金プラン履歴 + * Plan History * - * @param PlanHistory[]|null $planHistories + * @param list|null $planHistories * * @return self */ - public function setPlanHistories(?array $planHistories) : self + public function setPlanHistories(?array $planHistories): self { $this->initialized['planHistories'] = true; $this->planHistories = $planHistories; diff --git a/generated/Auth/Model/TenantAttributes.php b/generated/Auth/Model/TenantAttributes.php index a218896..234e8c3 100644 --- a/generated/Auth/Model/TenantAttributes.php +++ b/generated/Auth/Model/TenantAttributes.php @@ -7,34 +7,34 @@ class TenantAttributes extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * テナント属性定義(Tenant Attribute Definition) + * Tenant Attribute Definition * - * @var Attribute[]|null + * @var list|null */ protected $tenantAttributes; /** - * テナント属性定義(Tenant Attribute Definition) + * Tenant Attribute Definition * - * @return Attribute[]|null + * @return list|null */ - public function getTenantAttributes() : ?array + public function getTenantAttributes(): ?array { return $this->tenantAttributes; } /** - * テナント属性定義(Tenant Attribute Definition) + * Tenant Attribute Definition * - * @param Attribute[]|null $tenantAttributes + * @param list|null $tenantAttributes * * @return self */ - public function setTenantAttributes(?array $tenantAttributes) : self + public function setTenantAttributes(?array $tenantAttributes): self { $this->initialized['tenantAttributes'] = true; $this->tenantAttributes = $tenantAttributes; diff --git a/generated/Auth/Model/TenantDetail.php b/generated/Auth/Model/TenantDetail.php index ea2bccd..d1035da 100644 --- a/generated/Auth/Model/TenantDetail.php +++ b/generated/Auth/Model/TenantDetail.php @@ -7,19 +7,19 @@ class TenantDetail extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 現在のプランの開始日時(current plan period start) + * current plan period start * * @var int|null */ protected $currentPlanPeriodStart; /** - * 現在のプランの終了日時(current plan period end) + * current plan period end * * @var int|null */ @@ -43,19 +43,19 @@ public function isInitialized($property) : bool */ protected $billingInfo; /** - * テナント名(tenant name) + * tenant name * * @var string|null */ protected $name; /** - * 属性情報(attribute info) + * attribute info * * @var array|null */ protected $attributes; /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @var string|null */ @@ -67,12 +67,10 @@ public function isInitialized($property) : bool */ protected $nextPlanId; /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @var int|null - */ + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @var int|null + */ protected $usingNextPlanFrom; /** * @@ -81,10 +79,7 @@ public function isInitialized($property) : bool */ protected $nextPlanTaxRateId; /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -92,11 +87,7 @@ public function isInitialized($property) : bool */ protected $prorationBehavior; /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -105,50 +96,50 @@ public function isInitialized($property) : bool */ protected $deleteUsage; /** - * 料金プラン履歴 + * Plan History * - * @var PlanHistory[]|null + * @var list|null */ protected $planHistories; /** - * 現在のプランの開始日時(current plan period start) + * current plan period start * * @return int|null */ - public function getCurrentPlanPeriodStart() : ?int + public function getCurrentPlanPeriodStart(): ?int { return $this->currentPlanPeriodStart; } /** - * 現在のプランの開始日時(current plan period start) + * current plan period start * * @param int|null $currentPlanPeriodStart * * @return self */ - public function setCurrentPlanPeriodStart(?int $currentPlanPeriodStart) : self + public function setCurrentPlanPeriodStart(?int $currentPlanPeriodStart): self { $this->initialized['currentPlanPeriodStart'] = true; $this->currentPlanPeriodStart = $currentPlanPeriodStart; return $this; } /** - * 現在のプランの終了日時(current plan period end) + * current plan period end * * @return int|null */ - public function getCurrentPlanPeriodEnd() : ?int + public function getCurrentPlanPeriodEnd(): ?int { return $this->currentPlanPeriodEnd; } /** - * 現在のプランの終了日時(current plan period end) + * current plan period end * * @param int|null $currentPlanPeriodEnd * * @return self */ - public function setCurrentPlanPeriodEnd(?int $currentPlanPeriodEnd) : self + public function setCurrentPlanPeriodEnd(?int $currentPlanPeriodEnd): self { $this->initialized['currentPlanPeriodEnd'] = true; $this->currentPlanPeriodEnd = $currentPlanPeriodEnd; @@ -159,7 +150,7 @@ public function setCurrentPlanPeriodEnd(?int $currentPlanPeriodEnd) : self * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -170,7 +161,7 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; @@ -181,7 +172,7 @@ public function setId(?string $id) : self * * @return string|null */ - public function getPlanId() : ?string + public function getPlanId(): ?string { return $this->planId; } @@ -192,7 +183,7 @@ public function getPlanId() : ?string * * @return self */ - public function setPlanId(?string $planId) : self + public function setPlanId(?string $planId): self { $this->initialized['planId'] = true; $this->planId = $planId; @@ -203,7 +194,7 @@ public function setPlanId(?string $planId) : self * * @return BillingInfo|null */ - public function getBillingInfo() : ?BillingInfo + public function getBillingInfo(): ?BillingInfo { return $this->billingInfo; } @@ -214,73 +205,73 @@ public function getBillingInfo() : ?BillingInfo * * @return self */ - public function setBillingInfo(?BillingInfo $billingInfo) : self + public function setBillingInfo(?BillingInfo $billingInfo): self { $this->initialized['billingInfo'] = true; $this->billingInfo = $billingInfo; return $this; } /** - * テナント名(tenant name) + * tenant name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * テナント名(tenant name) + * tenant name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 属性情報(attribute info) + * attribute info * * @return array|null */ - public function getAttributes() : ?iterable + public function getAttributes(): ?iterable { return $this->attributes; } /** - * 属性情報(attribute info) + * attribute info * * @param array|null $attributes * * @return self */ - public function setAttributes(?iterable $attributes) : self + public function setAttributes(?iterable $attributes): self { $this->initialized['attributes'] = true; $this->attributes = $attributes; return $this; } /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @return string|null */ - public function getBackOfficeStaffEmail() : ?string + public function getBackOfficeStaffEmail(): ?string { return $this->backOfficeStaffEmail; } /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @param string|null $backOfficeStaffEmail * * @return self */ - public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self + public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail): self { $this->initialized['backOfficeStaffEmail'] = true; $this->backOfficeStaffEmail = $backOfficeStaffEmail; @@ -291,7 +282,7 @@ public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self * * @return string|null */ - public function getNextPlanId() : ?string + public function getNextPlanId(): ?string { return $this->nextPlanId; } @@ -302,33 +293,29 @@ public function getNextPlanId() : ?string * * @return self */ - public function setNextPlanId(?string $nextPlanId) : self + public function setNextPlanId(?string $nextPlanId): self { $this->initialized['nextPlanId'] = true; $this->nextPlanId = $nextPlanId; return $this; } /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @return int|null - */ - public function getUsingNextPlanFrom() : ?int + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @return int|null + */ + public function getUsingNextPlanFrom(): ?int { return $this->usingNextPlanFrom; } /** - * 次回料金プラン開始日時(stripe連携時、当月月初の0時(UTC)を指定すると当月月初開始のサブスクリプションを作成できます。ex. 2023年1月の場合は、1672531200 ) - (Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.)) - - * - * @param int|null $usingNextPlanFrom - * - * @return self - */ - public function setUsingNextPlanFrom(?int $usingNextPlanFrom) : self + * Next billing plan start time (When using stripe, you can create a subscription that starts at the beginning of the current month by specifying 00:00 (UTC) at the beginning of the current month. Ex. 1672531200 for January 2023.) + * + * @param int|null $usingNextPlanFrom + * + * @return self + */ + public function setUsingNextPlanFrom(?int $usingNextPlanFrom): self { $this->initialized['usingNextPlanFrom'] = true; $this->usingNextPlanFrom = $usingNextPlanFrom; @@ -339,7 +326,7 @@ public function setUsingNextPlanFrom(?int $usingNextPlanFrom) : self * * @return string|null */ - public function getNextPlanTaxRateId() : ?string + public function getNextPlanTaxRateId(): ?string { return $this->nextPlanTaxRateId; } @@ -350,31 +337,25 @@ public function getNextPlanTaxRateId() : ?string * * @return self */ - public function setNextPlanTaxRateId(?string $nextPlanTaxRateId) : self + public function setNextPlanTaxRateId(?string $nextPlanTaxRateId): self { $this->initialized['nextPlanTaxRateId'] = true; $this->nextPlanTaxRateId = $nextPlanTaxRateId; return $this; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * * @return string|null */ - public function getProrationBehavior() : ?string + public function getProrationBehavior(): ?string { return $this->prorationBehavior; } /** - * stripe連携している場合で、プラン変更時の比例配分の挙動を設定できます。 - プラン変更した場合に、請求金額を日割り計算し次回請求書に反映させるか、日割り計算した請求を即時に発行する、日割り計算をしないを設定できます。 - - If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. + * If you have a strine linkage, you can set the behavior of the proportional allocation when changing plans. When a plan is changed, you can set whether to prorate the billing amount and reflect it on the next invoice, to issue a prorated invoice immediately, or not to prorate at all. * @@ -382,34 +363,26 @@ public function getProrationBehavior() : ?string * * @return self */ - public function setProrationBehavior(?string $prorationBehavior) : self + public function setProrationBehavior(?string $prorationBehavior): self { $this->initialized['prorationBehavior'] = true; $this->prorationBehavior = $prorationBehavior; return $this; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. * * @return bool|null */ - public function getDeleteUsage() : ?bool + public function getDeleteUsage(): ?bool { return $this->deleteUsage; } /** - * stripe連携している場合で、プラン変更時に従量課金アイテムを削除するか設定できます。 - プラン変更した場合に、現在のサブスクリプションに含まれる従量課金アイテムを全て削除して、従量課金アイテムに基づく請求の発生を止めることができます。 - 即時に記録している使用量がクリアされます。それらは復元できないため、delete_usageをtrueにしたプラン変更予約は取り消しできません。 - - If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. + * If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. @@ -418,29 +391,29 @@ public function getDeleteUsage() : ?bool * * @return self */ - public function setDeleteUsage(?bool $deleteUsage) : self + public function setDeleteUsage(?bool $deleteUsage): self { $this->initialized['deleteUsage'] = true; $this->deleteUsage = $deleteUsage; return $this; } /** - * 料金プラン履歴 + * Plan History * - * @return PlanHistory[]|null + * @return list|null */ - public function getPlanHistories() : ?array + public function getPlanHistories(): ?array { return $this->planHistories; } /** - * 料金プラン履歴 + * Plan History * - * @param PlanHistory[]|null $planHistories + * @param list|null $planHistories * * @return self */ - public function setPlanHistories(?array $planHistories) : self + public function setPlanHistories(?array $planHistories): self { $this->initialized['planHistories'] = true; $this->planHistories = $planHistories; diff --git a/generated/Auth/Model/TenantIdentityProviders.php b/generated/Auth/Model/TenantIdentityProviders.php index 5840bd2..f85cf96 100644 --- a/generated/Auth/Model/TenantIdentityProviders.php +++ b/generated/Auth/Model/TenantIdentityProviders.php @@ -7,8 +7,8 @@ class TenantIdentityProviders extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return array|null */ - public function getSaml() : ?iterable + public function getSaml(): ?iterable { return $this->saml; } @@ -34,7 +34,7 @@ public function getSaml() : ?iterable * * @return self */ - public function setSaml(?iterable $saml) : self + public function setSaml(?iterable $saml): self { $this->initialized['saml'] = true; $this->saml = $saml; diff --git a/generated/Auth/Model/TenantIdentityProvidersSaml.php b/generated/Auth/Model/TenantIdentityProvidersSaml.php index 271a514..d65d440 100644 --- a/generated/Auth/Model/TenantIdentityProvidersSaml.php +++ b/generated/Auth/Model/TenantIdentityProvidersSaml.php @@ -7,8 +7,8 @@ class TenantIdentityProvidersSaml extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getSignInUrl() : ?string + public function getSignInUrl(): ?string { return $this->signInUrl; } @@ -46,7 +46,7 @@ public function getSignInUrl() : ?string * * @return self */ - public function setSignInUrl(?string $signInUrl) : self + public function setSignInUrl(?string $signInUrl): self { $this->initialized['signInUrl'] = true; $this->signInUrl = $signInUrl; @@ -57,7 +57,7 @@ public function setSignInUrl(?string $signInUrl) : self * * @return string|null */ - public function getMetadataUrl() : ?string + public function getMetadataUrl(): ?string { return $this->metadataUrl; } @@ -68,7 +68,7 @@ public function getMetadataUrl() : ?string * * @return self */ - public function setMetadataUrl(?string $metadataUrl) : self + public function setMetadataUrl(?string $metadataUrl): self { $this->initialized['metadataUrl'] = true; $this->metadataUrl = $metadataUrl; @@ -79,7 +79,7 @@ public function setMetadataUrl(?string $metadataUrl) : self * * @return string|null */ - public function getEmailAttribute() : ?string + public function getEmailAttribute(): ?string { return $this->emailAttribute; } @@ -90,7 +90,7 @@ public function getEmailAttribute() : ?string * * @return self */ - public function setEmailAttribute(?string $emailAttribute) : self + public function setEmailAttribute(?string $emailAttribute): self { $this->initialized['emailAttribute'] = true; $this->emailAttribute = $emailAttribute; diff --git a/generated/Auth/Model/TenantProps.php b/generated/Auth/Model/TenantProps.php index c3e40d5..c273298 100644 --- a/generated/Auth/Model/TenantProps.php +++ b/generated/Auth/Model/TenantProps.php @@ -7,90 +7,90 @@ class TenantProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * テナント名(tenant name) + * tenant name * * @var string|null */ protected $name; /** - * 属性情報(attribute info) + * attribute info * * @var array|null */ protected $attributes; /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @var string|null */ protected $backOfficeStaffEmail; /** - * テナント名(tenant name) + * tenant name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * テナント名(tenant name) + * tenant name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 属性情報(attribute info) + * attribute info * * @return array|null */ - public function getAttributes() : ?iterable + public function getAttributes(): ?iterable { return $this->attributes; } /** - * 属性情報(attribute info) + * attribute info * * @param array|null $attributes * * @return self */ - public function setAttributes(?iterable $attributes) : self + public function setAttributes(?iterable $attributes): self { $this->initialized['attributes'] = true; $this->attributes = $attributes; return $this; } /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @return string|null */ - public function getBackOfficeStaffEmail() : ?string + public function getBackOfficeStaffEmail(): ?string { return $this->backOfficeStaffEmail; } /** - * 事務管理部門スタッフメールアドレス(administrative staff email address) + * administrative staff email address * * @param string|null $backOfficeStaffEmail * * @return self */ - public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self + public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail): self { $this->initialized['backOfficeStaffEmail'] = true; $this->backOfficeStaffEmail = $backOfficeStaffEmail; diff --git a/generated/Auth/Model/Tenants.php b/generated/Auth/Model/Tenants.php index 6d484c8..a7b6572 100644 --- a/generated/Auth/Model/Tenants.php +++ b/generated/Auth/Model/Tenants.php @@ -7,34 +7,34 @@ class Tenants extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $tenants; /** * * - * @return array[]|null + * @return list>|null */ - public function getTenants() : ?array + public function getTenants(): ?array { return $this->tenants; } /** * * - * @param array[]|null $tenants + * @param list>|null $tenants * * @return self */ - public function setTenants(?array $tenants) : self + public function setTenants(?array $tenants): self { $this->initialized['tenants'] = true; $this->tenants = $tenants; diff --git a/generated/Auth/Model/UpdateBasicInfoParam.php b/generated/Auth/Model/UpdateBasicInfoParam.php index 05bbce9..e346755 100644 --- a/generated/Auth/Model/UpdateBasicInfoParam.php +++ b/generated/Auth/Model/UpdateBasicInfoParam.php @@ -7,90 +7,90 @@ class UpdateBasicInfoParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * ドメイン名(Domain Name) + * Domain Name * * @var string|null */ protected $domainName; /** - * 認証メールの送信元メールアドレス(Sender email of authentication email) + * Sender email of authentication email * * @var string|null */ protected $fromEmailAddress; /** - * 認証メールの返信元メールアドレス(Reply-from email address of authentication email) + * Reply-from email address of authentication email * * @var string|null */ protected $replyEmailAddress; /** - * ドメイン名(Domain Name) + * Domain Name * * @return string|null */ - public function getDomainName() : ?string + public function getDomainName(): ?string { return $this->domainName; } /** - * ドメイン名(Domain Name) + * Domain Name * * @param string|null $domainName * * @return self */ - public function setDomainName(?string $domainName) : self + public function setDomainName(?string $domainName): self { $this->initialized['domainName'] = true; $this->domainName = $domainName; return $this; } /** - * 認証メールの送信元メールアドレス(Sender email of authentication email) + * Sender email of authentication email * * @return string|null */ - public function getFromEmailAddress() : ?string + public function getFromEmailAddress(): ?string { return $this->fromEmailAddress; } /** - * 認証メールの送信元メールアドレス(Sender email of authentication email) + * Sender email of authentication email * * @param string|null $fromEmailAddress * * @return self */ - public function setFromEmailAddress(?string $fromEmailAddress) : self + public function setFromEmailAddress(?string $fromEmailAddress): self { $this->initialized['fromEmailAddress'] = true; $this->fromEmailAddress = $fromEmailAddress; return $this; } /** - * 認証メールの返信元メールアドレス(Reply-from email address of authentication email) + * Reply-from email address of authentication email * * @return string|null */ - public function getReplyEmailAddress() : ?string + public function getReplyEmailAddress(): ?string { return $this->replyEmailAddress; } /** - * 認証メールの返信元メールアドレス(Reply-from email address of authentication email) + * Reply-from email address of authentication email * * @param string|null $replyEmailAddress * * @return self */ - public function setReplyEmailAddress(?string $replyEmailAddress) : self + public function setReplyEmailAddress(?string $replyEmailAddress): self { $this->initialized['replyEmailAddress'] = true; $this->replyEmailAddress = $replyEmailAddress; diff --git a/generated/Auth/Model/UpdateCustomizePageSettingsParam.php b/generated/Auth/Model/UpdateCustomizePageSettingsParam.php index 242a906..ecbb4ee 100644 --- a/generated/Auth/Model/UpdateCustomizePageSettingsParam.php +++ b/generated/Auth/Model/UpdateCustomizePageSettingsParam.php @@ -7,174 +7,174 @@ class UpdateCustomizePageSettingsParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * サービスアイコン(service icon) + * service icon * * @var string|null */ protected $icon; /** - * ファビコン(favicon) + * favicon * * @var string|null */ protected $favicon; /** - * サービス名(service name) + * service name * * @var string|null */ protected $title; /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @var string|null */ protected $termsOfServiceUrl; /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @var string|null */ protected $privacyPolicyUrl; /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @var string|null */ protected $googleTagManagerContainerId; /** - * サービスアイコン(service icon) + * service icon * * @return string|null */ - public function getIcon() : ?string + public function getIcon(): ?string { return $this->icon; } /** - * サービスアイコン(service icon) + * service icon * * @param string|null $icon * * @return self */ - public function setIcon(?string $icon) : self + public function setIcon(?string $icon): self { $this->initialized['icon'] = true; $this->icon = $icon; return $this; } /** - * ファビコン(favicon) + * favicon * * @return string|null */ - public function getFavicon() : ?string + public function getFavicon(): ?string { return $this->favicon; } /** - * ファビコン(favicon) + * favicon * * @param string|null $favicon * * @return self */ - public function setFavicon(?string $favicon) : self + public function setFavicon(?string $favicon): self { $this->initialized['favicon'] = true; $this->favicon = $favicon; return $this; } /** - * サービス名(service name) + * service name * * @return string|null */ - public function getTitle() : ?string + public function getTitle(): ?string { return $this->title; } /** - * サービス名(service name) + * service name * * @param string|null $title * * @return self */ - public function setTitle(?string $title) : self + public function setTitle(?string $title): self { $this->initialized['title'] = true; $this->title = $title; return $this; } /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @return string|null */ - public function getTermsOfServiceUrl() : ?string + public function getTermsOfServiceUrl(): ?string { return $this->termsOfServiceUrl; } /** - * 利用規約URL(terms of service URL) + * terms of service URL * * @param string|null $termsOfServiceUrl * * @return self */ - public function setTermsOfServiceUrl(?string $termsOfServiceUrl) : self + public function setTermsOfServiceUrl(?string $termsOfServiceUrl): self { $this->initialized['termsOfServiceUrl'] = true; $this->termsOfServiceUrl = $termsOfServiceUrl; return $this; } /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @return string|null */ - public function getPrivacyPolicyUrl() : ?string + public function getPrivacyPolicyUrl(): ?string { return $this->privacyPolicyUrl; } /** - * プライバシーポリシーURL(privacy policy URL) + * privacy policy URL * * @param string|null $privacyPolicyUrl * * @return self */ - public function setPrivacyPolicyUrl(?string $privacyPolicyUrl) : self + public function setPrivacyPolicyUrl(?string $privacyPolicyUrl): self { $this->initialized['privacyPolicyUrl'] = true; $this->privacyPolicyUrl = $privacyPolicyUrl; return $this; } /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @return string|null */ - public function getGoogleTagManagerContainerId() : ?string + public function getGoogleTagManagerContainerId(): ?string { return $this->googleTagManagerContainerId; } /** - * Google Tag Manager コンテナ ID(Google Tag Manager container ID) + * Google Tag Manager container ID * * @param string|null $googleTagManagerContainerId * * @return self */ - public function setGoogleTagManagerContainerId(?string $googleTagManagerContainerId) : self + public function setGoogleTagManagerContainerId(?string $googleTagManagerContainerId): self { $this->initialized['googleTagManagerContainerId'] = true; $this->googleTagManagerContainerId = $googleTagManagerContainerId; diff --git a/generated/Auth/Model/UpdateCustomizePagesParam.php b/generated/Auth/Model/UpdateCustomizePagesParam.php index 77eb0ea..c622e6a 100644 --- a/generated/Auth/Model/UpdateCustomizePagesParam.php +++ b/generated/Auth/Model/UpdateCustomizePagesParam.php @@ -7,8 +7,8 @@ class UpdateCustomizePagesParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return CustomizePageProps|null */ - public function getSignUpPage() : ?CustomizePageProps + public function getSignUpPage(): ?CustomizePageProps { return $this->signUpPage; } @@ -46,7 +46,7 @@ public function getSignUpPage() : ?CustomizePageProps * * @return self */ - public function setSignUpPage(?CustomizePageProps $signUpPage) : self + public function setSignUpPage(?CustomizePageProps $signUpPage): self { $this->initialized['signUpPage'] = true; $this->signUpPage = $signUpPage; @@ -57,7 +57,7 @@ public function setSignUpPage(?CustomizePageProps $signUpPage) : self * * @return CustomizePageProps|null */ - public function getSignInPage() : ?CustomizePageProps + public function getSignInPage(): ?CustomizePageProps { return $this->signInPage; } @@ -68,7 +68,7 @@ public function getSignInPage() : ?CustomizePageProps * * @return self */ - public function setSignInPage(?CustomizePageProps $signInPage) : self + public function setSignInPage(?CustomizePageProps $signInPage): self { $this->initialized['signInPage'] = true; $this->signInPage = $signInPage; @@ -79,7 +79,7 @@ public function setSignInPage(?CustomizePageProps $signInPage) : self * * @return CustomizePageProps|null */ - public function getPasswordResetPage() : ?CustomizePageProps + public function getPasswordResetPage(): ?CustomizePageProps { return $this->passwordResetPage; } @@ -90,7 +90,7 @@ public function getPasswordResetPage() : ?CustomizePageProps * * @return self */ - public function setPasswordResetPage(?CustomizePageProps $passwordResetPage) : self + public function setPasswordResetPage(?CustomizePageProps $passwordResetPage): self { $this->initialized['passwordResetPage'] = true; $this->passwordResetPage = $passwordResetPage; diff --git a/generated/Auth/Model/UpdateEnvParam.php b/generated/Auth/Model/UpdateEnvParam.php index cae766c..81dbdba 100644 --- a/generated/Auth/Model/UpdateEnvParam.php +++ b/generated/Auth/Model/UpdateEnvParam.php @@ -7,62 +7,62 @@ class UpdateEnvParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 環境名(env name) + * env name * * @var string|null */ protected $name; /** - * 環境表示名(env display name) + * env display name * * @var string|null */ protected $displayName; /** - * 環境名(env name) + * env name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 環境名(env name) + * env name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 環境表示名(env display name) + * env display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 環境表示名(env display name) + * env display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; diff --git a/generated/Auth/Model/UpdateIdentityProviderParam.php b/generated/Auth/Model/UpdateIdentityProviderParam.php index 89776d0..9dc3891 100644 --- a/generated/Auth/Model/UpdateIdentityProviderParam.php +++ b/generated/Auth/Model/UpdateIdentityProviderParam.php @@ -7,8 +7,8 @@ class UpdateIdentityProviderParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getProvider() : ?string + public function getProvider(): ?string { return $this->provider; } @@ -40,7 +40,7 @@ public function getProvider() : ?string * * @return self */ - public function setProvider(?string $provider) : self + public function setProvider(?string $provider): self { $this->initialized['provider'] = true; $this->provider = $provider; @@ -51,7 +51,7 @@ public function setProvider(?string $provider) : self * * @return IdentityProviderProps|null */ - public function getIdentityProviderProps() : ?IdentityProviderProps + public function getIdentityProviderProps(): ?IdentityProviderProps { return $this->identityProviderProps; } @@ -62,7 +62,7 @@ public function getIdentityProviderProps() : ?IdentityProviderProps * * @return self */ - public function setIdentityProviderProps(?IdentityProviderProps $identityProviderProps) : self + public function setIdentityProviderProps(?IdentityProviderProps $identityProviderProps): self { $this->initialized['identityProviderProps'] = true; $this->identityProviderProps = $identityProviderProps; diff --git a/generated/Auth/Model/UpdateNotificationMessagesParam.php b/generated/Auth/Model/UpdateNotificationMessagesParam.php index 1ea6e16..9119e7a 100644 --- a/generated/Auth/Model/UpdateNotificationMessagesParam.php +++ b/generated/Auth/Model/UpdateNotificationMessagesParam.php @@ -7,8 +7,8 @@ class UpdateNotificationMessagesParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -71,7 +71,7 @@ public function isInitialized($property) : bool * * @return MessageTemplate|null */ - public function getSignUp() : ?MessageTemplate + public function getSignUp(): ?MessageTemplate { return $this->signUp; } @@ -82,7 +82,7 @@ public function getSignUp() : ?MessageTemplate * * @return self */ - public function setSignUp(?MessageTemplate $signUp) : self + public function setSignUp(?MessageTemplate $signUp): self { $this->initialized['signUp'] = true; $this->signUp = $signUp; @@ -93,7 +93,7 @@ public function setSignUp(?MessageTemplate $signUp) : self * * @return MessageTemplate|null */ - public function getCreateUser() : ?MessageTemplate + public function getCreateUser(): ?MessageTemplate { return $this->createUser; } @@ -104,7 +104,7 @@ public function getCreateUser() : ?MessageTemplate * * @return self */ - public function setCreateUser(?MessageTemplate $createUser) : self + public function setCreateUser(?MessageTemplate $createUser): self { $this->initialized['createUser'] = true; $this->createUser = $createUser; @@ -115,7 +115,7 @@ public function setCreateUser(?MessageTemplate $createUser) : self * * @return MessageTemplate|null */ - public function getResendCode() : ?MessageTemplate + public function getResendCode(): ?MessageTemplate { return $this->resendCode; } @@ -126,7 +126,7 @@ public function getResendCode() : ?MessageTemplate * * @return self */ - public function setResendCode(?MessageTemplate $resendCode) : self + public function setResendCode(?MessageTemplate $resendCode): self { $this->initialized['resendCode'] = true; $this->resendCode = $resendCode; @@ -137,7 +137,7 @@ public function setResendCode(?MessageTemplate $resendCode) : self * * @return MessageTemplate|null */ - public function getForgotPassword() : ?MessageTemplate + public function getForgotPassword(): ?MessageTemplate { return $this->forgotPassword; } @@ -148,7 +148,7 @@ public function getForgotPassword() : ?MessageTemplate * * @return self */ - public function setForgotPassword(?MessageTemplate $forgotPassword) : self + public function setForgotPassword(?MessageTemplate $forgotPassword): self { $this->initialized['forgotPassword'] = true; $this->forgotPassword = $forgotPassword; @@ -159,7 +159,7 @@ public function setForgotPassword(?MessageTemplate $forgotPassword) : self * * @return MessageTemplate|null */ - public function getUpdateUserAttribute() : ?MessageTemplate + public function getUpdateUserAttribute(): ?MessageTemplate { return $this->updateUserAttribute; } @@ -170,7 +170,7 @@ public function getUpdateUserAttribute() : ?MessageTemplate * * @return self */ - public function setUpdateUserAttribute(?MessageTemplate $updateUserAttribute) : self + public function setUpdateUserAttribute(?MessageTemplate $updateUserAttribute): self { $this->initialized['updateUserAttribute'] = true; $this->updateUserAttribute = $updateUserAttribute; @@ -181,7 +181,7 @@ public function setUpdateUserAttribute(?MessageTemplate $updateUserAttribute) : * * @return MessageTemplate|null */ - public function getVerifyUserAttribute() : ?MessageTemplate + public function getVerifyUserAttribute(): ?MessageTemplate { return $this->verifyUserAttribute; } @@ -192,7 +192,7 @@ public function getVerifyUserAttribute() : ?MessageTemplate * * @return self */ - public function setVerifyUserAttribute(?MessageTemplate $verifyUserAttribute) : self + public function setVerifyUserAttribute(?MessageTemplate $verifyUserAttribute): self { $this->initialized['verifyUserAttribute'] = true; $this->verifyUserAttribute = $verifyUserAttribute; @@ -203,7 +203,7 @@ public function setVerifyUserAttribute(?MessageTemplate $verifyUserAttribute) : * * @return MessageTemplate|null */ - public function getAuthenticationMfa() : ?MessageTemplate + public function getAuthenticationMfa(): ?MessageTemplate { return $this->authenticationMfa; } @@ -214,7 +214,7 @@ public function getAuthenticationMfa() : ?MessageTemplate * * @return self */ - public function setAuthenticationMfa(?MessageTemplate $authenticationMfa) : self + public function setAuthenticationMfa(?MessageTemplate $authenticationMfa): self { $this->initialized['authenticationMfa'] = true; $this->authenticationMfa = $authenticationMfa; @@ -225,7 +225,7 @@ public function setAuthenticationMfa(?MessageTemplate $authenticationMfa) : self * * @return MessageTemplate|null */ - public function getInviteTenantUser() : ?MessageTemplate + public function getInviteTenantUser(): ?MessageTemplate { return $this->inviteTenantUser; } @@ -236,7 +236,7 @@ public function getInviteTenantUser() : ?MessageTemplate * * @return self */ - public function setInviteTenantUser(?MessageTemplate $inviteTenantUser) : self + public function setInviteTenantUser(?MessageTemplate $inviteTenantUser): self { $this->initialized['inviteTenantUser'] = true; $this->inviteTenantUser = $inviteTenantUser; @@ -247,7 +247,7 @@ public function setInviteTenantUser(?MessageTemplate $inviteTenantUser) : self * * @return MessageTemplate|null */ - public function getVerifyExternalUser() : ?MessageTemplate + public function getVerifyExternalUser(): ?MessageTemplate { return $this->verifyExternalUser; } @@ -258,7 +258,7 @@ public function getVerifyExternalUser() : ?MessageTemplate * * @return self */ - public function setVerifyExternalUser(?MessageTemplate $verifyExternalUser) : self + public function setVerifyExternalUser(?MessageTemplate $verifyExternalUser): self { $this->initialized['verifyExternalUser'] = true; $this->verifyExternalUser = $verifyExternalUser; diff --git a/generated/Auth/Model/UpdateSaasUserEmailParam.php b/generated/Auth/Model/UpdateSaasUserEmailParam.php index ddaedd6..fe5a20e 100644 --- a/generated/Auth/Model/UpdateSaasUserEmailParam.php +++ b/generated/Auth/Model/UpdateSaasUserEmailParam.php @@ -7,34 +7,34 @@ class UpdateSaasUserEmailParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メールアドレス(e-mail) + * E-mail * * @var string|null */ protected $email; /** - * メールアドレス(e-mail) + * E-mail * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(e-mail) + * E-mail * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; diff --git a/generated/Auth/Model/UpdateSaasUserPasswordParam.php b/generated/Auth/Model/UpdateSaasUserPasswordParam.php index 774689b..0f342e7 100644 --- a/generated/Auth/Model/UpdateSaasUserPasswordParam.php +++ b/generated/Auth/Model/UpdateSaasUserPasswordParam.php @@ -7,34 +7,34 @@ class UpdateSaasUserPasswordParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * パスワード(password) + * Password * * @var string|null */ protected $password; /** - * パスワード(password) + * Password * * @return string|null */ - public function getPassword() : ?string + public function getPassword(): ?string { return $this->password; } /** - * パスワード(password) + * Password * * @param string|null $password * * @return self */ - public function setPassword(?string $password) : self + public function setPassword(?string $password): self { $this->initialized['password'] = true; $this->password = $password; diff --git a/generated/Auth/Model/UpdateSignInSettingsParam.php b/generated/Auth/Model/UpdateSignInSettingsParam.php index d4dd7f2..9036c6a 100644 --- a/generated/Auth/Model/UpdateSignInSettingsParam.php +++ b/generated/Auth/Model/UpdateSignInSettingsParam.php @@ -7,192 +7,192 @@ class UpdateSignInSettingsParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * パスワードポリシー(password policy) + * Password Policy * * @var PasswordPolicy|null */ protected $passwordPolicy; /** - * 信頼済みデバイスの記憶の設定(settings for remembering trusted devices) + * Settings for remembering trusted devices * * @var DeviceConfiguration|null */ protected $deviceConfiguration; /** - * MFAデバイス認証設定(MFA device authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * MFA device authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @var MfaConfiguration|null */ protected $mfaConfiguration; /** - * reCAPTCHA認証設定(reCAPTCHA authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * reCAPTCHA authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @var RecaptchaProps|null */ protected $recaptchaProps; /** - * アカウント認証設定(account authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * Account authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @var AccountVerification|null */ protected $accountVerification; /** - * セルフサインアップを許可設定(self sign-up permission) + * self sign-up permission * * @var SelfRegist|null */ protected $selfRegist; /** - * パスワードポリシー(password policy) + * Password Policy * * @return PasswordPolicy|null */ - public function getPasswordPolicy() : ?PasswordPolicy + public function getPasswordPolicy(): ?PasswordPolicy { return $this->passwordPolicy; } /** - * パスワードポリシー(password policy) + * Password Policy * * @param PasswordPolicy|null $passwordPolicy * * @return self */ - public function setPasswordPolicy(?PasswordPolicy $passwordPolicy) : self + public function setPasswordPolicy(?PasswordPolicy $passwordPolicy): self { $this->initialized['passwordPolicy'] = true; $this->passwordPolicy = $passwordPolicy; return $this; } /** - * 信頼済みデバイスの記憶の設定(settings for remembering trusted devices) + * Settings for remembering trusted devices * * @return DeviceConfiguration|null */ - public function getDeviceConfiguration() : ?DeviceConfiguration + public function getDeviceConfiguration(): ?DeviceConfiguration { return $this->deviceConfiguration; } /** - * 信頼済みデバイスの記憶の設定(settings for remembering trusted devices) + * Settings for remembering trusted devices * * @param DeviceConfiguration|null $deviceConfiguration * * @return self */ - public function setDeviceConfiguration(?DeviceConfiguration $deviceConfiguration) : self + public function setDeviceConfiguration(?DeviceConfiguration $deviceConfiguration): self { $this->initialized['deviceConfiguration'] = true; $this->deviceConfiguration = $deviceConfiguration; return $this; } /** - * MFAデバイス認証設定(MFA device authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * MFA device authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @return MfaConfiguration|null */ - public function getMfaConfiguration() : ?MfaConfiguration + public function getMfaConfiguration(): ?MfaConfiguration { return $this->mfaConfiguration; } /** - * MFAデバイス認証設定(MFA device authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * MFA device authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @param MfaConfiguration|null $mfaConfiguration * * @return self */ - public function setMfaConfiguration(?MfaConfiguration $mfaConfiguration) : self + public function setMfaConfiguration(?MfaConfiguration $mfaConfiguration): self { $this->initialized['mfaConfiguration'] = true; $this->mfaConfiguration = $mfaConfiguration; return $this; } /** - * reCAPTCHA認証設定(reCAPTCHA authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * reCAPTCHA authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @return RecaptchaProps|null */ - public function getRecaptchaProps() : ?RecaptchaProps + public function getRecaptchaProps(): ?RecaptchaProps { return $this->recaptchaProps; } /** - * reCAPTCHA認証設定(reCAPTCHA authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * reCAPTCHA authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @param RecaptchaProps|null $recaptchaProps * * @return self */ - public function setRecaptchaProps(?RecaptchaProps $recaptchaProps) : self + public function setRecaptchaProps(?RecaptchaProps $recaptchaProps): self { $this->initialized['recaptchaProps'] = true; $this->recaptchaProps = $recaptchaProps; return $this; } /** - * アカウント認証設定(account authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * Account authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @return AccountVerification|null */ - public function getAccountVerification() : ?AccountVerification + public function getAccountVerification(): ?AccountVerification { return $this->accountVerification; } /** - * アカウント認証設定(account authentication settings) - ※ 未提供の機能のため、変更・保存はできません(This function is not yet provided, so it cannot be changed or saved.) + * Account authentication settings + ※ This function is not yet provided, so it cannot be changed or saved. * * @param AccountVerification|null $accountVerification * * @return self */ - public function setAccountVerification(?AccountVerification $accountVerification) : self + public function setAccountVerification(?AccountVerification $accountVerification): self { $this->initialized['accountVerification'] = true; $this->accountVerification = $accountVerification; return $this; } /** - * セルフサインアップを許可設定(self sign-up permission) + * self sign-up permission * * @return SelfRegist|null */ - public function getSelfRegist() : ?SelfRegist + public function getSelfRegist(): ?SelfRegist { return $this->selfRegist; } /** - * セルフサインアップを許可設定(self sign-up permission) + * self sign-up permission * * @param SelfRegist|null $selfRegist * * @return self */ - public function setSelfRegist(?SelfRegist $selfRegist) : self + public function setSelfRegist(?SelfRegist $selfRegist): self { $this->initialized['selfRegist'] = true; $this->selfRegist = $selfRegist; diff --git a/generated/Auth/Model/UpdateSingleTenantSettingsParam.php b/generated/Auth/Model/UpdateSingleTenantSettingsParam.php new file mode 100644 index 0000000..c272323 --- /dev/null +++ b/generated/Auth/Model/UpdateSingleTenantSettingsParam.php @@ -0,0 +1,155 @@ +initialized); + } + /** + * enable Single Tenant settings or not + * + * @var bool|null + */ + protected $enabled; + /** + * ARN of the role for SaaS Platform to AssumeRole + * + * @var string|null + */ + protected $roleArn; + /** + * CloudFormation template file + * + * @var string|null + */ + protected $cloudformationTemplate; + /** + * ddl file to run in SaaS environment + * + * @var string|null + */ + protected $ddlTemplate; + /** + * External id used by SaaSus when AssumeRole to operate SaaS + * + * @var string|null + */ + protected $roleExternalId; + /** + * enable Single Tenant settings or not + * + * @return bool|null + */ + public function getEnabled(): ?bool + { + return $this->enabled; + } + /** + * enable Single Tenant settings or not + * + * @param bool|null $enabled + * + * @return self + */ + public function setEnabled(?bool $enabled): self + { + $this->initialized['enabled'] = true; + $this->enabled = $enabled; + return $this; + } + /** + * ARN of the role for SaaS Platform to AssumeRole + * + * @return string|null + */ + public function getRoleArn(): ?string + { + return $this->roleArn; + } + /** + * ARN of the role for SaaS Platform to AssumeRole + * + * @param string|null $roleArn + * + * @return self + */ + public function setRoleArn(?string $roleArn): self + { + $this->initialized['roleArn'] = true; + $this->roleArn = $roleArn; + return $this; + } + /** + * CloudFormation template file + * + * @return string|null + */ + public function getCloudformationTemplate(): ?string + { + return $this->cloudformationTemplate; + } + /** + * CloudFormation template file + * + * @param string|null $cloudformationTemplate + * + * @return self + */ + public function setCloudformationTemplate(?string $cloudformationTemplate): self + { + $this->initialized['cloudformationTemplate'] = true; + $this->cloudformationTemplate = $cloudformationTemplate; + return $this; + } + /** + * ddl file to run in SaaS environment + * + * @return string|null + */ + public function getDdlTemplate(): ?string + { + return $this->ddlTemplate; + } + /** + * ddl file to run in SaaS environment + * + * @param string|null $ddlTemplate + * + * @return self + */ + public function setDdlTemplate(?string $ddlTemplate): self + { + $this->initialized['ddlTemplate'] = true; + $this->ddlTemplate = $ddlTemplate; + return $this; + } + /** + * External id used by SaaSus when AssumeRole to operate SaaS + * + * @return string|null + */ + public function getRoleExternalId(): ?string + { + return $this->roleExternalId; + } + /** + * External id used by SaaSus when AssumeRole to operate SaaS + * + * @param string|null $roleExternalId + * + * @return self + */ + public function setRoleExternalId(?string $roleExternalId): self + { + $this->initialized['roleExternalId'] = true; + $this->roleExternalId = $roleExternalId; + return $this; + } +} \ No newline at end of file diff --git a/generated/Auth/Model/UpdateSoftwareTokenParam.php b/generated/Auth/Model/UpdateSoftwareTokenParam.php index ab1aca7..9781cb4 100644 --- a/generated/Auth/Model/UpdateSoftwareTokenParam.php +++ b/generated/Auth/Model/UpdateSoftwareTokenParam.php @@ -7,62 +7,62 @@ class UpdateSoftwareTokenParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * アクセストークン(access token) + * access token * * @var string|null */ protected $accessToken; /** - * 検証コード(verification code) + * verification code * * @var string|null */ protected $verificationCode; /** - * アクセストークン(access token) + * access token * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * アクセストークン(access token) + * access token * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; return $this; } /** - * 検証コード(verification code) + * verification code * * @return string|null */ - public function getVerificationCode() : ?string + public function getVerificationCode(): ?string { return $this->verificationCode; } /** - * 検証コード(verification code) + * verification code * * @param string|null $verificationCode * * @return self */ - public function setVerificationCode(?string $verificationCode) : self + public function setVerificationCode(?string $verificationCode): self { $this->initialized['verificationCode'] = true; $this->verificationCode = $verificationCode; diff --git a/generated/Auth/Model/UpdateTenantIdentityProviderParam.php b/generated/Auth/Model/UpdateTenantIdentityProviderParam.php index 067e85e..91f9811 100644 --- a/generated/Auth/Model/UpdateTenantIdentityProviderParam.php +++ b/generated/Auth/Model/UpdateTenantIdentityProviderParam.php @@ -7,8 +7,8 @@ class UpdateTenantIdentityProviderParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getProviderType() : ?string + public function getProviderType(): ?string { return $this->providerType; } @@ -40,7 +40,7 @@ public function getProviderType() : ?string * * @return self */ - public function setProviderType(?string $providerType) : self + public function setProviderType(?string $providerType): self { $this->initialized['providerType'] = true; $this->providerType = $providerType; @@ -51,7 +51,7 @@ public function setProviderType(?string $providerType) : self * * @return array|null */ - public function getIdentityProviderProps() : ?iterable + public function getIdentityProviderProps(): ?iterable { return $this->identityProviderProps; } @@ -62,7 +62,7 @@ public function getIdentityProviderProps() : ?iterable * * @return self */ - public function setIdentityProviderProps(?iterable $identityProviderProps) : self + public function setIdentityProviderProps(?iterable $identityProviderProps): self { $this->initialized['identityProviderProps'] = true; $this->identityProviderProps = $identityProviderProps; diff --git a/generated/Auth/Model/UpdateTenantUserParam.php b/generated/Auth/Model/UpdateTenantUserParam.php index 26c1dd0..ca9e3f0 100644 --- a/generated/Auth/Model/UpdateTenantUserParam.php +++ b/generated/Auth/Model/UpdateTenantUserParam.php @@ -7,43 +7,34 @@ class UpdateTenantUserParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @var array|null - */ + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @var array|null + */ protected $attributes; /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @return array|null - */ - public function getAttributes() : ?iterable + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @return array|null + */ + public function getAttributes(): ?iterable { return $this->attributes; } /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @param array|null $attributes - * - * @return self - */ - public function setAttributes(?iterable $attributes) : self + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @param array|null $attributes + * + * @return self + */ + public function setAttributes(?iterable $attributes): self { $this->initialized['attributes'] = true; $this->attributes = $attributes; diff --git a/generated/Auth/Model/User.php b/generated/Auth/Model/User.php index 7a6bb9c..8130073 100644 --- a/generated/Auth/Model/User.php +++ b/generated/Auth/Model/User.php @@ -7,13 +7,13 @@ class User extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * ユーザーID(User ID) + * User ID * * @var string|null */ @@ -25,49 +25,46 @@ public function isInitialized($property) : bool */ protected $tenantId; /** - * テナント名(Tenant Name) + * Tenant Name * * @var string|null */ protected $tenantName; /** - * メールアドレス(E-mail) + * E-mail * * @var string|null */ protected $email; /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @var array|null - */ + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @var array|null + */ protected $attributes; /** * * - * @var object[]|null + * @var list|null */ protected $envs; /** - * ユーザーID(User ID) + * User ID * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * ユーザーID(User ID) + * User ID * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; @@ -78,7 +75,7 @@ public function setId(?string $id) : self * * @return string|null */ - public function getTenantId() : ?string + public function getTenantId(): ?string { return $this->tenantId; } @@ -89,79 +86,73 @@ public function getTenantId() : ?string * * @return self */ - public function setTenantId(?string $tenantId) : self + public function setTenantId(?string $tenantId): self { $this->initialized['tenantId'] = true; $this->tenantId = $tenantId; return $this; } /** - * テナント名(Tenant Name) + * Tenant Name * * @return string|null */ - public function getTenantName() : ?string + public function getTenantName(): ?string { return $this->tenantName; } /** - * テナント名(Tenant Name) + * Tenant Name * * @param string|null $tenantName * * @return self */ - public function setTenantName(?string $tenantName) : self + public function setTenantName(?string $tenantName): self { $this->initialized['tenantName'] = true; $this->tenantName = $tenantName; return $this; } /** - * メールアドレス(E-mail) + * E-mail * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(E-mail) + * E-mail * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @return array|null - */ - public function getAttributes() : ?iterable + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @return array|null + */ + public function getAttributes(): ?iterable { return $this->attributes; } /** - * 属性情報(SaaS 開発コンソールでユーザー属性定義を行い設定された情報を取得します) - - Attribute information (Get information set by defining user attributes in the SaaS development console) - - * - * @param array|null $attributes - * - * @return self - */ - public function setAttributes(?iterable $attributes) : self + * Attribute information (Get information set by defining user attributes in the SaaS development console) + * + * @param array|null $attributes + * + * @return self + */ + public function setAttributes(?iterable $attributes): self { $this->initialized['attributes'] = true; $this->attributes = $attributes; @@ -170,20 +161,20 @@ public function setAttributes(?iterable $attributes) : self /** * * - * @return object[]|null + * @return list|null */ - public function getEnvs() : ?array + public function getEnvs(): ?array { return $this->envs; } /** * * - * @param object[]|null $envs + * @param list|null $envs * * @return self */ - public function setEnvs(?array $envs) : self + public function setEnvs(?array $envs): self { $this->initialized['envs'] = true; $this->envs = $envs; diff --git a/generated/Auth/Model/UserAttributes.php b/generated/Auth/Model/UserAttributes.php index f0353fc..0eb0495 100644 --- a/generated/Auth/Model/UserAttributes.php +++ b/generated/Auth/Model/UserAttributes.php @@ -7,34 +7,34 @@ class UserAttributes extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * ユーザー属性定義(User attribute definition) + * User Attribute Definition * - * @var Attribute[]|null + * @var list|null */ protected $userAttributes; /** - * ユーザー属性定義(User attribute definition) + * User Attribute Definition * - * @return Attribute[]|null + * @return list|null */ - public function getUserAttributes() : ?array + public function getUserAttributes(): ?array { return $this->userAttributes; } /** - * ユーザー属性定義(User attribute definition) + * User Attribute Definition * - * @param Attribute[]|null $userAttributes + * @param list|null $userAttributes * * @return self */ - public function setUserAttributes(?array $userAttributes) : self + public function setUserAttributes(?array $userAttributes): self { $this->initialized['userAttributes'] = true; $this->userAttributes = $userAttributes; diff --git a/generated/Auth/Model/UserAvailableEnv.php b/generated/Auth/Model/UserAvailableEnv.php index 2f5d2b8..2e1d7ea 100644 --- a/generated/Auth/Model/UserAvailableEnv.php +++ b/generated/Auth/Model/UserAvailableEnv.php @@ -7,8 +7,8 @@ class UserAvailableEnv extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,21 +19,21 @@ public function isInitialized($property) : bool */ protected $id; /** - * 環境名(env name) + * env name * * @var string|null */ protected $name; /** - * 環境表示名(env display name) + * env display name * * @var string|null */ protected $displayName; /** - * 役割(ロール)情報(role info) + * role info * - * @var Role[]|null + * @var list|null */ protected $roles; /** @@ -41,7 +41,7 @@ public function isInitialized($property) : bool * * @return int|null */ - public function getId() : ?int + public function getId(): ?int { return $this->id; } @@ -52,73 +52,73 @@ public function getId() : ?int * * @return self */ - public function setId(?int $id) : self + public function setId(?int $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * 環境名(env name) + * env name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 環境名(env name) + * env name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 環境表示名(env display name) + * env display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 環境表示名(env display name) + * env display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 役割(ロール)情報(role info) + * role info * - * @return Role[]|null + * @return list|null */ - public function getRoles() : ?array + public function getRoles(): ?array { return $this->roles; } /** - * 役割(ロール)情報(role info) + * role info * - * @param Role[]|null $roles + * @param list|null $roles * * @return self */ - public function setRoles(?array $roles) : self + public function setRoles(?array $roles): self { $this->initialized['roles'] = true; $this->roles = $roles; diff --git a/generated/Auth/Model/UserAvailableTenant.php b/generated/Auth/Model/UserAvailableTenant.php index 1fe9901..91509ce 100644 --- a/generated/Auth/Model/UserAvailableTenant.php +++ b/generated/Auth/Model/UserAvailableTenant.php @@ -7,8 +7,8 @@ class UserAvailableTenant extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,7 +19,7 @@ public function isInitialized($property) : bool */ protected $id; /** - * テナント名(tenant name) + * Tenant Name * * @var string|null */ @@ -31,19 +31,19 @@ public function isInitialized($property) : bool */ protected $completedSignUp; /** - * 環境情報、役割(ロール)情報(environmental info, role info) + * environmental info, role info * - * @var UserAvailableEnv[]|null + * @var list|null */ protected $envs; /** - * ユーザー追加属性(user additional attributes) + * user additional attributes * * @var array|null */ protected $userAttribute; /** - * バックオフィス担当者のメール(back office contact email) + * back office contact email * * @var string|null */ @@ -55,8 +55,8 @@ public function isInitialized($property) : bool */ protected $planId; /** - * テナントの支払い状況(tenant payment status) - ※ 現在はストライプ連携時のみ返却されます。Currently, it is returned only when stripe is linked. + * tenant payment status + ※ Currently, it is returned only when stripe is linked. * * @var bool|null @@ -67,7 +67,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -78,29 +78,29 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * テナント名(tenant name) + * Tenant Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * テナント名(tenant name) + * Tenant Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; @@ -111,7 +111,7 @@ public function setName(?string $name) : self * * @return bool|null */ - public function getCompletedSignUp() : ?bool + public function getCompletedSignUp(): ?bool { return $this->completedSignUp; } @@ -122,73 +122,73 @@ public function getCompletedSignUp() : ?bool * * @return self */ - public function setCompletedSignUp(?bool $completedSignUp) : self + public function setCompletedSignUp(?bool $completedSignUp): self { $this->initialized['completedSignUp'] = true; $this->completedSignUp = $completedSignUp; return $this; } /** - * 環境情報、役割(ロール)情報(environmental info, role info) + * environmental info, role info * - * @return UserAvailableEnv[]|null + * @return list|null */ - public function getEnvs() : ?array + public function getEnvs(): ?array { return $this->envs; } /** - * 環境情報、役割(ロール)情報(environmental info, role info) + * environmental info, role info * - * @param UserAvailableEnv[]|null $envs + * @param list|null $envs * * @return self */ - public function setEnvs(?array $envs) : self + public function setEnvs(?array $envs): self { $this->initialized['envs'] = true; $this->envs = $envs; return $this; } /** - * ユーザー追加属性(user additional attributes) + * user additional attributes * * @return array|null */ - public function getUserAttribute() : ?iterable + public function getUserAttribute(): ?iterable { return $this->userAttribute; } /** - * ユーザー追加属性(user additional attributes) + * user additional attributes * * @param array|null $userAttribute * * @return self */ - public function setUserAttribute(?iterable $userAttribute) : self + public function setUserAttribute(?iterable $userAttribute): self { $this->initialized['userAttribute'] = true; $this->userAttribute = $userAttribute; return $this; } /** - * バックオフィス担当者のメール(back office contact email) + * back office contact email * * @return string|null */ - public function getBackOfficeStaffEmail() : ?string + public function getBackOfficeStaffEmail(): ?string { return $this->backOfficeStaffEmail; } /** - * バックオフィス担当者のメール(back office contact email) + * back office contact email * * @param string|null $backOfficeStaffEmail * * @return self */ - public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self + public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail): self { $this->initialized['backOfficeStaffEmail'] = true; $this->backOfficeStaffEmail = $backOfficeStaffEmail; @@ -199,7 +199,7 @@ public function setBackOfficeStaffEmail(?string $backOfficeStaffEmail) : self * * @return string|null */ - public function getPlanId() : ?string + public function getPlanId(): ?string { return $this->planId; } @@ -210,33 +210,33 @@ public function getPlanId() : ?string * * @return self */ - public function setPlanId(?string $planId) : self + public function setPlanId(?string $planId): self { $this->initialized['planId'] = true; $this->planId = $planId; return $this; } /** - * テナントの支払い状況(tenant payment status) - ※ 現在はストライプ連携時のみ返却されます。Currently, it is returned only when stripe is linked. + * tenant payment status + ※ Currently, it is returned only when stripe is linked. * * @return bool|null */ - public function getIsPaid() : ?bool + public function getIsPaid(): ?bool { return $this->isPaid; } /** - * テナントの支払い状況(tenant payment status) - ※ 現在はストライプ連携時のみ返却されます。Currently, it is returned only when stripe is linked. + * tenant payment status + ※ Currently, it is returned only when stripe is linked. * * @param bool|null $isPaid * * @return self */ - public function setIsPaid(?bool $isPaid) : self + public function setIsPaid(?bool $isPaid): self { $this->initialized['isPaid'] = true; $this->isPaid = $isPaid; diff --git a/generated/Auth/Model/UserInfo.php b/generated/Auth/Model/UserInfo.php index 12dcc83..cb72aaa 100644 --- a/generated/Auth/Model/UserInfo.php +++ b/generated/Auth/Model/UserInfo.php @@ -7,8 +7,8 @@ class UserInfo extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -19,15 +19,15 @@ public function isInitialized($property) : bool */ protected $id; /** - * メールアドレス(E-mail) + * E-mail * * @var string|null */ protected $email; /** - * テナント情報(Tenant Info) + * Tenant Info * - * @var UserAvailableTenant[]|null + * @var list|null */ protected $tenants; /** @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -46,51 +46,51 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * メールアドレス(E-mail) + * E-mail * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * メールアドレス(E-mail) + * E-mail * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * テナント情報(Tenant Info) + * Tenant Info * - * @return UserAvailableTenant[]|null + * @return list|null */ - public function getTenants() : ?array + public function getTenants(): ?array { return $this->tenants; } /** - * テナント情報(Tenant Info) + * Tenant Info * - * @param UserAvailableTenant[]|null $tenants + * @param list|null $tenants * * @return self */ - public function setTenants(?array $tenants) : self + public function setTenants(?array $tenants): self { $this->initialized['tenants'] = true; $this->tenants = $tenants; diff --git a/generated/Auth/Model/Users.php b/generated/Auth/Model/Users.php index 3ce694d..d8b81b5 100644 --- a/generated/Auth/Model/Users.php +++ b/generated/Auth/Model/Users.php @@ -7,34 +7,34 @@ class Users extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var User[]|null + * @var list|null */ protected $users; /** * * - * @return User[]|null + * @return list|null */ - public function getUsers() : ?array + public function getUsers(): ?array { return $this->users; } /** * * - * @param User[]|null $users + * @param list|null $users * * @return self */ - public function setUsers(?array $users) : self + public function setUsers(?array $users): self { $this->initialized['users'] = true; $this->users = $users; diff --git a/generated/Auth/Model/ValidateInvitationParam.php b/generated/Auth/Model/ValidateInvitationParam.php index 1a74901..86c1095 100644 --- a/generated/Auth/Model/ValidateInvitationParam.php +++ b/generated/Auth/Model/ValidateInvitationParam.php @@ -7,90 +7,90 @@ class ValidateInvitationParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 招待されたユーザーのアクセストークン(access token of the invited user) + * Access token of the invited user * * @var string|null */ protected $accessToken; /** - * 招待されたユーザーのメールアドレス(email address of the invited user) + * Email address of the invited user * * @var string|null */ protected $email; /** - * 招待されたユーザーのパスワード(password of the invited user) + * Password of the invited user * * @var string|null */ protected $password; /** - * 招待されたユーザーのアクセストークン(access token of the invited user) + * Access token of the invited user * * @return string|null */ - public function getAccessToken() : ?string + public function getAccessToken(): ?string { return $this->accessToken; } /** - * 招待されたユーザーのアクセストークン(access token of the invited user) + * Access token of the invited user * * @param string|null $accessToken * * @return self */ - public function setAccessToken(?string $accessToken) : self + public function setAccessToken(?string $accessToken): self { $this->initialized['accessToken'] = true; $this->accessToken = $accessToken; return $this; } /** - * 招待されたユーザーのメールアドレス(email address of the invited user) + * Email address of the invited user * * @return string|null */ - public function getEmail() : ?string + public function getEmail(): ?string { return $this->email; } /** - * 招待されたユーザーのメールアドレス(email address of the invited user) + * Email address of the invited user * * @param string|null $email * * @return self */ - public function setEmail(?string $email) : self + public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; } /** - * 招待されたユーザーのパスワード(password of the invited user) + * Password of the invited user * * @return string|null */ - public function getPassword() : ?string + public function getPassword(): ?string { return $this->password; } /** - * 招待されたユーザーのパスワード(password of the invited user) + * Password of the invited user * * @param string|null $password * * @return self */ - public function setPassword(?string $password) : self + public function setPassword(?string $password): self { $this->initialized['password'] = true; $this->password = $password; diff --git a/generated/Auth/Normalizer/AccountVerificationNormalizer.php b/generated/Auth/Normalizer/AccountVerificationNormalizer.php index 84682f5..d3e4bd7 100644 --- a/generated/Auth/Normalizer/AccountVerificationNormalizer.php +++ b/generated/Auth/Normalizer/AccountVerificationNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class AccountVerificationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class AccountVerificationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('verification_method', $data) && $data['verification_method'] !== null) { + $object->setVerificationMethod($data['verification_method']); + unset($data['verification_method']); + } + elseif (\array_key_exists('verification_method', $data) && $data['verification_method'] === null) { + $object->setVerificationMethod(null); + } + if (\array_key_exists('sending_to', $data) && $data['sending_to'] !== null) { + $object->setSendingTo($data['sending_to']); + unset($data['sending_to']); + } + elseif (\array_key_exists('sending_to', $data) && $data['sending_to'] === null) { + $object->setSendingTo(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('verification_method', $data) && $data['verification_method'] !== null) { - $object->setVerificationMethod($data['verification_method']); - unset($data['verification_method']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['verification_method'] = $object->getVerificationMethod(); + $data['sending_to'] = $object->getSendingTo(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('verification_method', $data) && $data['verification_method'] === null) { - $object->setVerificationMethod(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class => false]; } - if (\array_key_exists('sending_to', $data) && $data['sending_to'] !== null) { - $object->setSendingTo($data['sending_to']); - unset($data['sending_to']); + } +} else { + class AccountVerificationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class; } - elseif (\array_key_exists('sending_to', $data) && $data['sending_to'] === null) { - $object->setSendingTo(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('verification_method', $data) && $data['verification_method'] !== null) { + $object->setVerificationMethod($data['verification_method']); + unset($data['verification_method']); + } + elseif (\array_key_exists('verification_method', $data) && $data['verification_method'] === null) { + $object->setVerificationMethod(null); + } + if (\array_key_exists('sending_to', $data) && $data['sending_to'] !== null) { + $object->setSendingTo($data['sending_to']); + unset($data['sending_to']); + } + elseif (\array_key_exists('sending_to', $data) && $data['sending_to'] === null) { + $object->setSendingTo(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['verification_method'] = $object->getVerificationMethod(); - $data['sending_to'] = $object->getSendingTo(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['verification_method'] = $object->getVerificationMethod(); + $data['sending_to'] = $object->getSendingTo(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ApiKeysNormalizer.php b/generated/Auth/Normalizer/ApiKeysNormalizer.php index a01fa25..78a9285 100644 --- a/generated/Auth/Normalizer/ApiKeysNormalizer.php +++ b/generated/Auth/Normalizer/ApiKeysNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ApiKeysNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ApiKeysNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ApiKeys'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ApiKeys'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('api_keys', $data) && $data['api_keys'] !== null) { + $values = []; + foreach ($data['api_keys'] as $value) { + $values[] = $value; + } + $object->setApiKeys($values); + unset($data['api_keys']); + } + elseif (\array_key_exists('api_keys', $data) && $data['api_keys'] === null) { + $object->setApiKeys(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('api_keys', $data) && $data['api_keys'] !== null) { - $values = array(); - foreach ($data['api_keys'] as $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getApiKeys() as $value) { $values[] = $value; } - $object->setApiKeys($values); - unset($data['api_keys']); - } - elseif (\array_key_exists('api_keys', $data) && $data['api_keys'] === null) { - $object->setApiKeys(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['api_keys'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class ApiKeysNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getApiKeys() as $value) { - $values[] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class; } - $data['api_keys'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('api_keys', $data) && $data['api_keys'] !== null) { + $values = []; + foreach ($data['api_keys'] as $value) { + $values[] = $value; + } + $object->setApiKeys($values); + unset($data['api_keys']); + } + elseif (\array_key_exists('api_keys', $data) && $data['api_keys'] === null) { + $object->setApiKeys(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getApiKeys() as $value) { + $values[] = $value; + } + $data['api_keys'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ApiKeys' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/AttributeNormalizer.php b/generated/Auth/Normalizer/AttributeNormalizer.php index 79320a4..8662145 100644 --- a/generated/Auth/Normalizer/AttributeNormalizer.php +++ b/generated/Auth/Normalizer/AttributeNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class AttributeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class AttributeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('attribute_name', $data) && $data['attribute_name'] !== null) { + $object->setAttributeName($data['attribute_name']); + unset($data['attribute_name']); + } + elseif (\array_key_exists('attribute_name', $data) && $data['attribute_name'] === null) { + $object->setAttributeName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('attribute_type', $data) && $data['attribute_type'] !== null) { + $object->setAttributeType($data['attribute_type']); + unset($data['attribute_type']); + } + elseif (\array_key_exists('attribute_type', $data) && $data['attribute_type'] === null) { + $object->setAttributeType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('attribute_name', $data) && $data['attribute_name'] !== null) { - $object->setAttributeName($data['attribute_name']); - unset($data['attribute_name']); - } - elseif (\array_key_exists('attribute_name', $data) && $data['attribute_name'] === null) { - $object->setAttributeName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['attribute_name'] = $object->getAttributeName(); + $data['display_name'] = $object->getDisplayName(); + $data['attribute_type'] = $object->getAttributeType(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class => false]; } - if (\array_key_exists('attribute_type', $data) && $data['attribute_type'] !== null) { - $object->setAttributeType($data['attribute_type']); - unset($data['attribute_type']); + } +} else { + class AttributeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class; } - elseif (\array_key_exists('attribute_type', $data) && $data['attribute_type'] === null) { - $object->setAttributeType(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('attribute_name', $data) && $data['attribute_name'] !== null) { + $object->setAttributeName($data['attribute_name']); + unset($data['attribute_name']); + } + elseif (\array_key_exists('attribute_name', $data) && $data['attribute_name'] === null) { + $object->setAttributeName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('attribute_type', $data) && $data['attribute_type'] !== null) { + $object->setAttributeType($data['attribute_type']); + unset($data['attribute_type']); } + elseif (\array_key_exists('attribute_type', $data) && $data['attribute_type'] === null) { + $object->setAttributeType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['attribute_name'] = $object->getAttributeName(); - $data['display_name'] = $object->getDisplayName(); - $data['attribute_type'] = $object->getAttributeType(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['attribute_name'] = $object->getAttributeName(); + $data['display_name'] = $object->getDisplayName(); + $data['attribute_type'] = $object->getAttributeType(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/AuthInfoNormalizer.php b/generated/Auth/Normalizer/AuthInfoNormalizer.php index 22c0010..7749f9c 100644 --- a/generated/Auth/Normalizer/AuthInfoNormalizer.php +++ b/generated/Auth/Normalizer/AuthInfoNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class AuthInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class AuthInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthInfo'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthInfo'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('callback_url', $data) && $data['callback_url'] !== null) { + $object->setCallbackUrl($data['callback_url']); + unset($data['callback_url']); + } + elseif (\array_key_exists('callback_url', $data) && $data['callback_url'] === null) { + $object->setCallbackUrl(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('callback_url', $data) && $data['callback_url'] !== null) { - $object->setCallbackUrl($data['callback_url']); - unset($data['callback_url']); - } - elseif (\array_key_exists('callback_url', $data) && $data['callback_url'] === null) { - $object->setCallbackUrl(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['callback_url'] = $object->getCallbackUrl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class AuthInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['callback_url'] = $object->getCallbackUrl(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('callback_url', $data) && $data['callback_url'] !== null) { + $object->setCallbackUrl($data['callback_url']); + unset($data['callback_url']); + } + elseif (\array_key_exists('callback_url', $data) && $data['callback_url'] === null) { + $object->setCallbackUrl(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['callback_url'] = $object->getCallbackUrl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthInfo' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/AuthorizationTempCodeNormalizer.php b/generated/Auth/Normalizer/AuthorizationTempCodeNormalizer.php index 02b295f..2fd2eda 100644 --- a/generated/Auth/Normalizer/AuthorizationTempCodeNormalizer.php +++ b/generated/Auth/Normalizer/AuthorizationTempCodeNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class AuthorizationTempCodeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class AuthorizationTempCodeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthorizationTempCode'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthorizationTempCode'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } + elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { - $object->setCode($data['code']); - unset($data['code']); - } - elseif (\array_key_exists('code', $data) && $data['code'] === null) { - $object->setCode(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class AuthorizationTempCodeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['code'] = $object->getCode(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } + elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthorizationTempCode' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/BasicInfoNormalizer.php b/generated/Auth/Normalizer/BasicInfoNormalizer.php index ad02fc0..0daf6a9 100644 --- a/generated/Auth/Normalizer/BasicInfoNormalizer.php +++ b/generated/Auth/Normalizer/BasicInfoNormalizer.php @@ -12,137 +12,269 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class BasicInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class BasicInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BasicInfo'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BasicInfo'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('domain_name', $data) && $data['domain_name'] !== null) { + $object->setDomainName($data['domain_name']); + unset($data['domain_name']); + } + elseif (\array_key_exists('domain_name', $data) && $data['domain_name'] === null) { + $object->setDomainName(null); + } + if (\array_key_exists('is_dns_validated', $data) && $data['is_dns_validated'] !== null) { + $object->setIsDnsValidated($data['is_dns_validated']); + unset($data['is_dns_validated']); + } + elseif (\array_key_exists('is_dns_validated', $data) && $data['is_dns_validated'] === null) { + $object->setIsDnsValidated(null); + } + if (\array_key_exists('certificate_dns_record', $data) && $data['certificate_dns_record'] !== null) { + $object->setCertificateDnsRecord($this->denormalizer->denormalize($data['certificate_dns_record'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class, 'json', $context)); + unset($data['certificate_dns_record']); + } + elseif (\array_key_exists('certificate_dns_record', $data) && $data['certificate_dns_record'] === null) { + $object->setCertificateDnsRecord(null); + } + if (\array_key_exists('cloud_front_dns_record', $data) && $data['cloud_front_dns_record'] !== null) { + $object->setCloudFrontDnsRecord($this->denormalizer->denormalize($data['cloud_front_dns_record'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class, 'json', $context)); + unset($data['cloud_front_dns_record']); + } + elseif (\array_key_exists('cloud_front_dns_record', $data) && $data['cloud_front_dns_record'] === null) { + $object->setCloudFrontDnsRecord(null); + } + if (\array_key_exists('dkim_dns_records', $data) && $data['dkim_dns_records'] !== null) { + $values = []; + foreach ($data['dkim_dns_records'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class, 'json', $context); + } + $object->setDkimDnsRecords($values); + unset($data['dkim_dns_records']); + } + elseif (\array_key_exists('dkim_dns_records', $data) && $data['dkim_dns_records'] === null) { + $object->setDkimDnsRecords(null); + } + if (\array_key_exists('default_domain_name', $data) && $data['default_domain_name'] !== null) { + $object->setDefaultDomainName($data['default_domain_name']); + unset($data['default_domain_name']); + } + elseif (\array_key_exists('default_domain_name', $data) && $data['default_domain_name'] === null) { + $object->setDefaultDomainName(null); + } + if (\array_key_exists('from_email_address', $data) && $data['from_email_address'] !== null) { + $object->setFromEmailAddress($data['from_email_address']); + unset($data['from_email_address']); + } + elseif (\array_key_exists('from_email_address', $data) && $data['from_email_address'] === null) { + $object->setFromEmailAddress(null); + } + if (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] !== null) { + $object->setReplyEmailAddress($data['reply_email_address']); + unset($data['reply_email_address']); + } + elseif (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] === null) { + $object->setReplyEmailAddress(null); + } + if (\array_key_exists('is_ses_sandbox_granted', $data) && $data['is_ses_sandbox_granted'] !== null) { + $object->setIsSesSandboxGranted($data['is_ses_sandbox_granted']); + unset($data['is_ses_sandbox_granted']); + } + elseif (\array_key_exists('is_ses_sandbox_granted', $data) && $data['is_ses_sandbox_granted'] === null) { + $object->setIsSesSandboxGranted(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('domain_name', $data) && $data['domain_name'] !== null) { - $object->setDomainName($data['domain_name']); - unset($data['domain_name']); - } - elseif (\array_key_exists('domain_name', $data) && $data['domain_name'] === null) { - $object->setDomainName(null); - } - if (\array_key_exists('is_dns_validated', $data) && $data['is_dns_validated'] !== null) { - $object->setIsDnsValidated($data['is_dns_validated']); - unset($data['is_dns_validated']); - } - elseif (\array_key_exists('is_dns_validated', $data) && $data['is_dns_validated'] === null) { - $object->setIsDnsValidated(null); - } - if (\array_key_exists('certificate_dns_record', $data) && $data['certificate_dns_record'] !== null) { - $object->setCertificateDnsRecord($this->denormalizer->denormalize($data['certificate_dns_record'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord', 'json', $context)); - unset($data['certificate_dns_record']); - } - elseif (\array_key_exists('certificate_dns_record', $data) && $data['certificate_dns_record'] === null) { - $object->setCertificateDnsRecord(null); - } - if (\array_key_exists('cloud_front_dns_record', $data) && $data['cloud_front_dns_record'] !== null) { - $object->setCloudFrontDnsRecord($this->denormalizer->denormalize($data['cloud_front_dns_record'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord', 'json', $context)); - unset($data['cloud_front_dns_record']); - } - elseif (\array_key_exists('cloud_front_dns_record', $data) && $data['cloud_front_dns_record'] === null) { - $object->setCloudFrontDnsRecord(null); - } - if (\array_key_exists('dkim_dns_records', $data) && $data['dkim_dns_records'] !== null) { - $values = array(); - foreach ($data['dkim_dns_records'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['domain_name'] = $object->getDomainName(); + $data['is_dns_validated'] = $object->getIsDnsValidated(); + $data['certificate_dns_record'] = $this->normalizer->normalize($object->getCertificateDnsRecord(), 'json', $context); + $data['cloud_front_dns_record'] = $this->normalizer->normalize($object->getCloudFrontDnsRecord(), 'json', $context); + $values = []; + foreach ($object->getDkimDnsRecords() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setDkimDnsRecords($values); - unset($data['dkim_dns_records']); - } - elseif (\array_key_exists('dkim_dns_records', $data) && $data['dkim_dns_records'] === null) { - $object->setDkimDnsRecords(null); - } - if (\array_key_exists('default_domain_name', $data) && $data['default_domain_name'] !== null) { - $object->setDefaultDomainName($data['default_domain_name']); - unset($data['default_domain_name']); - } - elseif (\array_key_exists('default_domain_name', $data) && $data['default_domain_name'] === null) { - $object->setDefaultDomainName(null); - } - if (\array_key_exists('from_email_address', $data) && $data['from_email_address'] !== null) { - $object->setFromEmailAddress($data['from_email_address']); - unset($data['from_email_address']); - } - elseif (\array_key_exists('from_email_address', $data) && $data['from_email_address'] === null) { - $object->setFromEmailAddress(null); - } - if (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] !== null) { - $object->setReplyEmailAddress($data['reply_email_address']); - unset($data['reply_email_address']); + $data['dkim_dns_records'] = $values; + $data['default_domain_name'] = $object->getDefaultDomainName(); + $data['from_email_address'] = $object->getFromEmailAddress(); + $data['reply_email_address'] = $object->getReplyEmailAddress(); + $data['is_ses_sandbox_granted'] = $object->getIsSesSandboxGranted(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; } - elseif (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] === null) { - $object->setReplyEmailAddress(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class => false]; } - if (\array_key_exists('is_ses_sandbox_granted', $data) && $data['is_ses_sandbox_granted'] !== null) { - $object->setIsSesSandboxGranted($data['is_ses_sandbox_granted']); - unset($data['is_ses_sandbox_granted']); + } +} else { + class BasicInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class; } - elseif (\array_key_exists('is_ses_sandbox_granted', $data) && $data['is_ses_sandbox_granted'] === null) { - $object->setIsSesSandboxGranted(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class; } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('domain_name', $data) && $data['domain_name'] !== null) { + $object->setDomainName($data['domain_name']); + unset($data['domain_name']); + } + elseif (\array_key_exists('domain_name', $data) && $data['domain_name'] === null) { + $object->setDomainName(null); + } + if (\array_key_exists('is_dns_validated', $data) && $data['is_dns_validated'] !== null) { + $object->setIsDnsValidated($data['is_dns_validated']); + unset($data['is_dns_validated']); + } + elseif (\array_key_exists('is_dns_validated', $data) && $data['is_dns_validated'] === null) { + $object->setIsDnsValidated(null); + } + if (\array_key_exists('certificate_dns_record', $data) && $data['certificate_dns_record'] !== null) { + $object->setCertificateDnsRecord($this->denormalizer->denormalize($data['certificate_dns_record'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class, 'json', $context)); + unset($data['certificate_dns_record']); + } + elseif (\array_key_exists('certificate_dns_record', $data) && $data['certificate_dns_record'] === null) { + $object->setCertificateDnsRecord(null); + } + if (\array_key_exists('cloud_front_dns_record', $data) && $data['cloud_front_dns_record'] !== null) { + $object->setCloudFrontDnsRecord($this->denormalizer->denormalize($data['cloud_front_dns_record'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class, 'json', $context)); + unset($data['cloud_front_dns_record']); + } + elseif (\array_key_exists('cloud_front_dns_record', $data) && $data['cloud_front_dns_record'] === null) { + $object->setCloudFrontDnsRecord(null); + } + if (\array_key_exists('dkim_dns_records', $data) && $data['dkim_dns_records'] !== null) { + $values = []; + foreach ($data['dkim_dns_records'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class, 'json', $context); + } + $object->setDkimDnsRecords($values); + unset($data['dkim_dns_records']); + } + elseif (\array_key_exists('dkim_dns_records', $data) && $data['dkim_dns_records'] === null) { + $object->setDkimDnsRecords(null); + } + if (\array_key_exists('default_domain_name', $data) && $data['default_domain_name'] !== null) { + $object->setDefaultDomainName($data['default_domain_name']); + unset($data['default_domain_name']); + } + elseif (\array_key_exists('default_domain_name', $data) && $data['default_domain_name'] === null) { + $object->setDefaultDomainName(null); + } + if (\array_key_exists('from_email_address', $data) && $data['from_email_address'] !== null) { + $object->setFromEmailAddress($data['from_email_address']); + unset($data['from_email_address']); + } + elseif (\array_key_exists('from_email_address', $data) && $data['from_email_address'] === null) { + $object->setFromEmailAddress(null); + } + if (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] !== null) { + $object->setReplyEmailAddress($data['reply_email_address']); + unset($data['reply_email_address']); + } + elseif (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] === null) { + $object->setReplyEmailAddress(null); + } + if (\array_key_exists('is_ses_sandbox_granted', $data) && $data['is_ses_sandbox_granted'] !== null) { + $object->setIsSesSandboxGranted($data['is_ses_sandbox_granted']); + unset($data['is_ses_sandbox_granted']); + } + elseif (\array_key_exists('is_ses_sandbox_granted', $data) && $data['is_ses_sandbox_granted'] === null) { + $object->setIsSesSandboxGranted(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['domain_name'] = $object->getDomainName(); - $data['is_dns_validated'] = $object->getIsDnsValidated(); - $data['certificate_dns_record'] = $this->normalizer->normalize($object->getCertificateDnsRecord(), 'json', $context); - $data['cloud_front_dns_record'] = $this->normalizer->normalize($object->getCloudFrontDnsRecord(), 'json', $context); - $values = array(); - foreach ($object->getDkimDnsRecords() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['dkim_dns_records'] = $values; - $data['default_domain_name'] = $object->getDefaultDomainName(); - $data['from_email_address'] = $object->getFromEmailAddress(); - $data['reply_email_address'] = $object->getReplyEmailAddress(); - $data['is_ses_sandbox_granted'] = $object->getIsSesSandboxGranted(); - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['domain_name'] = $object->getDomainName(); + $data['is_dns_validated'] = $object->getIsDnsValidated(); + $data['certificate_dns_record'] = $this->normalizer->normalize($object->getCertificateDnsRecord(), 'json', $context); + $data['cloud_front_dns_record'] = $this->normalizer->normalize($object->getCloudFrontDnsRecord(), 'json', $context); + $values = []; + foreach ($object->getDkimDnsRecords() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } + $data['dkim_dns_records'] = $values; + $data['default_domain_name'] = $object->getDefaultDomainName(); + $data['from_email_address'] = $object->getFromEmailAddress(); + $data['reply_email_address'] = $object->getReplyEmailAddress(); + $data['is_ses_sandbox_granted'] = $object->getIsSesSandboxGranted(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BasicInfo' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/BillingAddressNormalizer.php b/generated/Auth/Normalizer/BillingAddressNormalizer.php index 961d3cc..64b6350 100644 --- a/generated/Auth/Normalizer/BillingAddressNormalizer.php +++ b/generated/Auth/Normalizer/BillingAddressNormalizer.php @@ -12,107 +12,209 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class BillingAddressNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class BillingAddressNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingAddress'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingAddress'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('street', $data) && $data['street'] !== null) { + $object->setStreet($data['street']); + unset($data['street']); + } + elseif (\array_key_exists('street', $data) && $data['street'] === null) { + $object->setStreet(null); + } + if (\array_key_exists('city', $data) && $data['city'] !== null) { + $object->setCity($data['city']); + unset($data['city']); + } + elseif (\array_key_exists('city', $data) && $data['city'] === null) { + $object->setCity(null); + } + if (\array_key_exists('state', $data) && $data['state'] !== null) { + $object->setState($data['state']); + unset($data['state']); + } + elseif (\array_key_exists('state', $data) && $data['state'] === null) { + $object->setState(null); + } + if (\array_key_exists('country', $data) && $data['country'] !== null) { + $object->setCountry($data['country']); + unset($data['country']); + } + elseif (\array_key_exists('country', $data) && $data['country'] === null) { + $object->setCountry(null); + } + if (\array_key_exists('additional_address_info', $data) && $data['additional_address_info'] !== null) { + $object->setAdditionalAddressInfo($data['additional_address_info']); + unset($data['additional_address_info']); + } + elseif (\array_key_exists('additional_address_info', $data) && $data['additional_address_info'] === null) { + $object->setAdditionalAddressInfo(null); + } + if (\array_key_exists('postal_code', $data) && $data['postal_code'] !== null) { + $object->setPostalCode($data['postal_code']); + unset($data['postal_code']); + } + elseif (\array_key_exists('postal_code', $data) && $data['postal_code'] === null) { + $object->setPostalCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('street', $data) && $data['street'] !== null) { - $object->setStreet($data['street']); - unset($data['street']); - } - elseif (\array_key_exists('street', $data) && $data['street'] === null) { - $object->setStreet(null); - } - if (\array_key_exists('city', $data) && $data['city'] !== null) { - $object->setCity($data['city']); - unset($data['city']); - } - elseif (\array_key_exists('city', $data) && $data['city'] === null) { - $object->setCity(null); - } - if (\array_key_exists('state', $data) && $data['state'] !== null) { - $object->setState($data['state']); - unset($data['state']); - } - elseif (\array_key_exists('state', $data) && $data['state'] === null) { - $object->setState(null); - } - if (\array_key_exists('country', $data) && $data['country'] !== null) { - $object->setCountry($data['country']); - unset($data['country']); - } - elseif (\array_key_exists('country', $data) && $data['country'] === null) { - $object->setCountry(null); - } - if (\array_key_exists('additional_address_info', $data) && $data['additional_address_info'] !== null) { - $object->setAdditionalAddressInfo($data['additional_address_info']); - unset($data['additional_address_info']); - } - elseif (\array_key_exists('additional_address_info', $data) && $data['additional_address_info'] === null) { - $object->setAdditionalAddressInfo(null); - } - if (\array_key_exists('postal_code', $data) && $data['postal_code'] !== null) { - $object->setPostalCode($data['postal_code']); - unset($data['postal_code']); - } - elseif (\array_key_exists('postal_code', $data) && $data['postal_code'] === null) { - $object->setPostalCode(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['street'] = $object->getStreet(); + $data['city'] = $object->getCity(); + $data['state'] = $object->getState(); + $data['country'] = $object->getCountry(); + if ($object->isInitialized('additionalAddressInfo') && null !== $object->getAdditionalAddressInfo()) { + $data['additional_address_info'] = $object->getAdditionalAddressInfo(); + } + $data['postal_code'] = $object->getPostalCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class BillingAddressNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['street'] = $object->getStreet(); - $data['city'] = $object->getCity(); - $data['state'] = $object->getState(); - $data['country'] = $object->getCountry(); - if ($object->isInitialized('additionalAddressInfo') && null !== $object->getAdditionalAddressInfo()) { - $data['additional_address_info'] = $object->getAdditionalAddressInfo(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('street', $data) && $data['street'] !== null) { + $object->setStreet($data['street']); + unset($data['street']); + } + elseif (\array_key_exists('street', $data) && $data['street'] === null) { + $object->setStreet(null); + } + if (\array_key_exists('city', $data) && $data['city'] !== null) { + $object->setCity($data['city']); + unset($data['city']); + } + elseif (\array_key_exists('city', $data) && $data['city'] === null) { + $object->setCity(null); + } + if (\array_key_exists('state', $data) && $data['state'] !== null) { + $object->setState($data['state']); + unset($data['state']); + } + elseif (\array_key_exists('state', $data) && $data['state'] === null) { + $object->setState(null); + } + if (\array_key_exists('country', $data) && $data['country'] !== null) { + $object->setCountry($data['country']); + unset($data['country']); + } + elseif (\array_key_exists('country', $data) && $data['country'] === null) { + $object->setCountry(null); + } + if (\array_key_exists('additional_address_info', $data) && $data['additional_address_info'] !== null) { + $object->setAdditionalAddressInfo($data['additional_address_info']); + unset($data['additional_address_info']); + } + elseif (\array_key_exists('additional_address_info', $data) && $data['additional_address_info'] === null) { + $object->setAdditionalAddressInfo(null); + } + if (\array_key_exists('postal_code', $data) && $data['postal_code'] !== null) { + $object->setPostalCode($data['postal_code']); + unset($data['postal_code']); + } + elseif (\array_key_exists('postal_code', $data) && $data['postal_code'] === null) { + $object->setPostalCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - $data['postal_code'] = $object->getPostalCode(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['street'] = $object->getStreet(); + $data['city'] = $object->getCity(); + $data['state'] = $object->getState(); + $data['country'] = $object->getCountry(); + if ($object->isInitialized('additionalAddressInfo') && null !== $object->getAdditionalAddressInfo()) { + $data['additional_address_info'] = $object->getAdditionalAddressInfo(); + } + $data['postal_code'] = $object->getPostalCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingAddress' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/BillingInfoNormalizer.php b/generated/Auth/Normalizer/BillingInfoNormalizer.php index e07f2e1..8c8e1a9 100644 --- a/generated/Auth/Normalizer/BillingInfoNormalizer.php +++ b/generated/Auth/Normalizer/BillingInfoNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class BillingInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class BillingInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('address', $data) && $data['address'] !== null) { + $object->setAddress($this->denormalizer->denormalize($data['address'], \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class, 'json', $context)); + unset($data['address']); + } + elseif (\array_key_exists('address', $data) && $data['address'] === null) { + $object->setAddress(null); + } + if (\array_key_exists('invoice_language', $data) && $data['invoice_language'] !== null) { + $object->setInvoiceLanguage($data['invoice_language']); + unset($data['invoice_language']); + } + elseif (\array_key_exists('invoice_language', $data) && $data['invoice_language'] === null) { + $object->setInvoiceLanguage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('address', $data) && $data['address'] !== null) { - $object->setAddress($this->denormalizer->denormalize($data['address'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingAddress', 'json', $context)); - unset($data['address']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['address'] = $this->normalizer->normalize($object->getAddress(), 'json', $context); + $data['invoice_language'] = $object->getInvoiceLanguage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('address', $data) && $data['address'] === null) { - $object->setAddress(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class => false]; } - if (\array_key_exists('invoice_language', $data) && $data['invoice_language'] !== null) { - $object->setInvoiceLanguage($data['invoice_language']); - unset($data['invoice_language']); + } +} else { + class BillingInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class; } - elseif (\array_key_exists('invoice_language', $data) && $data['invoice_language'] === null) { - $object->setInvoiceLanguage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('address', $data) && $data['address'] !== null) { + $object->setAddress($this->denormalizer->denormalize($data['address'], \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class, 'json', $context)); + unset($data['address']); + } + elseif (\array_key_exists('address', $data) && $data['address'] === null) { + $object->setAddress(null); + } + if (\array_key_exists('invoice_language', $data) && $data['invoice_language'] !== null) { + $object->setInvoiceLanguage($data['invoice_language']); + unset($data['invoice_language']); } + elseif (\array_key_exists('invoice_language', $data) && $data['invoice_language'] === null) { + $object->setInvoiceLanguage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['name'] = $object->getName(); - $data['address'] = $this->normalizer->normalize($object->getAddress(), 'json', $context); - $data['invoice_language'] = $object->getInvoiceLanguage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['address'] = $this->normalizer->normalize($object->getAddress(), 'json', $context); + $data['invoice_language'] = $object->getInvoiceLanguage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ClientSecretNormalizer.php b/generated/Auth/Normalizer/ClientSecretNormalizer.php index 1f7db6d..f5a0491 100644 --- a/generated/Auth/Normalizer/ClientSecretNormalizer.php +++ b/generated/Auth/Normalizer/ClientSecretNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ClientSecretNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ClientSecretNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ClientSecret'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ClientSecret'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('client_secret', $data) && $data['client_secret'] !== null) { + $object->setClientSecret($data['client_secret']); + unset($data['client_secret']); + } + elseif (\array_key_exists('client_secret', $data) && $data['client_secret'] === null) { + $object->setClientSecret(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('client_secret', $data) && $data['client_secret'] !== null) { - $object->setClientSecret($data['client_secret']); - unset($data['client_secret']); - } - elseif (\array_key_exists('client_secret', $data) && $data['client_secret'] === null) { - $object->setClientSecret(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['client_secret'] = $object->getClientSecret(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class ClientSecretNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['client_secret'] = $object->getClientSecret(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('client_secret', $data) && $data['client_secret'] !== null) { + $object->setClientSecret($data['client_secret']); + unset($data['client_secret']); + } + elseif (\array_key_exists('client_secret', $data) && $data['client_secret'] === null) { + $object->setClientSecret(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['client_secret'] = $object->getClientSecret(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ClientSecret' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CloudFormationLaunchStackLinkNormalizer.php b/generated/Auth/Normalizer/CloudFormationLaunchStackLinkNormalizer.php new file mode 100644 index 0000000..c358f15 --- /dev/null +++ b/generated/Auth/Normalizer/CloudFormationLaunchStackLinkNormalizer.php @@ -0,0 +1,136 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CloudFormationLaunchStackLinkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('link', $data) && $data['link'] !== null) { + $object->setLink($data['link']); + unset($data['link']); + } + elseif (\array_key_exists('link', $data) && $data['link'] === null) { + $object->setLink(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['link'] = $object->getLink(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class => false]; + } + } +} else { + class CloudFormationLaunchStackLinkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('link', $data) && $data['link'] !== null) { + $object->setLink($data['link']); + unset($data['link']); + } + elseif (\array_key_exists('link', $data) && $data['link'] === null) { + $object->setLink(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['link'] = $object->getLink(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class => false]; + } + } +} \ No newline at end of file diff --git a/generated/Auth/Normalizer/ConfirmEmailUpdateParamNormalizer.php b/generated/Auth/Normalizer/ConfirmEmailUpdateParamNormalizer.php index 8873eae..acdcb8d 100644 --- a/generated/Auth/Normalizer/ConfirmEmailUpdateParamNormalizer.php +++ b/generated/Auth/Normalizer/ConfirmEmailUpdateParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ConfirmEmailUpdateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ConfirmEmailUpdateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmEmailUpdateParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmEmailUpdateParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } + elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { - $object->setCode($data['code']); - unset($data['code']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['code'] = $object->getCode(); + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('code', $data) && $data['code'] === null) { - $object->setCode(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class => false]; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + } +} else { + class ConfirmEmailUpdateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } + elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['code'] = $object->getCode(); - $data['access_token'] = $object->getAccessToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['code'] = $object->getCode(); + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmEmailUpdateParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ConfirmExternalUserLinkParamNormalizer.php b/generated/Auth/Normalizer/ConfirmExternalUserLinkParamNormalizer.php index 186fcb7..e571fce 100644 --- a/generated/Auth/Normalizer/ConfirmExternalUserLinkParamNormalizer.php +++ b/generated/Auth/Normalizer/ConfirmExternalUserLinkParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ConfirmExternalUserLinkParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ConfirmExternalUserLinkParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmExternalUserLinkParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmExternalUserLinkParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } + elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class => false]; } - if (\array_key_exists('code', $data) && $data['code'] !== null) { - $object->setCode($data['code']); - unset($data['code']); + } +} else { + class ConfirmExternalUserLinkParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class; } - elseif (\array_key_exists('code', $data) && $data['code'] === null) { - $object->setCode(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } + elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['access_token'] = $object->getAccessToken(); - $data['code'] = $object->getCode(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmExternalUserLinkParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ConfirmSignUpWithAwsMarketplaceParamNormalizer.php b/generated/Auth/Normalizer/ConfirmSignUpWithAwsMarketplaceParamNormalizer.php index dd93066..d01dd34 100644 --- a/generated/Auth/Normalizer/ConfirmSignUpWithAwsMarketplaceParamNormalizer.php +++ b/generated/Auth/Normalizer/ConfirmSignUpWithAwsMarketplaceParamNormalizer.php @@ -12,83 +12,161 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ConfirmSignUpWithAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ConfirmSignUpWithAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmSignUpWithAwsMarketplaceParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmSignUpWithAwsMarketplaceParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_name', $data) && $data['tenant_name'] !== null) { + $object->setTenantName($data['tenant_name']); + unset($data['tenant_name']); + } + elseif (\array_key_exists('tenant_name', $data) && $data['tenant_name'] === null) { + $object->setTenantName(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('tenant_name', $data) && $data['tenant_name'] !== null) { - $object->setTenantName($data['tenant_name']); - unset($data['tenant_name']); - } - elseif (\array_key_exists('tenant_name', $data) && $data['tenant_name'] === null) { - $object->setTenantName(null); - } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('tenantName') && null !== $object->getTenantName()) { + $data['tenant_name'] = $object->getTenantName(); + } + $data['access_token'] = $object->getAccessToken(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class => false]; } - if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { - $object->setRegistrationToken($data['registration_token']); - unset($data['registration_token']); + } +} else { + class ConfirmSignUpWithAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class; } - elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { - $object->setRegistrationToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_name', $data) && $data['tenant_name'] !== null) { + $object->setTenantName($data['tenant_name']); + unset($data['tenant_name']); + } + elseif (\array_key_exists('tenant_name', $data) && $data['tenant_name'] === null) { + $object->setTenantName(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - if ($object->isInitialized('tenantName') && null !== $object->getTenantName()) { - $data['tenant_name'] = $object->getTenantName(); - } - $data['access_token'] = $object->getAccessToken(); - $data['registration_token'] = $object->getRegistrationToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('tenantName') && null !== $object->getTenantName()) { + $data['tenant_name'] = $object->getTenantName(); } + $data['access_token'] = $object->getAccessToken(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmSignUpWithAwsMarketplaceParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CreateSaasUserParamNormalizer.php b/generated/Auth/Normalizer/CreateSaasUserParamNormalizer.php index a421ae9..7807959 100644 --- a/generated/Auth/Normalizer/CreateSaasUserParamNormalizer.php +++ b/generated/Auth/Normalizer/CreateSaasUserParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateSaasUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateSaasUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSaasUserParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSaasUserParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('password', $data) && $data['password'] !== null) { + $object->setPassword($data['password']); + unset($data['password']); + } + elseif (\array_key_exists('password', $data) && $data['password'] === null) { + $object->setPassword(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + $data['password'] = $object->getPassword(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class => false]; } - if (\array_key_exists('password', $data) && $data['password'] !== null) { - $object->setPassword($data['password']); - unset($data['password']); + } +} else { + class CreateSaasUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class; } - elseif (\array_key_exists('password', $data) && $data['password'] === null) { - $object->setPassword(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('password', $data) && $data['password'] !== null) { + $object->setPassword($data['password']); + unset($data['password']); + } + elseif (\array_key_exists('password', $data) && $data['password'] === null) { + $object->setPassword(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['email'] = $object->getEmail(); - $data['password'] = $object->getPassword(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + $data['password'] = $object->getPassword(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSaasUserParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CreateSecretCodeParamNormalizer.php b/generated/Auth/Normalizer/CreateSecretCodeParamNormalizer.php index 48ae10e..ad50eb7 100644 --- a/generated/Auth/Normalizer/CreateSecretCodeParamNormalizer.php +++ b/generated/Auth/Normalizer/CreateSecretCodeParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateSecretCodeParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateSecretCodeParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSecretCodeParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSecretCodeParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); - } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CreateSecretCodeParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['access_token'] = $object->getAccessToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSecretCodeParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CreateTenantInvitationParamEnvsItemNormalizer.php b/generated/Auth/Normalizer/CreateTenantInvitationParamEnvsItemNormalizer.php index 885c131..e7487dc 100644 --- a/generated/Auth/Normalizer/CreateTenantInvitationParamEnvsItemNormalizer.php +++ b/generated/Auth/Normalizer/CreateTenantInvitationParamEnvsItemNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateTenantInvitationParamEnvsItemNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateTenantInvitationParamEnvsItemNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParamEnvsItem'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParamEnvsItem'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('role_names', $data) && $data['role_names'] !== null) { + $values = []; + foreach ($data['role_names'] as $value) { + $values[] = $value; + } + $object->setRoleNames($values); + unset($data['role_names']); + } + elseif (\array_key_exists('role_names', $data) && $data['role_names'] === null) { + $object->setRoleNames(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('role_names', $data) && $data['role_names'] !== null) { - $values = array(); - foreach ($data['role_names'] as $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $values = []; + foreach ($object->getRoleNames() as $value) { $values[] = $value; } - $object->setRoleNames($values); - unset($data['role_names']); - } - elseif (\array_key_exists('role_names', $data) && $data['role_names'] === null) { - $object->setRoleNames(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['role_names'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CreateTenantInvitationParamEnvsItemNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $values = array(); - foreach ($object->getRoleNames() as $value) { - $values[] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class; } - $data['role_names'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('role_names', $data) && $data['role_names'] !== null) { + $values = []; + foreach ($data['role_names'] as $value) { + $values[] = $value; + } + $object->setRoleNames($values); + unset($data['role_names']); + } + elseif (\array_key_exists('role_names', $data) && $data['role_names'] === null) { + $object->setRoleNames(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $values = []; + foreach ($object->getRoleNames() as $value) { + $values[] = $value; + } + $data['role_names'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParamEnvsItem' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CreateTenantInvitationParamNormalizer.php b/generated/Auth/Normalizer/CreateTenantInvitationParamNormalizer.php index 6cfef27..05351d8 100644 --- a/generated/Auth/Normalizer/CreateTenantInvitationParamNormalizer.php +++ b/generated/Auth/Normalizer/CreateTenantInvitationParamNormalizer.php @@ -12,89 +12,173 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateTenantInvitationParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateTenantInvitationParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class, 'json', $context); + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + $data['access_token'] = $object->getAccessToken(); + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['envs'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class => false]; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + } +} else { + class CreateTenantInvitationParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class; } - if (\array_key_exists('envs', $data) && $data['envs'] !== null) { - $values = array(); - foreach ($data['envs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParamEnvsItem', 'json', $context); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } - $object->setEnvs($values); - unset($data['envs']); - } - elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { - $object->setEnvs(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class, 'json', $context); + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['email'] = $object->getEmail(); - $data['access_token'] = $object->getAccessToken(); - $values = array(); - foreach ($object->getEnvs() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['envs'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + $data['access_token'] = $object->getAccessToken(); + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } + $data['envs'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CreateTenantUserParamNormalizer.php b/generated/Auth/Normalizer/CreateTenantUserParamNormalizer.php index 076f92f..550292a 100644 --- a/generated/Auth/Normalizer/CreateTenantUserParamNormalizer.php +++ b/generated/Auth/Normalizer/CreateTenantUserParamNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateTenantUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateTenantUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['attributes'] as $key => $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } - $object->setAttributes($values); - unset($data['attributes']); - } - elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { - $object->setAttributes(null); - } - foreach ($data as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_1; + $data['attributes'] = $values; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CreateTenantUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['email'] = $object->getEmail(); - $values = array(); - foreach ($object->getAttributes() as $key => $value) { - $values[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class; } - $data['attributes'] = $values; - foreach ($object as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { + $values[$key] = $value; + } + $data['attributes'] = $values; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CreateTenantUserRolesParamNormalizer.php b/generated/Auth/Normalizer/CreateTenantUserRolesParamNormalizer.php index 6cc1401..795fd79 100644 --- a/generated/Auth/Normalizer/CreateTenantUserRolesParamNormalizer.php +++ b/generated/Auth/Normalizer/CreateTenantUserRolesParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateTenantUserRolesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateTenantUserRolesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserRolesParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserRolesParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('role_names', $data) && $data['role_names'] !== null) { + $values = []; + foreach ($data['role_names'] as $value) { + $values[] = $value; + } + $object->setRoleNames($values); + unset($data['role_names']); + } + elseif (\array_key_exists('role_names', $data) && $data['role_names'] === null) { + $object->setRoleNames(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('role_names', $data) && $data['role_names'] !== null) { - $values = array(); - foreach ($data['role_names'] as $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getRoleNames() as $value) { $values[] = $value; } - $object->setRoleNames($values); - unset($data['role_names']); - } - elseif (\array_key_exists('role_names', $data) && $data['role_names'] === null) { - $object->setRoleNames(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['role_names'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CreateTenantUserRolesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getRoleNames() as $value) { - $values[] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class; } - $data['role_names'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('role_names', $data) && $data['role_names'] !== null) { + $values = []; + foreach ($data['role_names'] as $value) { + $values[] = $value; + } + $object->setRoleNames($values); + unset($data['role_names']); + } + elseif (\array_key_exists('role_names', $data) && $data['role_names'] === null) { + $object->setRoleNames(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getRoleNames() as $value) { + $values[] = $value; + } + $data['role_names'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserRolesParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CredentialsNormalizer.php b/generated/Auth/Normalizer/CredentialsNormalizer.php index c997e7c..2c96b70 100644 --- a/generated/Auth/Normalizer/CredentialsNormalizer.php +++ b/generated/Auth/Normalizer/CredentialsNormalizer.php @@ -12,83 +12,161 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CredentialsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CredentialsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Credentials'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Credentials'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id_token', $data) && $data['id_token'] !== null) { + $object->setIdToken($data['id_token']); + unset($data['id_token']); + } + elseif (\array_key_exists('id_token', $data) && $data['id_token'] === null) { + $object->setIdToken(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('refresh_token', $data) && $data['refresh_token'] !== null) { + $object->setRefreshToken($data['refresh_token']); + unset($data['refresh_token']); + } + elseif (\array_key_exists('refresh_token', $data) && $data['refresh_token'] === null) { + $object->setRefreshToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id_token', $data) && $data['id_token'] !== null) { - $object->setIdToken($data['id_token']); - unset($data['id_token']); - } - elseif (\array_key_exists('id_token', $data) && $data['id_token'] === null) { - $object->setIdToken(null); - } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id_token'] = $object->getIdToken(); + $data['access_token'] = $object->getAccessToken(); + if ($object->isInitialized('refreshToken') && null !== $object->getRefreshToken()) { + $data['refresh_token'] = $object->getRefreshToken(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class => false]; } - if (\array_key_exists('refresh_token', $data) && $data['refresh_token'] !== null) { - $object->setRefreshToken($data['refresh_token']); - unset($data['refresh_token']); + } +} else { + class CredentialsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class; } - elseif (\array_key_exists('refresh_token', $data) && $data['refresh_token'] === null) { - $object->setRefreshToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id_token', $data) && $data['id_token'] !== null) { + $object->setIdToken($data['id_token']); + unset($data['id_token']); + } + elseif (\array_key_exists('id_token', $data) && $data['id_token'] === null) { + $object->setIdToken(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('refresh_token', $data) && $data['refresh_token'] !== null) { + $object->setRefreshToken($data['refresh_token']); + unset($data['refresh_token']); + } + elseif (\array_key_exists('refresh_token', $data) && $data['refresh_token'] === null) { + $object->setRefreshToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['id_token'] = $object->getIdToken(); - $data['access_token'] = $object->getAccessToken(); - if ($object->isInitialized('refreshToken') && null !== $object->getRefreshToken()) { - $data['refresh_token'] = $object->getRefreshToken(); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id_token'] = $object->getIdToken(); + $data['access_token'] = $object->getAccessToken(); + if ($object->isInitialized('refreshToken') && null !== $object->getRefreshToken()) { + $data['refresh_token'] = $object->getRefreshToken(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Credentials' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CustomizePagePropsNormalizer.php b/generated/Auth/Normalizer/CustomizePagePropsNormalizer.php index c8594fc..934bb62 100644 --- a/generated/Auth/Normalizer/CustomizePagePropsNormalizer.php +++ b/generated/Auth/Normalizer/CustomizePagePropsNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CustomizePagePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CustomizePagePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('html_contents', $data) && $data['html_contents'] !== null) { + $object->setHtmlContents($data['html_contents']); + unset($data['html_contents']); + } + elseif (\array_key_exists('html_contents', $data) && $data['html_contents'] === null) { + $object->setHtmlContents(null); + } + if (\array_key_exists('is_terms_of_service', $data) && $data['is_terms_of_service'] !== null) { + $object->setIsTermsOfService($data['is_terms_of_service']); + unset($data['is_terms_of_service']); + } + elseif (\array_key_exists('is_terms_of_service', $data) && $data['is_terms_of_service'] === null) { + $object->setIsTermsOfService(null); + } + if (\array_key_exists('is_privacy_policy', $data) && $data['is_privacy_policy'] !== null) { + $object->setIsPrivacyPolicy($data['is_privacy_policy']); + unset($data['is_privacy_policy']); + } + elseif (\array_key_exists('is_privacy_policy', $data) && $data['is_privacy_policy'] === null) { + $object->setIsPrivacyPolicy(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('html_contents', $data) && $data['html_contents'] !== null) { - $object->setHtmlContents($data['html_contents']); - unset($data['html_contents']); - } - elseif (\array_key_exists('html_contents', $data) && $data['html_contents'] === null) { - $object->setHtmlContents(null); - } - if (\array_key_exists('is_terms_of_service', $data) && $data['is_terms_of_service'] !== null) { - $object->setIsTermsOfService($data['is_terms_of_service']); - unset($data['is_terms_of_service']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['html_contents'] = $object->getHtmlContents(); + $data['is_terms_of_service'] = $object->getIsTermsOfService(); + $data['is_privacy_policy'] = $object->getIsPrivacyPolicy(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('is_terms_of_service', $data) && $data['is_terms_of_service'] === null) { - $object->setIsTermsOfService(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class => false]; } - if (\array_key_exists('is_privacy_policy', $data) && $data['is_privacy_policy'] !== null) { - $object->setIsPrivacyPolicy($data['is_privacy_policy']); - unset($data['is_privacy_policy']); + } +} else { + class CustomizePagePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class; } - elseif (\array_key_exists('is_privacy_policy', $data) && $data['is_privacy_policy'] === null) { - $object->setIsPrivacyPolicy(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('html_contents', $data) && $data['html_contents'] !== null) { + $object->setHtmlContents($data['html_contents']); + unset($data['html_contents']); + } + elseif (\array_key_exists('html_contents', $data) && $data['html_contents'] === null) { + $object->setHtmlContents(null); + } + if (\array_key_exists('is_terms_of_service', $data) && $data['is_terms_of_service'] !== null) { + $object->setIsTermsOfService($data['is_terms_of_service']); + unset($data['is_terms_of_service']); + } + elseif (\array_key_exists('is_terms_of_service', $data) && $data['is_terms_of_service'] === null) { + $object->setIsTermsOfService(null); + } + if (\array_key_exists('is_privacy_policy', $data) && $data['is_privacy_policy'] !== null) { + $object->setIsPrivacyPolicy($data['is_privacy_policy']); + unset($data['is_privacy_policy']); } + elseif (\array_key_exists('is_privacy_policy', $data) && $data['is_privacy_policy'] === null) { + $object->setIsPrivacyPolicy(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['html_contents'] = $object->getHtmlContents(); - $data['is_terms_of_service'] = $object->getIsTermsOfService(); - $data['is_privacy_policy'] = $object->getIsPrivacyPolicy(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['html_contents'] = $object->getHtmlContents(); + $data['is_terms_of_service'] = $object->getIsTermsOfService(); + $data['is_privacy_policy'] = $object->getIsPrivacyPolicy(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CustomizePageSettingsNormalizer.php b/generated/Auth/Normalizer/CustomizePageSettingsNormalizer.php index f39bf24..1b0a217 100644 --- a/generated/Auth/Normalizer/CustomizePageSettingsNormalizer.php +++ b/generated/Auth/Normalizer/CustomizePageSettingsNormalizer.php @@ -12,105 +12,205 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CustomizePageSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CustomizePageSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettings'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettings'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('icon', $data) && $data['icon'] !== null) { + $object->setIcon($data['icon']); + unset($data['icon']); + } + elseif (\array_key_exists('icon', $data) && $data['icon'] === null) { + $object->setIcon(null); + } + if (\array_key_exists('favicon', $data) && $data['favicon'] !== null) { + $object->setFavicon($data['favicon']); + unset($data['favicon']); + } + elseif (\array_key_exists('favicon', $data) && $data['favicon'] === null) { + $object->setFavicon(null); + } + if (\array_key_exists('title', $data) && $data['title'] !== null) { + $object->setTitle($data['title']); + unset($data['title']); + } + elseif (\array_key_exists('title', $data) && $data['title'] === null) { + $object->setTitle(null); + } + if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { + $object->setTermsOfServiceUrl($data['terms_of_service_url']); + unset($data['terms_of_service_url']); + } + elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { + $object->setTermsOfServiceUrl(null); + } + if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { + $object->setPrivacyPolicyUrl($data['privacy_policy_url']); + unset($data['privacy_policy_url']); + } + elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { + $object->setPrivacyPolicyUrl(null); + } + if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { + $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); + unset($data['google_tag_manager_container_id']); + } + elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { + $object->setGoogleTagManagerContainerId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('icon', $data) && $data['icon'] !== null) { - $object->setIcon($data['icon']); - unset($data['icon']); - } - elseif (\array_key_exists('icon', $data) && $data['icon'] === null) { - $object->setIcon(null); - } - if (\array_key_exists('favicon', $data) && $data['favicon'] !== null) { - $object->setFavicon($data['favicon']); - unset($data['favicon']); - } - elseif (\array_key_exists('favicon', $data) && $data['favicon'] === null) { - $object->setFavicon(null); - } - if (\array_key_exists('title', $data) && $data['title'] !== null) { - $object->setTitle($data['title']); - unset($data['title']); - } - elseif (\array_key_exists('title', $data) && $data['title'] === null) { - $object->setTitle(null); - } - if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { - $object->setTermsOfServiceUrl($data['terms_of_service_url']); - unset($data['terms_of_service_url']); - } - elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { - $object->setTermsOfServiceUrl(null); - } - if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { - $object->setPrivacyPolicyUrl($data['privacy_policy_url']); - unset($data['privacy_policy_url']); - } - elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { - $object->setPrivacyPolicyUrl(null); - } - if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { - $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); - unset($data['google_tag_manager_container_id']); - } - elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { - $object->setGoogleTagManagerContainerId(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['icon'] = $object->getIcon(); + $data['favicon'] = $object->getFavicon(); + $data['title'] = $object->getTitle(); + $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); + $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); + $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CustomizePageSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['icon'] = $object->getIcon(); - $data['favicon'] = $object->getFavicon(); - $data['title'] = $object->getTitle(); - $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); - $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); - $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('icon', $data) && $data['icon'] !== null) { + $object->setIcon($data['icon']); + unset($data['icon']); + } + elseif (\array_key_exists('icon', $data) && $data['icon'] === null) { + $object->setIcon(null); + } + if (\array_key_exists('favicon', $data) && $data['favicon'] !== null) { + $object->setFavicon($data['favicon']); + unset($data['favicon']); + } + elseif (\array_key_exists('favicon', $data) && $data['favicon'] === null) { + $object->setFavicon(null); + } + if (\array_key_exists('title', $data) && $data['title'] !== null) { + $object->setTitle($data['title']); + unset($data['title']); } + elseif (\array_key_exists('title', $data) && $data['title'] === null) { + $object->setTitle(null); + } + if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { + $object->setTermsOfServiceUrl($data['terms_of_service_url']); + unset($data['terms_of_service_url']); + } + elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { + $object->setTermsOfServiceUrl(null); + } + if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { + $object->setPrivacyPolicyUrl($data['privacy_policy_url']); + unset($data['privacy_policy_url']); + } + elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { + $object->setPrivacyPolicyUrl(null); + } + if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { + $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); + unset($data['google_tag_manager_container_id']); + } + elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { + $object->setGoogleTagManagerContainerId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['icon'] = $object->getIcon(); + $data['favicon'] = $object->getFavicon(); + $data['title'] = $object->getTitle(); + $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); + $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); + $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettings' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CustomizePageSettingsPropsNormalizer.php b/generated/Auth/Normalizer/CustomizePageSettingsPropsNormalizer.php index 67c7e04..4104d29 100644 --- a/generated/Auth/Normalizer/CustomizePageSettingsPropsNormalizer.php +++ b/generated/Auth/Normalizer/CustomizePageSettingsPropsNormalizer.php @@ -12,89 +12,173 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CustomizePageSettingsPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CustomizePageSettingsPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettingsProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettingsProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('title', $data) && $data['title'] !== null) { + $object->setTitle($data['title']); + unset($data['title']); + } + elseif (\array_key_exists('title', $data) && $data['title'] === null) { + $object->setTitle(null); + } + if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { + $object->setTermsOfServiceUrl($data['terms_of_service_url']); + unset($data['terms_of_service_url']); + } + elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { + $object->setTermsOfServiceUrl(null); + } + if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { + $object->setPrivacyPolicyUrl($data['privacy_policy_url']); + unset($data['privacy_policy_url']); + } + elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { + $object->setPrivacyPolicyUrl(null); + } + if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { + $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); + unset($data['google_tag_manager_container_id']); + } + elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { + $object->setGoogleTagManagerContainerId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('title', $data) && $data['title'] !== null) { - $object->setTitle($data['title']); - unset($data['title']); - } - elseif (\array_key_exists('title', $data) && $data['title'] === null) { - $object->setTitle(null); - } - if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { - $object->setTermsOfServiceUrl($data['terms_of_service_url']); - unset($data['terms_of_service_url']); - } - elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { - $object->setTermsOfServiceUrl(null); - } - if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { - $object->setPrivacyPolicyUrl($data['privacy_policy_url']); - unset($data['privacy_policy_url']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['title'] = $object->getTitle(); + $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); + $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); + $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { - $object->setPrivacyPolicyUrl(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class => false]; } - if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { - $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); - unset($data['google_tag_manager_container_id']); + } +} else { + class CustomizePageSettingsPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class; } - elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { - $object->setGoogleTagManagerContainerId(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('title', $data) && $data['title'] !== null) { + $object->setTitle($data['title']); + unset($data['title']); + } + elseif (\array_key_exists('title', $data) && $data['title'] === null) { + $object->setTitle(null); + } + if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { + $object->setTermsOfServiceUrl($data['terms_of_service_url']); + unset($data['terms_of_service_url']); + } + elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { + $object->setTermsOfServiceUrl(null); + } + if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { + $object->setPrivacyPolicyUrl($data['privacy_policy_url']); + unset($data['privacy_policy_url']); } + elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { + $object->setPrivacyPolicyUrl(null); + } + if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { + $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); + unset($data['google_tag_manager_container_id']); + } + elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { + $object->setGoogleTagManagerContainerId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['title'] = $object->getTitle(); - $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); - $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); - $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['title'] = $object->getTitle(); + $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); + $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); + $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettingsProps' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/CustomizePagesNormalizer.php b/generated/Auth/Normalizer/CustomizePagesNormalizer.php index b85f36b..748d572 100644 --- a/generated/Auth/Normalizer/CustomizePagesNormalizer.php +++ b/generated/Auth/Normalizer/CustomizePagesNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CustomizePagesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CustomizePagesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePages'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePages'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] !== null) { + $object->setSignUpPage($this->denormalizer->denormalize($data['sign_up_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_up_page']); + } + elseif (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] === null) { + $object->setSignUpPage(null); + } + if (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] !== null) { + $object->setSignInPage($this->denormalizer->denormalize($data['sign_in_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_in_page']); + } + elseif (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] === null) { + $object->setSignInPage(null); + } + if (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] !== null) { + $object->setPasswordResetPage($this->denormalizer->denormalize($data['password_reset_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['password_reset_page']); + } + elseif (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] === null) { + $object->setPasswordResetPage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] !== null) { - $object->setSignUpPage($this->denormalizer->denormalize($data['sign_up_page'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps', 'json', $context)); - unset($data['sign_up_page']); - } - elseif (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] === null) { - $object->setSignUpPage(null); - } - if (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] !== null) { - $object->setSignInPage($this->denormalizer->denormalize($data['sign_in_page'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps', 'json', $context)); - unset($data['sign_in_page']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['sign_up_page'] = $this->normalizer->normalize($object->getSignUpPage(), 'json', $context); + $data['sign_in_page'] = $this->normalizer->normalize($object->getSignInPage(), 'json', $context); + $data['password_reset_page'] = $this->normalizer->normalize($object->getPasswordResetPage(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] === null) { - $object->setSignInPage(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class => false]; } - if (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] !== null) { - $object->setPasswordResetPage($this->denormalizer->denormalize($data['password_reset_page'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps', 'json', $context)); - unset($data['password_reset_page']); + } +} else { + class CustomizePagesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class; } - elseif (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] === null) { - $object->setPasswordResetPage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] !== null) { + $object->setSignUpPage($this->denormalizer->denormalize($data['sign_up_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_up_page']); + } + elseif (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] === null) { + $object->setSignUpPage(null); + } + if (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] !== null) { + $object->setSignInPage($this->denormalizer->denormalize($data['sign_in_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_in_page']); + } + elseif (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] === null) { + $object->setSignInPage(null); + } + if (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] !== null) { + $object->setPasswordResetPage($this->denormalizer->denormalize($data['password_reset_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['password_reset_page']); } + elseif (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] === null) { + $object->setPasswordResetPage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['sign_up_page'] = $this->normalizer->normalize($object->getSignUpPage(), 'json', $context); - $data['sign_in_page'] = $this->normalizer->normalize($object->getSignInPage(), 'json', $context); - $data['password_reset_page'] = $this->normalizer->normalize($object->getPasswordResetPage(), 'json', $context); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['sign_up_page'] = $this->normalizer->normalize($object->getSignUpPage(), 'json', $context); + $data['sign_in_page'] = $this->normalizer->normalize($object->getSignInPage(), 'json', $context); + $data['password_reset_page'] = $this->normalizer->normalize($object->getPasswordResetPage(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePages' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/DeviceConfigurationNormalizer.php b/generated/Auth/Normalizer/DeviceConfigurationNormalizer.php index 35d3596..83c7917 100644 --- a/generated/Auth/Normalizer/DeviceConfigurationNormalizer.php +++ b/generated/Auth/Normalizer/DeviceConfigurationNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class DeviceConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeviceConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('device_remembering', $data) && $data['device_remembering'] !== null) { + $object->setDeviceRemembering($data['device_remembering']); + unset($data['device_remembering']); + } + elseif (\array_key_exists('device_remembering', $data) && $data['device_remembering'] === null) { + $object->setDeviceRemembering(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('device_remembering', $data) && $data['device_remembering'] !== null) { - $object->setDeviceRemembering($data['device_remembering']); - unset($data['device_remembering']); - } - elseif (\array_key_exists('device_remembering', $data) && $data['device_remembering'] === null) { - $object->setDeviceRemembering(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['device_remembering'] = $object->getDeviceRemembering(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class DeviceConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['device_remembering'] = $object->getDeviceRemembering(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('device_remembering', $data) && $data['device_remembering'] !== null) { + $object->setDeviceRemembering($data['device_remembering']); + unset($data['device_remembering']); + } + elseif (\array_key_exists('device_remembering', $data) && $data['device_remembering'] === null) { + $object->setDeviceRemembering(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['device_remembering'] = $object->getDeviceRemembering(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/DnsRecordNormalizer.php b/generated/Auth/Normalizer/DnsRecordNormalizer.php index 2d446a8..8a846c8 100644 --- a/generated/Auth/Normalizer/DnsRecordNormalizer.php +++ b/generated/Auth/Normalizer/DnsRecordNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class DnsRecordNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DnsRecordNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('value', $data) && $data['value'] !== null) { + $object->setValue($data['value']); + unset($data['value']); + } + elseif (\array_key_exists('value', $data) && $data['value'] === null) { + $object->setValue(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['name'] = $object->getName(); + $data['value'] = $object->getValue(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class => false]; } - if (\array_key_exists('value', $data) && $data['value'] !== null) { - $object->setValue($data['value']); - unset($data['value']); + } +} else { + class DnsRecordNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class; } - elseif (\array_key_exists('value', $data) && $data['value'] === null) { - $object->setValue(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('value', $data) && $data['value'] !== null) { + $object->setValue($data['value']); + unset($data['value']); } + elseif (\array_key_exists('value', $data) && $data['value'] === null) { + $object->setValue(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['name'] = $object->getName(); - $data['value'] = $object->getValue(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['name'] = $object->getName(); + $data['value'] = $object->getValue(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/EnvNormalizer.php b/generated/Auth/Normalizer/EnvNormalizer.php index 083cebb..226cc38 100644 --- a/generated/Auth/Normalizer/EnvNormalizer.php +++ b/generated/Auth/Normalizer/EnvNormalizer.php @@ -12,83 +12,161 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class EnvNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class EnvNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Env(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Env(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { + $data['display_name'] = $object->getDisplayName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class => false]; } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + } +} else { + class EnvNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Env(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['id'] = $object->getId(); - $data['name'] = $object->getName(); - if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { - $data['display_name'] = $object->getDisplayName(); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { + $data['display_name'] = $object->getDisplayName(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/EnvsNormalizer.php b/generated/Auth/Normalizer/EnvsNormalizer.php index 3a462b6..547a4a3 100644 --- a/generated/Auth/Normalizer/EnvsNormalizer.php +++ b/generated/Auth/Normalizer/EnvsNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class EnvsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class EnvsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Envs'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Envs'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class, 'json', $context); + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('envs', $data) && $data['envs'] !== null) { - $values = array(); - foreach ($data['envs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setEnvs($values); - unset($data['envs']); - } - elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { - $object->setEnvs(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['envs'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class EnvsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getEnvs() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class; } - $data['envs'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class, 'json', $context); + } + $object->setEnvs($values); + unset($data['envs']); } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['envs'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Envs' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ErrorNormalizer.php b/generated/Auth/Normalizer/ErrorNormalizer.php index 37d8173..159a2a0 100644 --- a/generated/Auth/Normalizer/ErrorNormalizer.php +++ b/generated/Auth/Normalizer/ErrorNormalizer.php @@ -12,91 +12,177 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + if (\array_key_exists('data', $data) && $data['data'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['data'] as $key => $value) { + $values[$key] = $value; + } + $object->setData($values); + unset($data['data']); + } + elseif (\array_key_exists('data', $data) && $data['data'] === null) { + $object->setData(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + if ($object->isInitialized('data') && null !== $object->getData()) { + $values = []; + foreach ($object->getData() as $key => $value) { + $values[$key] = $value; + } + $data['data'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class; } - if (\array_key_exists('data', $data) && $data['data'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['data'] as $key => $value) { - $values[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } - $object->setData($values); - unset($data['data']); - } - elseif (\array_key_exists('data', $data) && $data['data'] === null) { - $object->setData(null); - } - foreach ($data as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_1; + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + if (\array_key_exists('data', $data) && $data['data'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['data'] as $key => $value) { + $values[$key] = $value; + } + $object->setData($values); + unset($data['data']); + } + elseif (\array_key_exists('data', $data) && $data['data'] === null) { + $object->setData(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - if ($object->isInitialized('data') && null !== $object->getData()) { - $values = array(); - foreach ($object->getData() as $key => $value) { - $values[$key] = $value; - } - $data['data'] = $values; - } - foreach ($object as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + if ($object->isInitialized('data') && null !== $object->getData()) { + $values = []; + foreach ($object->getData() as $key => $value) { + $values[$key] = $value; + } + $data['data'] = $values; } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/IdentityProviderConfigurationNormalizer.php b/generated/Auth/Normalizer/IdentityProviderConfigurationNormalizer.php index d995e33..be473f3 100644 --- a/generated/Auth/Normalizer/IdentityProviderConfigurationNormalizer.php +++ b/generated/Auth/Normalizer/IdentityProviderConfigurationNormalizer.php @@ -12,89 +12,173 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class IdentityProviderConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class IdentityProviderConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderConfiguration'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderConfiguration'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('domain', $data) && $data['domain'] !== null) { + $object->setDomain($data['domain']); + unset($data['domain']); + } + elseif (\array_key_exists('domain', $data) && $data['domain'] === null) { + $object->setDomain(null); + } + if (\array_key_exists('redirect_url', $data) && $data['redirect_url'] !== null) { + $object->setRedirectUrl($data['redirect_url']); + unset($data['redirect_url']); + } + elseif (\array_key_exists('redirect_url', $data) && $data['redirect_url'] === null) { + $object->setRedirectUrl(null); + } + if (\array_key_exists('entity_id', $data) && $data['entity_id'] !== null) { + $object->setEntityId($data['entity_id']); + unset($data['entity_id']); + } + elseif (\array_key_exists('entity_id', $data) && $data['entity_id'] === null) { + $object->setEntityId(null); + } + if (\array_key_exists('reply_url', $data) && $data['reply_url'] !== null) { + $object->setReplyUrl($data['reply_url']); + unset($data['reply_url']); + } + elseif (\array_key_exists('reply_url', $data) && $data['reply_url'] === null) { + $object->setReplyUrl(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('domain', $data) && $data['domain'] !== null) { - $object->setDomain($data['domain']); - unset($data['domain']); - } - elseif (\array_key_exists('domain', $data) && $data['domain'] === null) { - $object->setDomain(null); - } - if (\array_key_exists('redirect_url', $data) && $data['redirect_url'] !== null) { - $object->setRedirectUrl($data['redirect_url']); - unset($data['redirect_url']); - } - elseif (\array_key_exists('redirect_url', $data) && $data['redirect_url'] === null) { - $object->setRedirectUrl(null); - } - if (\array_key_exists('entity_id', $data) && $data['entity_id'] !== null) { - $object->setEntityId($data['entity_id']); - unset($data['entity_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['domain'] = $object->getDomain(); + $data['redirect_url'] = $object->getRedirectUrl(); + $data['entity_id'] = $object->getEntityId(); + $data['reply_url'] = $object->getReplyUrl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('entity_id', $data) && $data['entity_id'] === null) { - $object->setEntityId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class => false]; } - if (\array_key_exists('reply_url', $data) && $data['reply_url'] !== null) { - $object->setReplyUrl($data['reply_url']); - unset($data['reply_url']); + } +} else { + class IdentityProviderConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class; } - elseif (\array_key_exists('reply_url', $data) && $data['reply_url'] === null) { - $object->setReplyUrl(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('domain', $data) && $data['domain'] !== null) { + $object->setDomain($data['domain']); + unset($data['domain']); + } + elseif (\array_key_exists('domain', $data) && $data['domain'] === null) { + $object->setDomain(null); + } + if (\array_key_exists('redirect_url', $data) && $data['redirect_url'] !== null) { + $object->setRedirectUrl($data['redirect_url']); + unset($data['redirect_url']); + } + elseif (\array_key_exists('redirect_url', $data) && $data['redirect_url'] === null) { + $object->setRedirectUrl(null); + } + if (\array_key_exists('entity_id', $data) && $data['entity_id'] !== null) { + $object->setEntityId($data['entity_id']); + unset($data['entity_id']); } + elseif (\array_key_exists('entity_id', $data) && $data['entity_id'] === null) { + $object->setEntityId(null); + } + if (\array_key_exists('reply_url', $data) && $data['reply_url'] !== null) { + $object->setReplyUrl($data['reply_url']); + unset($data['reply_url']); + } + elseif (\array_key_exists('reply_url', $data) && $data['reply_url'] === null) { + $object->setReplyUrl(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['domain'] = $object->getDomain(); - $data['redirect_url'] = $object->getRedirectUrl(); - $data['entity_id'] = $object->getEntityId(); - $data['reply_url'] = $object->getReplyUrl(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['domain'] = $object->getDomain(); + $data['redirect_url'] = $object->getRedirectUrl(); + $data['entity_id'] = $object->getEntityId(); + $data['reply_url'] = $object->getReplyUrl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderConfiguration' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/IdentityProviderPropsNormalizer.php b/generated/Auth/Normalizer/IdentityProviderPropsNormalizer.php index bcc5807..850acf5 100644 --- a/generated/Auth/Normalizer/IdentityProviderPropsNormalizer.php +++ b/generated/Auth/Normalizer/IdentityProviderPropsNormalizer.php @@ -12,91 +12,177 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class IdentityProviderPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class IdentityProviderPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('application_id', $data) && $data['application_id'] !== null) { + $object->setApplicationId($data['application_id']); + unset($data['application_id']); + } + elseif (\array_key_exists('application_id', $data) && $data['application_id'] === null) { + $object->setApplicationId(null); + } + if (\array_key_exists('application_secret', $data) && $data['application_secret'] !== null) { + $object->setApplicationSecret($data['application_secret']); + unset($data['application_secret']); + } + elseif (\array_key_exists('application_secret', $data) && $data['application_secret'] === null) { + $object->setApplicationSecret(null); + } + if (\array_key_exists('approval_scope', $data) && $data['approval_scope'] !== null) { + $object->setApprovalScope($data['approval_scope']); + unset($data['approval_scope']); + } + elseif (\array_key_exists('approval_scope', $data) && $data['approval_scope'] === null) { + $object->setApprovalScope(null); + } + if (\array_key_exists('is_button_hidden', $data) && $data['is_button_hidden'] !== null) { + $object->setIsButtonHidden($data['is_button_hidden']); + unset($data['is_button_hidden']); + } + elseif (\array_key_exists('is_button_hidden', $data) && $data['is_button_hidden'] === null) { + $object->setIsButtonHidden(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('application_id', $data) && $data['application_id'] !== null) { - $object->setApplicationId($data['application_id']); - unset($data['application_id']); - } - elseif (\array_key_exists('application_id', $data) && $data['application_id'] === null) { - $object->setApplicationId(null); - } - if (\array_key_exists('application_secret', $data) && $data['application_secret'] !== null) { - $object->setApplicationSecret($data['application_secret']); - unset($data['application_secret']); - } - elseif (\array_key_exists('application_secret', $data) && $data['application_secret'] === null) { - $object->setApplicationSecret(null); - } - if (\array_key_exists('approval_scope', $data) && $data['approval_scope'] !== null) { - $object->setApprovalScope($data['approval_scope']); - unset($data['approval_scope']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['application_id'] = $object->getApplicationId(); + $data['application_secret'] = $object->getApplicationSecret(); + $data['approval_scope'] = $object->getApprovalScope(); + if ($object->isInitialized('isButtonHidden') && null !== $object->getIsButtonHidden()) { + $data['is_button_hidden'] = $object->getIsButtonHidden(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('approval_scope', $data) && $data['approval_scope'] === null) { - $object->setApprovalScope(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class => false]; } - if (\array_key_exists('is_button_hidden', $data) && $data['is_button_hidden'] !== null) { - $object->setIsButtonHidden($data['is_button_hidden']); - unset($data['is_button_hidden']); + } +} else { + class IdentityProviderPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class; } - elseif (\array_key_exists('is_button_hidden', $data) && $data['is_button_hidden'] === null) { - $object->setIsButtonHidden(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('application_id', $data) && $data['application_id'] !== null) { + $object->setApplicationId($data['application_id']); + unset($data['application_id']); + } + elseif (\array_key_exists('application_id', $data) && $data['application_id'] === null) { + $object->setApplicationId(null); + } + if (\array_key_exists('application_secret', $data) && $data['application_secret'] !== null) { + $object->setApplicationSecret($data['application_secret']); + unset($data['application_secret']); + } + elseif (\array_key_exists('application_secret', $data) && $data['application_secret'] === null) { + $object->setApplicationSecret(null); + } + if (\array_key_exists('approval_scope', $data) && $data['approval_scope'] !== null) { + $object->setApprovalScope($data['approval_scope']); + unset($data['approval_scope']); + } + elseif (\array_key_exists('approval_scope', $data) && $data['approval_scope'] === null) { + $object->setApprovalScope(null); + } + if (\array_key_exists('is_button_hidden', $data) && $data['is_button_hidden'] !== null) { + $object->setIsButtonHidden($data['is_button_hidden']); + unset($data['is_button_hidden']); + } + elseif (\array_key_exists('is_button_hidden', $data) && $data['is_button_hidden'] === null) { + $object->setIsButtonHidden(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['application_id'] = $object->getApplicationId(); - $data['application_secret'] = $object->getApplicationSecret(); - $data['approval_scope'] = $object->getApprovalScope(); - if ($object->isInitialized('isButtonHidden') && null !== $object->getIsButtonHidden()) { - $data['is_button_hidden'] = $object->getIsButtonHidden(); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['application_id'] = $object->getApplicationId(); + $data['application_secret'] = $object->getApplicationSecret(); + $data['approval_scope'] = $object->getApprovalScope(); + if ($object->isInitialized('isButtonHidden') && null !== $object->getIsButtonHidden()) { + $data['is_button_hidden'] = $object->getIsButtonHidden(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/IdentityProviderSamlNormalizer.php b/generated/Auth/Normalizer/IdentityProviderSamlNormalizer.php index 797130e..f22d6bf 100644 --- a/generated/Auth/Normalizer/IdentityProviderSamlNormalizer.php +++ b/generated/Auth/Normalizer/IdentityProviderSamlNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class IdentityProviderSamlNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class IdentityProviderSamlNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderSaml'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderSaml'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metadata_url', $data) && $data['metadata_url'] !== null) { + $object->setMetadataUrl($data['metadata_url']); + unset($data['metadata_url']); + } + elseif (\array_key_exists('metadata_url', $data) && $data['metadata_url'] === null) { + $object->setMetadataUrl(null); + } + if (\array_key_exists('email_attribute', $data) && $data['email_attribute'] !== null) { + $object->setEmailAttribute($data['email_attribute']); + unset($data['email_attribute']); + } + elseif (\array_key_exists('email_attribute', $data) && $data['email_attribute'] === null) { + $object->setEmailAttribute(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('metadata_url', $data) && $data['metadata_url'] !== null) { - $object->setMetadataUrl($data['metadata_url']); - unset($data['metadata_url']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['metadata_url'] = $object->getMetadataUrl(); + $data['email_attribute'] = $object->getEmailAttribute(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('metadata_url', $data) && $data['metadata_url'] === null) { - $object->setMetadataUrl(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class => false]; } - if (\array_key_exists('email_attribute', $data) && $data['email_attribute'] !== null) { - $object->setEmailAttribute($data['email_attribute']); - unset($data['email_attribute']); + } +} else { + class IdentityProviderSamlNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class; } - elseif (\array_key_exists('email_attribute', $data) && $data['email_attribute'] === null) { - $object->setEmailAttribute(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metadata_url', $data) && $data['metadata_url'] !== null) { + $object->setMetadataUrl($data['metadata_url']); + unset($data['metadata_url']); + } + elseif (\array_key_exists('metadata_url', $data) && $data['metadata_url'] === null) { + $object->setMetadataUrl(null); + } + if (\array_key_exists('email_attribute', $data) && $data['email_attribute'] !== null) { + $object->setEmailAttribute($data['email_attribute']); + unset($data['email_attribute']); + } + elseif (\array_key_exists('email_attribute', $data) && $data['email_attribute'] === null) { + $object->setEmailAttribute(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['metadata_url'] = $object->getMetadataUrl(); - $data['email_attribute'] = $object->getEmailAttribute(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['metadata_url'] = $object->getMetadataUrl(); + $data['email_attribute'] = $object->getEmailAttribute(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderSaml' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/IdentityProvidersNormalizer.php b/generated/Auth/Normalizer/IdentityProvidersNormalizer.php index 5d5aa2f..056e7d7 100644 --- a/generated/Auth/Normalizer/IdentityProvidersNormalizer.php +++ b/generated/Auth/Normalizer/IdentityProvidersNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class IdentityProvidersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class IdentityProvidersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviders'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviders'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('google', $data) && $data['google'] !== null) { + $object->setGoogle($this->denormalizer->denormalize($data['google'], \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class, 'json', $context)); + unset($data['google']); + } + elseif (\array_key_exists('google', $data) && $data['google'] === null) { + $object->setGoogle(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('google', $data) && $data['google'] !== null) { - $object->setGoogle($this->denormalizer->denormalize($data['google'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps', 'json', $context)); - unset($data['google']); - } - elseif (\array_key_exists('google', $data) && $data['google'] === null) { - $object->setGoogle(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['google'] = $this->normalizer->normalize($object->getGoogle(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class IdentityProvidersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['google'] = $this->normalizer->normalize($object->getGoogle(), 'json', $context); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('google', $data) && $data['google'] !== null) { + $object->setGoogle($this->denormalizer->denormalize($data['google'], \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class, 'json', $context)); + unset($data['google']); + } + elseif (\array_key_exists('google', $data) && $data['google'] === null) { + $object->setGoogle(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['google'] = $this->normalizer->normalize($object->getGoogle(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviders' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/InvitationNormalizer.php b/generated/Auth/Normalizer/InvitationNormalizer.php index 0a94ef4..107a289 100644 --- a/generated/Auth/Normalizer/InvitationNormalizer.php +++ b/generated/Auth/Normalizer/InvitationNormalizer.php @@ -12,113 +12,221 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class InvitationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class InvitationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('invitation_url', $data) && $data['invitation_url'] !== null) { + $object->setInvitationUrl($data['invitation_url']); + unset($data['invitation_url']); + } + elseif (\array_key_exists('invitation_url', $data) && $data['invitation_url'] === null) { + $object->setInvitationUrl(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $value; + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + if (\array_key_exists('expired_at', $data) && $data['expired_at'] !== null) { + $object->setExpiredAt($data['expired_at']); + unset($data['expired_at']); + } + elseif (\array_key_exists('expired_at', $data) && $data['expired_at'] === null) { + $object->setExpiredAt(null); + } + if (\array_key_exists('status', $data) && $data['status'] !== null) { + $object->setStatus($data['status']); + unset($data['status']); + } + elseif (\array_key_exists('status', $data) && $data['status'] === null) { + $object->setStatus(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - if (\array_key_exists('invitation_url', $data) && $data['invitation_url'] !== null) { - $object->setInvitationUrl($data['invitation_url']); - unset($data['invitation_url']); - } - elseif (\array_key_exists('invitation_url', $data) && $data['invitation_url'] === null) { - $object->setInvitationUrl(null); - } - if (\array_key_exists('envs', $data) && $data['envs'] !== null) { - $values = array(); - foreach ($data['envs'] as $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['email'] = $object->getEmail(); + $data['invitation_url'] = $object->getInvitationUrl(); + $values = []; + foreach ($object->getEnvs() as $value) { $values[] = $value; } - $object->setEnvs($values); - unset($data['envs']); - } - elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { - $object->setEnvs(null); - } - if (\array_key_exists('expired_at', $data) && $data['expired_at'] !== null) { - $object->setExpiredAt($data['expired_at']); - unset($data['expired_at']); - } - elseif (\array_key_exists('expired_at', $data) && $data['expired_at'] === null) { - $object->setExpiredAt(null); - } - if (\array_key_exists('status', $data) && $data['status'] !== null) { - $object->setStatus($data['status']); - unset($data['status']); - } - elseif (\array_key_exists('status', $data) && $data['status'] === null) { - $object->setStatus(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['envs'] = $values; + $data['expired_at'] = $object->getExpiredAt(); + $data['status'] = $object->getStatus(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class InvitationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['email'] = $object->getEmail(); - $data['invitation_url'] = $object->getInvitationUrl(); - $values = array(); - foreach ($object->getEnvs() as $value) { - $values[] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('invitation_url', $data) && $data['invitation_url'] !== null) { + $object->setInvitationUrl($data['invitation_url']); + unset($data['invitation_url']); + } + elseif (\array_key_exists('invitation_url', $data) && $data['invitation_url'] === null) { + $object->setInvitationUrl(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $value; + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + if (\array_key_exists('expired_at', $data) && $data['expired_at'] !== null) { + $object->setExpiredAt($data['expired_at']); + unset($data['expired_at']); + } + elseif (\array_key_exists('expired_at', $data) && $data['expired_at'] === null) { + $object->setExpiredAt(null); + } + if (\array_key_exists('status', $data) && $data['status'] !== null) { + $object->setStatus($data['status']); + unset($data['status']); + } + elseif (\array_key_exists('status', $data) && $data['status'] === null) { + $object->setStatus(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - $data['envs'] = $values; - $data['expired_at'] = $object->getExpiredAt(); - $data['status'] = $object->getStatus(); - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['email'] = $object->getEmail(); + $data['invitation_url'] = $object->getInvitationUrl(); + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $value; + } + $data['envs'] = $values; + $data['expired_at'] = $object->getExpiredAt(); + $data['status'] = $object->getStatus(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/InvitationValidityNormalizer.php b/generated/Auth/Normalizer/InvitationValidityNormalizer.php index 98c20a5..6956078 100644 --- a/generated/Auth/Normalizer/InvitationValidityNormalizer.php +++ b/generated/Auth/Normalizer/InvitationValidityNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class InvitationValidityNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class InvitationValidityNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\InvitationValidity'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\InvitationValidity'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('is_valid', $data) && $data['is_valid'] !== null) { + $object->setIsValid($data['is_valid']); + unset($data['is_valid']); + } + elseif (\array_key_exists('is_valid', $data) && $data['is_valid'] === null) { + $object->setIsValid(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('is_valid', $data) && $data['is_valid'] !== null) { - $object->setIsValid($data['is_valid']); - unset($data['is_valid']); - } - elseif (\array_key_exists('is_valid', $data) && $data['is_valid'] === null) { - $object->setIsValid(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['is_valid'] = $object->getIsValid(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class InvitationValidityNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['is_valid'] = $object->getIsValid(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('is_valid', $data) && $data['is_valid'] !== null) { + $object->setIsValid($data['is_valid']); + unset($data['is_valid']); + } + elseif (\array_key_exists('is_valid', $data) && $data['is_valid'] === null) { + $object->setIsValid(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['is_valid'] = $object->getIsValid(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\InvitationValidity' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/InvitationsNormalizer.php b/generated/Auth/Normalizer/InvitationsNormalizer.php index 9a13934..4651da6 100644 --- a/generated/Auth/Normalizer/InvitationsNormalizer.php +++ b/generated/Auth/Normalizer/InvitationsNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class InvitationsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class InvitationsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitations'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitations'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('invitations', $data) && $data['invitations'] !== null) { + $values = []; + foreach ($data['invitations'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class, 'json', $context); + } + $object->setInvitations($values); + unset($data['invitations']); + } + elseif (\array_key_exists('invitations', $data) && $data['invitations'] === null) { + $object->setInvitations(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('invitations', $data) && $data['invitations'] !== null) { - $values = array(); - foreach ($data['invitations'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getInvitations() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setInvitations($values); - unset($data['invitations']); - } - elseif (\array_key_exists('invitations', $data) && $data['invitations'] === null) { - $object->setInvitations(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['invitations'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class InvitationsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getInvitations() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class; } - $data['invitations'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('invitations', $data) && $data['invitations'] !== null) { + $values = []; + foreach ($data['invitations'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class, 'json', $context); + } + $object->setInvitations($values); + unset($data['invitations']); } + elseif (\array_key_exists('invitations', $data) && $data['invitations'] === null) { + $object->setInvitations(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getInvitations() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['invitations'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitations' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/JaneObjectNormalizer.php b/generated/Auth/Normalizer/JaneObjectNormalizer.php index f20c84e..8933e15 100644 --- a/generated/Auth/Normalizer/JaneObjectNormalizer.php +++ b/generated/Auth/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,455 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserInfo' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UserInfoNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BasicInfo' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\BasicInfoNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\DnsRecordNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthInfo' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\AuthInfoNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SaasUserNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUsers' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SaasUsersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSaasUserParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CreateSaasUserParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UserNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UsersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ApiKeys' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ApiKeysNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateBasicInfoParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateBasicInfoParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CreateTenantUserParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantUserParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateTenantUserParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserPasswordParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateSaasUserPasswordParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserEmailParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateSaasUserEmailParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestEmailUpdateParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\RequestEmailUpdateParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmEmailUpdateParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ConfirmEmailUpdateParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserRolesParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CreateTenantUserRolesParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\AttributeNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAttributes' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UserAttributesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantAttributes' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantAttributesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasId' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SaasIdNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\RoleNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Roles' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\RolesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantDetail' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantDetailNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantProps' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantPropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanReservation' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\PlanReservationNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\BillingInfoNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingAddress' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\BillingAddressNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenants' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableTenant' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UserAvailableTenantNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableEnv' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UserAvailableEnvNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\NotificationMessages' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\NotificationMessagesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\MessageTemplateNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateNotificationMessagesParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateNotificationMessagesParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviders' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\IdentityProvidersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\IdentityProviderPropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateIdentityProviderParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateIdentityProviderParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProviders' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantIdentityProvidersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProvidersSaml' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\TenantIdentityProvidersSamlNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantIdentityProviderParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateTenantIdentityProviderParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderSaml' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\IdentityProviderSamlNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignInSettings' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SignInSettingsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\PasswordPolicyNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\DeviceConfigurationNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\AccountVerificationNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSignInSettingsParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateSignInSettingsParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\MfaConfigurationNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\RecaptchaPropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderConfiguration' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\IdentityProviderConfigurationNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateEnvParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateEnvParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\EnvNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Envs' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\EnvsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePages' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CustomizePagesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CustomizePagePropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePagesParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateCustomizePagesParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SelfRegistNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettingsProps' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CustomizePageSettingsPropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettings' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CustomizePageSettingsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePageSettingsParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateCustomizePageSettingsParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\PlanHistoryNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistories' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\PlanHistoriesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ClientSecret' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ClientSecretNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Credentials' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CredentialsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthorizationTempCode' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\AuthorizationTempCodeNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSecretCodeParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CreateSecretCodeParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SoftwareTokenSecretCode' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SoftwareTokenSecretCodeNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSoftwareTokenParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\UpdateSoftwareTokenParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaPreference' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\MfaPreferenceNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SignUpParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ResendSignUpConfirmationEmailParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ResendSignUpConfirmationEmailParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpWithAwsMarketplaceParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\SignUpWithAwsMarketplaceParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmSignUpWithAwsMarketplaceParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ConfirmSignUpWithAwsMarketplaceParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\LinkAwsMarketplaceParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\LinkAwsMarketplaceParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\InvitationNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitations' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\InvitationsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CreateTenantInvitationParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParamEnvsItem' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\CreateTenantInvitationParamEnvsItemNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ValidateInvitationParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ValidateInvitationParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\InvitationValidity' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\InvitationValidityNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestExternalUserLinkParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\RequestExternalUserLinkParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmExternalUserLinkParam' => 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Normalizer\\ConfirmExternalUserLinkParamNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\Auth\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\BasicInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\DnsRecordNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AuthInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SaasUserNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SaasUsersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateSaasUserParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UsersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ApiKeysNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateBasicInfoParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantUserParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateTenantUserParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSaasUserPasswordParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSaasUserEmailParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RequestEmailUpdateParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ConfirmEmailUpdateParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantUserRolesParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AttributeNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserAttributesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantAttributesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SaasIdNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RoleNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RolesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantDetailNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PlanReservationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\BillingInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\BillingAddressNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserAvailableTenantNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserAvailableEnvNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\NotificationMessagesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\MessageTemplateNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateNotificationMessagesParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProvidersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProviderPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateIdentityProviderParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantIdentityProvidersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantIdentityProvidersSamlNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateTenantIdentityProviderParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProviderSamlNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SignInSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PasswordPolicyNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\DeviceConfigurationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AccountVerificationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSignInSettingsParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\MfaConfigurationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RecaptchaPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProviderConfigurationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateEnvParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\EnvNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\EnvsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePagesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePagePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateCustomizePagesParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SelfRegistNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePageSettingsPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePageSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateCustomizePageSettingsParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PlanHistoryNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PlanHistoriesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ClientSecretNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CredentialsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AuthorizationTempCodeNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateSecretCodeParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SoftwareTokenSecretCodeNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSoftwareTokenParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\MfaPreferenceNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SignUpParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ResendSignUpConfirmationEmailParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SignUpWithAwsMarketplaceParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ConfirmSignUpWithAwsMarketplaceParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\LinkAwsMarketplaceParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\InvitationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\InvitationsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantInvitationParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantInvitationParamEnvsItemNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ValidateInvitationParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\InvitationValidityNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RequestExternalUserLinkParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ConfirmExternalUserLinkParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CloudFormationLaunchStackLinkNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SingleTenantSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSingleTenantSettingsParamNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserInfo' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BasicInfo' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DnsRecord' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthInfo' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUsers' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSaasUserParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ApiKeys' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateBasicInfoParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantUserParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserPasswordParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserEmailParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestEmailUpdateParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmEmailUpdateParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantUserRolesParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAttributes' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantAttributes' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasId' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Roles' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantDetail' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanReservation' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingAddress' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenants' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableTenant' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableEnv' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\NotificationMessages' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateNotificationMessagesParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviders' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateIdentityProviderParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProviders' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProvidersSaml' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantIdentityProviderParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderSaml' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignInSettings' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSignInSettingsParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderConfiguration' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateEnvParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Env' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Envs' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePages' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePagesParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettingsProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageSettings' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePageSettingsParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistories' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ClientSecret' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Credentials' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AuthorizationTempCode' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateSecretCodeParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SoftwareTokenSecretCode' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSoftwareTokenParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaPreference' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ResendSignUpConfirmationEmailParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpWithAwsMarketplaceParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmSignUpWithAwsMarketplaceParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\LinkAwsMarketplaceParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitation' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Invitations' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CreateTenantInvitationParamEnvsItem' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ValidateInvitationParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\InvitationValidity' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestExternalUserLinkParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ConfirmExternalUserLinkParam' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\BasicInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\DnsRecordNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AuthInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SaasUserNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SaasUsersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateSaasUserParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UsersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ApiKeysNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateBasicInfoParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantUserParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateTenantUserParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSaasUserPasswordParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSaasUserEmailParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RequestEmailUpdateParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ConfirmEmailUpdateParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantUserRolesParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AttributeNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserAttributesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantAttributesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SaasIdNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RoleNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RolesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantDetailNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PlanReservationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\BillingInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\BillingAddressNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserAvailableTenantNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UserAvailableEnvNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\NotificationMessagesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\MessageTemplateNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateNotificationMessagesParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProvidersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProviderPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateIdentityProviderParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantIdentityProvidersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\TenantIdentityProvidersSamlNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateTenantIdentityProviderParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProviderSamlNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SignInSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PasswordPolicyNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\DeviceConfigurationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AccountVerificationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSignInSettingsParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\MfaConfigurationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RecaptchaPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\IdentityProviderConfigurationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateEnvParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\EnvNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\EnvsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePagesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePagePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateCustomizePagesParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SelfRegistNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePageSettingsPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CustomizePageSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateCustomizePageSettingsParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PlanHistoryNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\PlanHistoriesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ClientSecretNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CredentialsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\AuthorizationTempCodeNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateSecretCodeParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SoftwareTokenSecretCodeNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSoftwareTokenParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\MfaPreferenceNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SignUpParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ResendSignUpConfirmationEmailParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SignUpWithAwsMarketplaceParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ConfirmSignUpWithAwsMarketplaceParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\LinkAwsMarketplaceParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\InvitationNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\InvitationsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantInvitationParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CreateTenantInvitationParamEnvsItemNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ValidateInvitationParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\InvitationValidityNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\RequestExternalUserLinkParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\ConfirmExternalUserLinkParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\CloudFormationLaunchStackLinkNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\SingleTenantSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class => \AntiPatternInc\Saasus\Sdk\Auth\Normalizer\UpdateSingleTenantSettingsParamNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Auth\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\BasicInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\DnsRecord::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSaasUserParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ApiKeys::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmEmailUpdateParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantUserRolesParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingAddress::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviders::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderSaml::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Env::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Envs::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePages::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettingsProps::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageSettings::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ClientSecret::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Credentials::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\AuthorizationTempCode::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateSecretCodeParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmSignUpWithAwsMarketplaceParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitation::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\Invitations::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CreateTenantInvitationParamEnvsItem::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\InvitationValidity::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\ConfirmExternalUserLinkParam::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\CloudFormationLaunchStackLink::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class => false, \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/LinkAwsMarketplaceParamNormalizer.php b/generated/Auth/Normalizer/LinkAwsMarketplaceParamNormalizer.php index 57267bc..3891e12 100644 --- a/generated/Auth/Normalizer/LinkAwsMarketplaceParamNormalizer.php +++ b/generated/Auth/Normalizer/LinkAwsMarketplaceParamNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class LinkAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class LinkAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\LinkAwsMarketplaceParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\LinkAwsMarketplaceParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { - $object->setTenantId($data['tenant_id']); - unset($data['tenant_id']); - } - elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { - $object->setTenantId(null); - } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['tenant_id'] = $object->getTenantId(); + $data['access_token'] = $object->getAccessToken(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class => false]; } - if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { - $object->setRegistrationToken($data['registration_token']); - unset($data['registration_token']); + } +} else { + class LinkAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class; } - elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { - $object->setRegistrationToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['tenant_id'] = $object->getTenantId(); - $data['access_token'] = $object->getAccessToken(); - $data['registration_token'] = $object->getRegistrationToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tenant_id'] = $object->getTenantId(); + $data['access_token'] = $object->getAccessToken(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\LinkAwsMarketplaceParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\LinkAwsMarketplaceParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/MessageTemplateNormalizer.php b/generated/Auth/Normalizer/MessageTemplateNormalizer.php index efc2a65..8fd61fe 100644 --- a/generated/Auth/Normalizer/MessageTemplateNormalizer.php +++ b/generated/Auth/Normalizer/MessageTemplateNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MessageTemplateNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MessageTemplateNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('subject', $data) && $data['subject'] !== null) { + $object->setSubject($data['subject']); + unset($data['subject']); + } + elseif (\array_key_exists('subject', $data) && $data['subject'] === null) { + $object->setSubject(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('subject', $data) && $data['subject'] !== null) { - $object->setSubject($data['subject']); - unset($data['subject']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['subject'] = $object->getSubject(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('subject', $data) && $data['subject'] === null) { - $object->setSubject(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class MessageTemplateNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('subject', $data) && $data['subject'] !== null) { + $object->setSubject($data['subject']); + unset($data['subject']); + } + elseif (\array_key_exists('subject', $data) && $data['subject'] === null) { + $object->setSubject(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['subject'] = $object->getSubject(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['subject'] = $object->getSubject(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/MfaConfigurationNormalizer.php b/generated/Auth/Normalizer/MfaConfigurationNormalizer.php index 8ac830d..a7a8a51 100644 --- a/generated/Auth/Normalizer/MfaConfigurationNormalizer.php +++ b/generated/Auth/Normalizer/MfaConfigurationNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MfaConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MfaConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { + $object->setMfaConfiguration($data['mfa_configuration']); + unset($data['mfa_configuration']); + } + elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { + $object->setMfaConfiguration(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { - $object->setMfaConfiguration($data['mfa_configuration']); - unset($data['mfa_configuration']); - } - elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { - $object->setMfaConfiguration(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['mfa_configuration'] = $object->getMfaConfiguration(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class MfaConfigurationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['mfa_configuration'] = $object->getMfaConfiguration(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { + $object->setMfaConfiguration($data['mfa_configuration']); + unset($data['mfa_configuration']); + } + elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { + $object->setMfaConfiguration(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['mfa_configuration'] = $object->getMfaConfiguration(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/MfaPreferenceNormalizer.php b/generated/Auth/Normalizer/MfaPreferenceNormalizer.php index 97799e8..3a66e97 100644 --- a/generated/Auth/Normalizer/MfaPreferenceNormalizer.php +++ b/generated/Auth/Normalizer/MfaPreferenceNormalizer.php @@ -12,75 +12,145 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MfaPreferenceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MfaPreferenceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaPreference'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaPreference'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + $object->setEnabled($data['enabled']); + unset($data['enabled']); + } + elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + $object->setEnabled(null); + } + if (\array_key_exists('method', $data) && $data['method'] !== null) { + $object->setMethod($data['method']); + unset($data['method']); + } + elseif (\array_key_exists('method', $data) && $data['method'] === null) { + $object->setMethod(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { - $object->setEnabled($data['enabled']); - unset($data['enabled']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['enabled'] = $object->getEnabled(); + if ($object->isInitialized('method') && null !== $object->getMethod()) { + $data['method'] = $object->getMethod(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { - $object->setEnabled(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class => false]; } - if (\array_key_exists('method', $data) && $data['method'] !== null) { - $object->setMethod($data['method']); - unset($data['method']); + } +} else { + class MfaPreferenceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class; } - elseif (\array_key_exists('method', $data) && $data['method'] === null) { - $object->setMethod(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + $object->setEnabled($data['enabled']); + unset($data['enabled']); + } + elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + $object->setEnabled(null); + } + if (\array_key_exists('method', $data) && $data['method'] !== null) { + $object->setMethod($data['method']); + unset($data['method']); + } + elseif (\array_key_exists('method', $data) && $data['method'] === null) { + $object->setMethod(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['enabled'] = $object->getEnabled(); - if ($object->isInitialized('method') && null !== $object->getMethod()) { - $data['method'] = $object->getMethod(); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['enabled'] = $object->getEnabled(); + if ($object->isInitialized('method') && null !== $object->getMethod()) { + $data['method'] = $object->getMethod(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\MfaPreference::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaPreference' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/NotificationMessagesNormalizer.php b/generated/Auth/Normalizer/NotificationMessagesNormalizer.php index 5954ff3..4baaf5d 100644 --- a/generated/Auth/Normalizer/NotificationMessagesNormalizer.php +++ b/generated/Auth/Normalizer/NotificationMessagesNormalizer.php @@ -12,129 +12,253 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class NotificationMessagesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class NotificationMessagesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\NotificationMessages'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\NotificationMessages'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up', $data) && $data['sign_up'] !== null) { + $object->setSignUp($this->denormalizer->denormalize($data['sign_up'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['sign_up']); + } + elseif (\array_key_exists('sign_up', $data) && $data['sign_up'] === null) { + $object->setSignUp(null); + } + if (\array_key_exists('create_user', $data) && $data['create_user'] !== null) { + $object->setCreateUser($this->denormalizer->denormalize($data['create_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['create_user']); + } + elseif (\array_key_exists('create_user', $data) && $data['create_user'] === null) { + $object->setCreateUser(null); + } + if (\array_key_exists('resend_code', $data) && $data['resend_code'] !== null) { + $object->setResendCode($this->denormalizer->denormalize($data['resend_code'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['resend_code']); + } + elseif (\array_key_exists('resend_code', $data) && $data['resend_code'] === null) { + $object->setResendCode(null); + } + if (\array_key_exists('forgot_password', $data) && $data['forgot_password'] !== null) { + $object->setForgotPassword($this->denormalizer->denormalize($data['forgot_password'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['forgot_password']); + } + elseif (\array_key_exists('forgot_password', $data) && $data['forgot_password'] === null) { + $object->setForgotPassword(null); + } + if (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] !== null) { + $object->setUpdateUserAttribute($this->denormalizer->denormalize($data['update_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['update_user_attribute']); + } + elseif (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] === null) { + $object->setUpdateUserAttribute(null); + } + if (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] !== null) { + $object->setVerifyUserAttribute($this->denormalizer->denormalize($data['verify_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_user_attribute']); + } + elseif (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] === null) { + $object->setVerifyUserAttribute(null); + } + if (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] !== null) { + $object->setAuthenticationMfa($this->denormalizer->denormalize($data['authentication_mfa'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['authentication_mfa']); + } + elseif (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] === null) { + $object->setAuthenticationMfa(null); + } + if (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] !== null) { + $object->setInviteTenantUser($this->denormalizer->denormalize($data['invite_tenant_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['invite_tenant_user']); + } + elseif (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] === null) { + $object->setInviteTenantUser(null); + } + if (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] !== null) { + $object->setVerifyExternalUser($this->denormalizer->denormalize($data['verify_external_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_external_user']); + } + elseif (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] === null) { + $object->setVerifyExternalUser(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('sign_up', $data) && $data['sign_up'] !== null) { - $object->setSignUp($this->denormalizer->denormalize($data['sign_up'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['sign_up']); - } - elseif (\array_key_exists('sign_up', $data) && $data['sign_up'] === null) { - $object->setSignUp(null); - } - if (\array_key_exists('create_user', $data) && $data['create_user'] !== null) { - $object->setCreateUser($this->denormalizer->denormalize($data['create_user'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['create_user']); - } - elseif (\array_key_exists('create_user', $data) && $data['create_user'] === null) { - $object->setCreateUser(null); - } - if (\array_key_exists('resend_code', $data) && $data['resend_code'] !== null) { - $object->setResendCode($this->denormalizer->denormalize($data['resend_code'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['resend_code']); - } - elseif (\array_key_exists('resend_code', $data) && $data['resend_code'] === null) { - $object->setResendCode(null); - } - if (\array_key_exists('forgot_password', $data) && $data['forgot_password'] !== null) { - $object->setForgotPassword($this->denormalizer->denormalize($data['forgot_password'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['forgot_password']); - } - elseif (\array_key_exists('forgot_password', $data) && $data['forgot_password'] === null) { - $object->setForgotPassword(null); - } - if (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] !== null) { - $object->setUpdateUserAttribute($this->denormalizer->denormalize($data['update_user_attribute'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['update_user_attribute']); - } - elseif (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] === null) { - $object->setUpdateUserAttribute(null); - } - if (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] !== null) { - $object->setVerifyUserAttribute($this->denormalizer->denormalize($data['verify_user_attribute'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['verify_user_attribute']); - } - elseif (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] === null) { - $object->setVerifyUserAttribute(null); - } - if (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] !== null) { - $object->setAuthenticationMfa($this->denormalizer->denormalize($data['authentication_mfa'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['authentication_mfa']); - } - elseif (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] === null) { - $object->setAuthenticationMfa(null); - } - if (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] !== null) { - $object->setInviteTenantUser($this->denormalizer->denormalize($data['invite_tenant_user'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['invite_tenant_user']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['sign_up'] = $this->normalizer->normalize($object->getSignUp(), 'json', $context); + $data['create_user'] = $this->normalizer->normalize($object->getCreateUser(), 'json', $context); + $data['resend_code'] = $this->normalizer->normalize($object->getResendCode(), 'json', $context); + $data['forgot_password'] = $this->normalizer->normalize($object->getForgotPassword(), 'json', $context); + $data['update_user_attribute'] = $this->normalizer->normalize($object->getUpdateUserAttribute(), 'json', $context); + $data['verify_user_attribute'] = $this->normalizer->normalize($object->getVerifyUserAttribute(), 'json', $context); + $data['authentication_mfa'] = $this->normalizer->normalize($object->getAuthenticationMfa(), 'json', $context); + $data['invite_tenant_user'] = $this->normalizer->normalize($object->getInviteTenantUser(), 'json', $context); + $data['verify_external_user'] = $this->normalizer->normalize($object->getVerifyExternalUser(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] === null) { - $object->setInviteTenantUser(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class => false]; } - if (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] !== null) { - $object->setVerifyExternalUser($this->denormalizer->denormalize($data['verify_external_user'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['verify_external_user']); + } +} else { + class NotificationMessagesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class; } - elseif (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] === null) { - $object->setVerifyExternalUser(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up', $data) && $data['sign_up'] !== null) { + $object->setSignUp($this->denormalizer->denormalize($data['sign_up'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['sign_up']); + } + elseif (\array_key_exists('sign_up', $data) && $data['sign_up'] === null) { + $object->setSignUp(null); + } + if (\array_key_exists('create_user', $data) && $data['create_user'] !== null) { + $object->setCreateUser($this->denormalizer->denormalize($data['create_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['create_user']); + } + elseif (\array_key_exists('create_user', $data) && $data['create_user'] === null) { + $object->setCreateUser(null); + } + if (\array_key_exists('resend_code', $data) && $data['resend_code'] !== null) { + $object->setResendCode($this->denormalizer->denormalize($data['resend_code'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['resend_code']); + } + elseif (\array_key_exists('resend_code', $data) && $data['resend_code'] === null) { + $object->setResendCode(null); + } + if (\array_key_exists('forgot_password', $data) && $data['forgot_password'] !== null) { + $object->setForgotPassword($this->denormalizer->denormalize($data['forgot_password'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['forgot_password']); + } + elseif (\array_key_exists('forgot_password', $data) && $data['forgot_password'] === null) { + $object->setForgotPassword(null); } + if (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] !== null) { + $object->setUpdateUserAttribute($this->denormalizer->denormalize($data['update_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['update_user_attribute']); + } + elseif (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] === null) { + $object->setUpdateUserAttribute(null); + } + if (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] !== null) { + $object->setVerifyUserAttribute($this->denormalizer->denormalize($data['verify_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_user_attribute']); + } + elseif (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] === null) { + $object->setVerifyUserAttribute(null); + } + if (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] !== null) { + $object->setAuthenticationMfa($this->denormalizer->denormalize($data['authentication_mfa'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['authentication_mfa']); + } + elseif (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] === null) { + $object->setAuthenticationMfa(null); + } + if (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] !== null) { + $object->setInviteTenantUser($this->denormalizer->denormalize($data['invite_tenant_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['invite_tenant_user']); + } + elseif (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] === null) { + $object->setInviteTenantUser(null); + } + if (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] !== null) { + $object->setVerifyExternalUser($this->denormalizer->denormalize($data['verify_external_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_external_user']); + } + elseif (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] === null) { + $object->setVerifyExternalUser(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['sign_up'] = $this->normalizer->normalize($object->getSignUp(), 'json', $context); - $data['create_user'] = $this->normalizer->normalize($object->getCreateUser(), 'json', $context); - $data['resend_code'] = $this->normalizer->normalize($object->getResendCode(), 'json', $context); - $data['forgot_password'] = $this->normalizer->normalize($object->getForgotPassword(), 'json', $context); - $data['update_user_attribute'] = $this->normalizer->normalize($object->getUpdateUserAttribute(), 'json', $context); - $data['verify_user_attribute'] = $this->normalizer->normalize($object->getVerifyUserAttribute(), 'json', $context); - $data['authentication_mfa'] = $this->normalizer->normalize($object->getAuthenticationMfa(), 'json', $context); - $data['invite_tenant_user'] = $this->normalizer->normalize($object->getInviteTenantUser(), 'json', $context); - $data['verify_external_user'] = $this->normalizer->normalize($object->getVerifyExternalUser(), 'json', $context); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['sign_up'] = $this->normalizer->normalize($object->getSignUp(), 'json', $context); + $data['create_user'] = $this->normalizer->normalize($object->getCreateUser(), 'json', $context); + $data['resend_code'] = $this->normalizer->normalize($object->getResendCode(), 'json', $context); + $data['forgot_password'] = $this->normalizer->normalize($object->getForgotPassword(), 'json', $context); + $data['update_user_attribute'] = $this->normalizer->normalize($object->getUpdateUserAttribute(), 'json', $context); + $data['verify_user_attribute'] = $this->normalizer->normalize($object->getVerifyUserAttribute(), 'json', $context); + $data['authentication_mfa'] = $this->normalizer->normalize($object->getAuthenticationMfa(), 'json', $context); + $data['invite_tenant_user'] = $this->normalizer->normalize($object->getInviteTenantUser(), 'json', $context); + $data['verify_external_user'] = $this->normalizer->normalize($object->getVerifyExternalUser(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\NotificationMessages::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\NotificationMessages' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/PasswordPolicyNormalizer.php b/generated/Auth/Normalizer/PasswordPolicyNormalizer.php index c6427c1..7c2ca7d 100644 --- a/generated/Auth/Normalizer/PasswordPolicyNormalizer.php +++ b/generated/Auth/Normalizer/PasswordPolicyNormalizer.php @@ -12,105 +12,205 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PasswordPolicyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PasswordPolicyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('minimum_length', $data) && $data['minimum_length'] !== null) { + $object->setMinimumLength($data['minimum_length']); + unset($data['minimum_length']); + } + elseif (\array_key_exists('minimum_length', $data) && $data['minimum_length'] === null) { + $object->setMinimumLength(null); + } + if (\array_key_exists('is_require_lowercase', $data) && $data['is_require_lowercase'] !== null) { + $object->setIsRequireLowercase($data['is_require_lowercase']); + unset($data['is_require_lowercase']); + } + elseif (\array_key_exists('is_require_lowercase', $data) && $data['is_require_lowercase'] === null) { + $object->setIsRequireLowercase(null); + } + if (\array_key_exists('is_require_numbers', $data) && $data['is_require_numbers'] !== null) { + $object->setIsRequireNumbers($data['is_require_numbers']); + unset($data['is_require_numbers']); + } + elseif (\array_key_exists('is_require_numbers', $data) && $data['is_require_numbers'] === null) { + $object->setIsRequireNumbers(null); + } + if (\array_key_exists('is_require_symbols', $data) && $data['is_require_symbols'] !== null) { + $object->setIsRequireSymbols($data['is_require_symbols']); + unset($data['is_require_symbols']); + } + elseif (\array_key_exists('is_require_symbols', $data) && $data['is_require_symbols'] === null) { + $object->setIsRequireSymbols(null); + } + if (\array_key_exists('is_require_uppercase', $data) && $data['is_require_uppercase'] !== null) { + $object->setIsRequireUppercase($data['is_require_uppercase']); + unset($data['is_require_uppercase']); + } + elseif (\array_key_exists('is_require_uppercase', $data) && $data['is_require_uppercase'] === null) { + $object->setIsRequireUppercase(null); + } + if (\array_key_exists('temporary_password_validity_days', $data) && $data['temporary_password_validity_days'] !== null) { + $object->setTemporaryPasswordValidityDays($data['temporary_password_validity_days']); + unset($data['temporary_password_validity_days']); + } + elseif (\array_key_exists('temporary_password_validity_days', $data) && $data['temporary_password_validity_days'] === null) { + $object->setTemporaryPasswordValidityDays(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('minimum_length', $data) && $data['minimum_length'] !== null) { - $object->setMinimumLength($data['minimum_length']); - unset($data['minimum_length']); - } - elseif (\array_key_exists('minimum_length', $data) && $data['minimum_length'] === null) { - $object->setMinimumLength(null); - } - if (\array_key_exists('is_require_lowercase', $data) && $data['is_require_lowercase'] !== null) { - $object->setIsRequireLowercase($data['is_require_lowercase']); - unset($data['is_require_lowercase']); - } - elseif (\array_key_exists('is_require_lowercase', $data) && $data['is_require_lowercase'] === null) { - $object->setIsRequireLowercase(null); - } - if (\array_key_exists('is_require_numbers', $data) && $data['is_require_numbers'] !== null) { - $object->setIsRequireNumbers($data['is_require_numbers']); - unset($data['is_require_numbers']); - } - elseif (\array_key_exists('is_require_numbers', $data) && $data['is_require_numbers'] === null) { - $object->setIsRequireNumbers(null); - } - if (\array_key_exists('is_require_symbols', $data) && $data['is_require_symbols'] !== null) { - $object->setIsRequireSymbols($data['is_require_symbols']); - unset($data['is_require_symbols']); - } - elseif (\array_key_exists('is_require_symbols', $data) && $data['is_require_symbols'] === null) { - $object->setIsRequireSymbols(null); - } - if (\array_key_exists('is_require_uppercase', $data) && $data['is_require_uppercase'] !== null) { - $object->setIsRequireUppercase($data['is_require_uppercase']); - unset($data['is_require_uppercase']); - } - elseif (\array_key_exists('is_require_uppercase', $data) && $data['is_require_uppercase'] === null) { - $object->setIsRequireUppercase(null); - } - if (\array_key_exists('temporary_password_validity_days', $data) && $data['temporary_password_validity_days'] !== null) { - $object->setTemporaryPasswordValidityDays($data['temporary_password_validity_days']); - unset($data['temporary_password_validity_days']); - } - elseif (\array_key_exists('temporary_password_validity_days', $data) && $data['temporary_password_validity_days'] === null) { - $object->setTemporaryPasswordValidityDays(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['minimum_length'] = $object->getMinimumLength(); + $data['is_require_lowercase'] = $object->getIsRequireLowercase(); + $data['is_require_numbers'] = $object->getIsRequireNumbers(); + $data['is_require_symbols'] = $object->getIsRequireSymbols(); + $data['is_require_uppercase'] = $object->getIsRequireUppercase(); + $data['temporary_password_validity_days'] = $object->getTemporaryPasswordValidityDays(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PasswordPolicyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['minimum_length'] = $object->getMinimumLength(); - $data['is_require_lowercase'] = $object->getIsRequireLowercase(); - $data['is_require_numbers'] = $object->getIsRequireNumbers(); - $data['is_require_symbols'] = $object->getIsRequireSymbols(); - $data['is_require_uppercase'] = $object->getIsRequireUppercase(); - $data['temporary_password_validity_days'] = $object->getTemporaryPasswordValidityDays(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('minimum_length', $data) && $data['minimum_length'] !== null) { + $object->setMinimumLength($data['minimum_length']); + unset($data['minimum_length']); + } + elseif (\array_key_exists('minimum_length', $data) && $data['minimum_length'] === null) { + $object->setMinimumLength(null); + } + if (\array_key_exists('is_require_lowercase', $data) && $data['is_require_lowercase'] !== null) { + $object->setIsRequireLowercase($data['is_require_lowercase']); + unset($data['is_require_lowercase']); + } + elseif (\array_key_exists('is_require_lowercase', $data) && $data['is_require_lowercase'] === null) { + $object->setIsRequireLowercase(null); + } + if (\array_key_exists('is_require_numbers', $data) && $data['is_require_numbers'] !== null) { + $object->setIsRequireNumbers($data['is_require_numbers']); + unset($data['is_require_numbers']); } + elseif (\array_key_exists('is_require_numbers', $data) && $data['is_require_numbers'] === null) { + $object->setIsRequireNumbers(null); + } + if (\array_key_exists('is_require_symbols', $data) && $data['is_require_symbols'] !== null) { + $object->setIsRequireSymbols($data['is_require_symbols']); + unset($data['is_require_symbols']); + } + elseif (\array_key_exists('is_require_symbols', $data) && $data['is_require_symbols'] === null) { + $object->setIsRequireSymbols(null); + } + if (\array_key_exists('is_require_uppercase', $data) && $data['is_require_uppercase'] !== null) { + $object->setIsRequireUppercase($data['is_require_uppercase']); + unset($data['is_require_uppercase']); + } + elseif (\array_key_exists('is_require_uppercase', $data) && $data['is_require_uppercase'] === null) { + $object->setIsRequireUppercase(null); + } + if (\array_key_exists('temporary_password_validity_days', $data) && $data['temporary_password_validity_days'] !== null) { + $object->setTemporaryPasswordValidityDays($data['temporary_password_validity_days']); + unset($data['temporary_password_validity_days']); + } + elseif (\array_key_exists('temporary_password_validity_days', $data) && $data['temporary_password_validity_days'] === null) { + $object->setTemporaryPasswordValidityDays(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['minimum_length'] = $object->getMinimumLength(); + $data['is_require_lowercase'] = $object->getIsRequireLowercase(); + $data['is_require_numbers'] = $object->getIsRequireNumbers(); + $data['is_require_symbols'] = $object->getIsRequireSymbols(); + $data['is_require_uppercase'] = $object->getIsRequireUppercase(); + $data['temporary_password_validity_days'] = $object->getTemporaryPasswordValidityDays(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/PlanHistoriesNormalizer.php b/generated/Auth/Normalizer/PlanHistoriesNormalizer.php index 1b2e3f3..b8dd0e1 100644 --- a/generated/Auth/Normalizer/PlanHistoriesNormalizer.php +++ b/generated/Auth/Normalizer/PlanHistoriesNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PlanHistoriesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PlanHistoriesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistories'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistories'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { + $values = []; + foreach ($data['plan_histories'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class, 'json', $context); + } + $object->setPlanHistories($values); + unset($data['plan_histories']); + } + elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { + $object->setPlanHistories(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { - $values = array(); - foreach ($data['plan_histories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getPlanHistories() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setPlanHistories($values); - unset($data['plan_histories']); - } - elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { - $object->setPlanHistories(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['plan_histories'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PlanHistoriesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getPlanHistories() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class; } - $data['plan_histories'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { + $values = []; + foreach ($data['plan_histories'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class, 'json', $context); + } + $object->setPlanHistories($values); + unset($data['plan_histories']); } + elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { + $object->setPlanHistories(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getPlanHistories() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['plan_histories'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistories::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistories' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/PlanHistoryNormalizer.php b/generated/Auth/Normalizer/PlanHistoryNormalizer.php index d4e3cd8..d31f1df 100644 --- a/generated/Auth/Normalizer/PlanHistoryNormalizer.php +++ b/generated/Auth/Normalizer/PlanHistoryNormalizer.php @@ -12,103 +12,201 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PlanHistoryNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PlanHistoryNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('plan_applied_at', $data) && $data['plan_applied_at'] !== null) { + $object->setPlanAppliedAt($data['plan_applied_at']); + unset($data['plan_applied_at']); + } + elseif (\array_key_exists('plan_applied_at', $data) && $data['plan_applied_at'] === null) { + $object->setPlanAppliedAt(null); + } + if (\array_key_exists('tax_rate_id', $data) && $data['tax_rate_id'] !== null) { + $object->setTaxRateId($data['tax_rate_id']); + unset($data['tax_rate_id']); + } + elseif (\array_key_exists('tax_rate_id', $data) && $data['tax_rate_id'] === null) { + $object->setTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { - $object->setPlanId($data['plan_id']); - unset($data['plan_id']); - } - elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { - $object->setPlanId(null); - } - if (\array_key_exists('plan_applied_at', $data) && $data['plan_applied_at'] !== null) { - $object->setPlanAppliedAt($data['plan_applied_at']); - unset($data['plan_applied_at']); - } - elseif (\array_key_exists('plan_applied_at', $data) && $data['plan_applied_at'] === null) { - $object->setPlanAppliedAt(null); - } - if (\array_key_exists('tax_rate_id', $data) && $data['tax_rate_id'] !== null) { - $object->setTaxRateId($data['tax_rate_id']); - unset($data['tax_rate_id']); - } - elseif (\array_key_exists('tax_rate_id', $data) && $data['tax_rate_id'] === null) { - $object->setTaxRateId(null); - } - if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { - $object->setProrationBehavior($data['proration_behavior']); - unset($data['proration_behavior']); - } - elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { - $object->setProrationBehavior(null); - } - if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { - $object->setDeleteUsage($data['delete_usage']); - unset($data['delete_usage']); - } - elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { - $object->setDeleteUsage(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['plan_id'] = $object->getPlanId(); + $data['plan_applied_at'] = $object->getPlanAppliedAt(); + if ($object->isInitialized('taxRateId') && null !== $object->getTaxRateId()) { + $data['tax_rate_id'] = $object->getTaxRateId(); + } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); + } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PlanHistoryNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['plan_id'] = $object->getPlanId(); - $data['plan_applied_at'] = $object->getPlanAppliedAt(); - if ($object->isInitialized('taxRateId') && null !== $object->getTaxRateId()) { - $data['tax_rate_id'] = $object->getTaxRateId(); - } - if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { - $data['proration_behavior'] = $object->getProrationBehavior(); - } - if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { - $data['delete_usage'] = $object->getDeleteUsage(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('plan_applied_at', $data) && $data['plan_applied_at'] !== null) { + $object->setPlanAppliedAt($data['plan_applied_at']); + unset($data['plan_applied_at']); + } + elseif (\array_key_exists('plan_applied_at', $data) && $data['plan_applied_at'] === null) { + $object->setPlanAppliedAt(null); + } + if (\array_key_exists('tax_rate_id', $data) && $data['tax_rate_id'] !== null) { + $object->setTaxRateId($data['tax_rate_id']); + unset($data['tax_rate_id']); + } + elseif (\array_key_exists('tax_rate_id', $data) && $data['tax_rate_id'] === null) { + $object->setTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['plan_id'] = $object->getPlanId(); + $data['plan_applied_at'] = $object->getPlanAppliedAt(); + if ($object->isInitialized('taxRateId') && null !== $object->getTaxRateId()) { + $data['tax_rate_id'] = $object->getTaxRateId(); + } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); + } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/PlanReservationNormalizer.php b/generated/Auth/Normalizer/PlanReservationNormalizer.php index b8f1080..77597b0 100644 --- a/generated/Auth/Normalizer/PlanReservationNormalizer.php +++ b/generated/Auth/Normalizer/PlanReservationNormalizer.php @@ -12,107 +12,209 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PlanReservationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PlanReservationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanReservation'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanReservation'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { + $object->setNextPlanId($data['next_plan_id']); + unset($data['next_plan_id']); + } + elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { + $object->setNextPlanId(null); + } + if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { + $object->setUsingNextPlanFrom($data['using_next_plan_from']); + unset($data['using_next_plan_from']); + } + elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { + $object->setUsingNextPlanFrom(null); + } + if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { + $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); + unset($data['next_plan_tax_rate_id']); + } + elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { + $object->setNextPlanTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { - $object->setNextPlanId($data['next_plan_id']); - unset($data['next_plan_id']); - } - elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { - $object->setNextPlanId(null); - } - if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { - $object->setUsingNextPlanFrom($data['using_next_plan_from']); - unset($data['using_next_plan_from']); - } - elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { - $object->setUsingNextPlanFrom(null); - } - if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { - $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); - unset($data['next_plan_tax_rate_id']); - } - elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { - $object->setNextPlanTaxRateId(null); - } - if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { - $object->setProrationBehavior($data['proration_behavior']); - unset($data['proration_behavior']); - } - elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { - $object->setProrationBehavior(null); - } - if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { - $object->setDeleteUsage($data['delete_usage']); - unset($data['delete_usage']); - } - elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { - $object->setDeleteUsage(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { + $data['next_plan_id'] = $object->getNextPlanId(); + } + if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { + $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); + } + if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { + $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); + } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PlanReservationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { - $data['next_plan_id'] = $object->getNextPlanId(); - } - if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { - $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); - } - if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { - $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); - } - if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { - $data['proration_behavior'] = $object->getProrationBehavior(); - } - if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { - $data['delete_usage'] = $object->getDeleteUsage(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { + $object->setNextPlanId($data['next_plan_id']); + unset($data['next_plan_id']); + } + elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { + $object->setNextPlanId(null); + } + if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { + $object->setUsingNextPlanFrom($data['using_next_plan_from']); + unset($data['using_next_plan_from']); + } + elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { + $object->setUsingNextPlanFrom(null); + } + if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { + $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); + unset($data['next_plan_tax_rate_id']); + } + elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { + $object->setNextPlanTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { + $data['next_plan_id'] = $object->getNextPlanId(); + } + if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { + $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); } + if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { + $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); + } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); + } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\PlanReservation::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanReservation' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/RecaptchaPropsNormalizer.php b/generated/Auth/Normalizer/RecaptchaPropsNormalizer.php index cf7fc4f..d9dc48d 100644 --- a/generated/Auth/Normalizer/RecaptchaPropsNormalizer.php +++ b/generated/Auth/Normalizer/RecaptchaPropsNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class RecaptchaPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class RecaptchaPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('site_key', $data) && $data['site_key'] !== null) { + $object->setSiteKey($data['site_key']); + unset($data['site_key']); + } + elseif (\array_key_exists('site_key', $data) && $data['site_key'] === null) { + $object->setSiteKey(null); + } + if (\array_key_exists('secret_key', $data) && $data['secret_key'] !== null) { + $object->setSecretKey($data['secret_key']); + unset($data['secret_key']); + } + elseif (\array_key_exists('secret_key', $data) && $data['secret_key'] === null) { + $object->setSecretKey(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('site_key', $data) && $data['site_key'] !== null) { - $object->setSiteKey($data['site_key']); - unset($data['site_key']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['site_key'] = $object->getSiteKey(); + $data['secret_key'] = $object->getSecretKey(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('site_key', $data) && $data['site_key'] === null) { - $object->setSiteKey(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class => false]; } - if (\array_key_exists('secret_key', $data) && $data['secret_key'] !== null) { - $object->setSecretKey($data['secret_key']); - unset($data['secret_key']); + } +} else { + class RecaptchaPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class; } - elseif (\array_key_exists('secret_key', $data) && $data['secret_key'] === null) { - $object->setSecretKey(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('site_key', $data) && $data['site_key'] !== null) { + $object->setSiteKey($data['site_key']); + unset($data['site_key']); + } + elseif (\array_key_exists('site_key', $data) && $data['site_key'] === null) { + $object->setSiteKey(null); + } + if (\array_key_exists('secret_key', $data) && $data['secret_key'] !== null) { + $object->setSecretKey($data['secret_key']); + unset($data['secret_key']); + } + elseif (\array_key_exists('secret_key', $data) && $data['secret_key'] === null) { + $object->setSecretKey(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['site_key'] = $object->getSiteKey(); - $data['secret_key'] = $object->getSecretKey(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['site_key'] = $object->getSiteKey(); + $data['secret_key'] = $object->getSecretKey(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/RequestEmailUpdateParamNormalizer.php b/generated/Auth/Normalizer/RequestEmailUpdateParamNormalizer.php index 87f3ed9..cac04bb 100644 --- a/generated/Auth/Normalizer/RequestEmailUpdateParamNormalizer.php +++ b/generated/Auth/Normalizer/RequestEmailUpdateParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class RequestEmailUpdateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class RequestEmailUpdateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestEmailUpdateParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestEmailUpdateParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class => false]; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + } +} else { + class RequestEmailUpdateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['email'] = $object->getEmail(); - $data['access_token'] = $object->getAccessToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestEmailUpdateParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestEmailUpdateParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/RequestExternalUserLinkParamNormalizer.php b/generated/Auth/Normalizer/RequestExternalUserLinkParamNormalizer.php index 0cbbd31..d038fb2 100644 --- a/generated/Auth/Normalizer/RequestExternalUserLinkParamNormalizer.php +++ b/generated/Auth/Normalizer/RequestExternalUserLinkParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class RequestExternalUserLinkParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class RequestExternalUserLinkParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestExternalUserLinkParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestExternalUserLinkParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); - } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class RequestExternalUserLinkParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['access_token'] = $object->getAccessToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\RequestExternalUserLinkParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RequestExternalUserLinkParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ResendSignUpConfirmationEmailParamNormalizer.php b/generated/Auth/Normalizer/ResendSignUpConfirmationEmailParamNormalizer.php index 541ac94..2107577 100644 --- a/generated/Auth/Normalizer/ResendSignUpConfirmationEmailParamNormalizer.php +++ b/generated/Auth/Normalizer/ResendSignUpConfirmationEmailParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ResendSignUpConfirmationEmailParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ResendSignUpConfirmationEmailParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ResendSignUpConfirmationEmailParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ResendSignUpConfirmationEmailParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class ResendSignUpConfirmationEmailParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['email'] = $object->getEmail(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ResendSignUpConfirmationEmailParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ResendSignUpConfirmationEmailParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/RoleNormalizer.php b/generated/Auth/Normalizer/RoleNormalizer.php index 0534632..49466a9 100644 --- a/generated/Auth/Normalizer/RoleNormalizer.php +++ b/generated/Auth/Normalizer/RoleNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class RoleNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class RoleNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Role(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Role(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('role_name', $data) && $data['role_name'] !== null) { + $object->setRoleName($data['role_name']); + unset($data['role_name']); + } + elseif (\array_key_exists('role_name', $data) && $data['role_name'] === null) { + $object->setRoleName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('role_name', $data) && $data['role_name'] !== null) { - $object->setRoleName($data['role_name']); - unset($data['role_name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['role_name'] = $object->getRoleName(); + $data['display_name'] = $object->getDisplayName(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('role_name', $data) && $data['role_name'] === null) { - $object->setRoleName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class => false]; } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + } +} else { + class RoleNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Role(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('role_name', $data) && $data['role_name'] !== null) { + $object->setRoleName($data['role_name']); + unset($data['role_name']); + } + elseif (\array_key_exists('role_name', $data) && $data['role_name'] === null) { + $object->setRoleName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['role_name'] = $object->getRoleName(); - $data['display_name'] = $object->getDisplayName(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['role_name'] = $object->getRoleName(); + $data['display_name'] = $object->getDisplayName(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/RolesNormalizer.php b/generated/Auth/Normalizer/RolesNormalizer.php index d94ea07..df773a5 100644 --- a/generated/Auth/Normalizer/RolesNormalizer.php +++ b/generated/Auth/Normalizer/RolesNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class RolesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class RolesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Roles'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Roles'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('roles', $data) && $data['roles'] !== null) { + $values = []; + foreach ($data['roles'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class, 'json', $context); + } + $object->setRoles($values); + unset($data['roles']); + } + elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { + $object->setRoles(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('roles', $data) && $data['roles'] !== null) { - $values = array(); - foreach ($data['roles'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getRoles() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setRoles($values); - unset($data['roles']); - } - elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { - $object->setRoles(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['roles'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class RolesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getRoles() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class; } - $data['roles'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Roles(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('roles', $data) && $data['roles'] !== null) { + $values = []; + foreach ($data['roles'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class, 'json', $context); + } + $object->setRoles($values); + unset($data['roles']); } + elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { + $object->setRoles(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getRoles() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['roles'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Roles::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Roles' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SaasIdNormalizer.php b/generated/Auth/Normalizer/SaasIdNormalizer.php index 661f58d..c89278c 100644 --- a/generated/Auth/Normalizer/SaasIdNormalizer.php +++ b/generated/Auth/Normalizer/SaasIdNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SaasIdNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SaasIdNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasId'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasId'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('env_id', $data) && $data['env_id'] !== null) { + $object->setEnvId($data['env_id']); + unset($data['env_id']); + } + elseif (\array_key_exists('env_id', $data) && $data['env_id'] === null) { + $object->setEnvId(null); + } + if (\array_key_exists('saas_id', $data) && $data['saas_id'] !== null) { + $object->setSaasId($data['saas_id']); + unset($data['saas_id']); + } + elseif (\array_key_exists('saas_id', $data) && $data['saas_id'] === null) { + $object->setSaasId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { - $object->setTenantId($data['tenant_id']); - unset($data['tenant_id']); - } - elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { - $object->setTenantId(null); - } - if (\array_key_exists('env_id', $data) && $data['env_id'] !== null) { - $object->setEnvId($data['env_id']); - unset($data['env_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['tenant_id'] = $object->getTenantId(); + $data['env_id'] = $object->getEnvId(); + $data['saas_id'] = $object->getSaasId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('env_id', $data) && $data['env_id'] === null) { - $object->setEnvId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class => false]; } - if (\array_key_exists('saas_id', $data) && $data['saas_id'] !== null) { - $object->setSaasId($data['saas_id']); - unset($data['saas_id']); + } +} else { + class SaasIdNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class; } - elseif (\array_key_exists('saas_id', $data) && $data['saas_id'] === null) { - $object->setSaasId(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('env_id', $data) && $data['env_id'] !== null) { + $object->setEnvId($data['env_id']); + unset($data['env_id']); + } + elseif (\array_key_exists('env_id', $data) && $data['env_id'] === null) { + $object->setEnvId(null); + } + if (\array_key_exists('saas_id', $data) && $data['saas_id'] !== null) { + $object->setSaasId($data['saas_id']); + unset($data['saas_id']); } + elseif (\array_key_exists('saas_id', $data) && $data['saas_id'] === null) { + $object->setSaasId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['tenant_id'] = $object->getTenantId(); - $data['env_id'] = $object->getEnvId(); - $data['saas_id'] = $object->getSaasId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tenant_id'] = $object->getTenantId(); + $data['env_id'] = $object->getEnvId(); + $data['saas_id'] = $object->getSaasId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasId::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasId' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SaasUserNormalizer.php b/generated/Auth/Normalizer/SaasUserNormalizer.php index 593fa72..d8200d8 100644 --- a/generated/Auth/Normalizer/SaasUserNormalizer.php +++ b/generated/Auth/Normalizer/SaasUserNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SaasUserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SaasUserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class => false]; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); + } +} else { + class SaasUserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class; } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['id'] = $object->getId(); - $data['email'] = $object->getEmail(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SaasUsersNormalizer.php b/generated/Auth/Normalizer/SaasUsersNormalizer.php index 6d07ace..d9e8295 100644 --- a/generated/Auth/Normalizer/SaasUsersNormalizer.php +++ b/generated/Auth/Normalizer/SaasUsersNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SaasUsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SaasUsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUsers'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUsers'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('users', $data) && $data['users'] !== null) { - $values = array(); - foreach ($data['users'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUser', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setUsers($values); - unset($data['users']); - } - elseif (\array_key_exists('users', $data) && $data['users'] === null) { - $object->setUsers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class SaasUsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getUsers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class; } - $data['users'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUser::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SaasUsers::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SaasUsers' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SelfRegistNormalizer.php b/generated/Auth/Normalizer/SelfRegistNormalizer.php index 905fd08..60252ec 100644 --- a/generated/Auth/Normalizer/SelfRegistNormalizer.php +++ b/generated/Auth/Normalizer/SelfRegistNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SelfRegistNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SelfRegistNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enable', $data) && $data['enable'] !== null) { + $object->setEnable($data['enable']); + unset($data['enable']); + } + elseif (\array_key_exists('enable', $data) && $data['enable'] === null) { + $object->setEnable(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('enable', $data) && $data['enable'] !== null) { - $object->setEnable($data['enable']); - unset($data['enable']); - } - elseif (\array_key_exists('enable', $data) && $data['enable'] === null) { - $object->setEnable(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['enable'] = $object->getEnable(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class SelfRegistNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['enable'] = $object->getEnable(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enable', $data) && $data['enable'] !== null) { + $object->setEnable($data['enable']); + unset($data['enable']); + } + elseif (\array_key_exists('enable', $data) && $data['enable'] === null) { + $object->setEnable(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['enable'] = $object->getEnable(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SignInSettingsNormalizer.php b/generated/Auth/Normalizer/SignInSettingsNormalizer.php index 43397c0..6b7f4b5 100644 --- a/generated/Auth/Normalizer/SignInSettingsNormalizer.php +++ b/generated/Auth/Normalizer/SignInSettingsNormalizer.php @@ -12,113 +12,221 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SignInSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SignInSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignInSettings'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignInSettings'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('password_policy', $data) && $data['password_policy'] !== null) { + $object->setPasswordPolicy($this->denormalizer->denormalize($data['password_policy'], \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class, 'json', $context)); + unset($data['password_policy']); + } + elseif (\array_key_exists('password_policy', $data) && $data['password_policy'] === null) { + $object->setPasswordPolicy(null); + } + if (\array_key_exists('device_configuration', $data) && $data['device_configuration'] !== null) { + $object->setDeviceConfiguration($this->denormalizer->denormalize($data['device_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class, 'json', $context)); + unset($data['device_configuration']); + } + elseif (\array_key_exists('device_configuration', $data) && $data['device_configuration'] === null) { + $object->setDeviceConfiguration(null); + } + if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { + $object->setMfaConfiguration($this->denormalizer->denormalize($data['mfa_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class, 'json', $context)); + unset($data['mfa_configuration']); + } + elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { + $object->setMfaConfiguration(null); + } + if (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] !== null) { + $object->setRecaptchaProps($this->denormalizer->denormalize($data['recaptcha_props'], \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class, 'json', $context)); + unset($data['recaptcha_props']); + } + elseif (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] === null) { + $object->setRecaptchaProps(null); + } + if (\array_key_exists('account_verification', $data) && $data['account_verification'] !== null) { + $object->setAccountVerification($this->denormalizer->denormalize($data['account_verification'], \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class, 'json', $context)); + unset($data['account_verification']); + } + elseif (\array_key_exists('account_verification', $data) && $data['account_verification'] === null) { + $object->setAccountVerification(null); + } + if (\array_key_exists('self_regist', $data) && $data['self_regist'] !== null) { + $object->setSelfRegist($this->denormalizer->denormalize($data['self_regist'], \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class, 'json', $context)); + unset($data['self_regist']); + } + elseif (\array_key_exists('self_regist', $data) && $data['self_regist'] === null) { + $object->setSelfRegist(null); + } + if (\array_key_exists('identity_provider_configuration', $data) && $data['identity_provider_configuration'] !== null) { + $object->setIdentityProviderConfiguration($this->denormalizer->denormalize($data['identity_provider_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class, 'json', $context)); + unset($data['identity_provider_configuration']); + } + elseif (\array_key_exists('identity_provider_configuration', $data) && $data['identity_provider_configuration'] === null) { + $object->setIdentityProviderConfiguration(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('password_policy', $data) && $data['password_policy'] !== null) { - $object->setPasswordPolicy($this->denormalizer->denormalize($data['password_policy'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy', 'json', $context)); - unset($data['password_policy']); - } - elseif (\array_key_exists('password_policy', $data) && $data['password_policy'] === null) { - $object->setPasswordPolicy(null); - } - if (\array_key_exists('device_configuration', $data) && $data['device_configuration'] !== null) { - $object->setDeviceConfiguration($this->denormalizer->denormalize($data['device_configuration'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration', 'json', $context)); - unset($data['device_configuration']); - } - elseif (\array_key_exists('device_configuration', $data) && $data['device_configuration'] === null) { - $object->setDeviceConfiguration(null); - } - if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { - $object->setMfaConfiguration($this->denormalizer->denormalize($data['mfa_configuration'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration', 'json', $context)); - unset($data['mfa_configuration']); - } - elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { - $object->setMfaConfiguration(null); - } - if (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] !== null) { - $object->setRecaptchaProps($this->denormalizer->denormalize($data['recaptcha_props'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps', 'json', $context)); - unset($data['recaptcha_props']); - } - elseif (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] === null) { - $object->setRecaptchaProps(null); - } - if (\array_key_exists('account_verification', $data) && $data['account_verification'] !== null) { - $object->setAccountVerification($this->denormalizer->denormalize($data['account_verification'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification', 'json', $context)); - unset($data['account_verification']); - } - elseif (\array_key_exists('account_verification', $data) && $data['account_verification'] === null) { - $object->setAccountVerification(null); - } - if (\array_key_exists('self_regist', $data) && $data['self_regist'] !== null) { - $object->setSelfRegist($this->denormalizer->denormalize($data['self_regist'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist', 'json', $context)); - unset($data['self_regist']); - } - elseif (\array_key_exists('self_regist', $data) && $data['self_regist'] === null) { - $object->setSelfRegist(null); - } - if (\array_key_exists('identity_provider_configuration', $data) && $data['identity_provider_configuration'] !== null) { - $object->setIdentityProviderConfiguration($this->denormalizer->denormalize($data['identity_provider_configuration'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderConfiguration', 'json', $context)); - unset($data['identity_provider_configuration']); - } - elseif (\array_key_exists('identity_provider_configuration', $data) && $data['identity_provider_configuration'] === null) { - $object->setIdentityProviderConfiguration(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['password_policy'] = $this->normalizer->normalize($object->getPasswordPolicy(), 'json', $context); + $data['device_configuration'] = $this->normalizer->normalize($object->getDeviceConfiguration(), 'json', $context); + $data['mfa_configuration'] = $this->normalizer->normalize($object->getMfaConfiguration(), 'json', $context); + $data['recaptcha_props'] = $this->normalizer->normalize($object->getRecaptchaProps(), 'json', $context); + $data['account_verification'] = $this->normalizer->normalize($object->getAccountVerification(), 'json', $context); + $data['self_regist'] = $this->normalizer->normalize($object->getSelfRegist(), 'json', $context); + $data['identity_provider_configuration'] = $this->normalizer->normalize($object->getIdentityProviderConfiguration(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class SignInSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['password_policy'] = $this->normalizer->normalize($object->getPasswordPolicy(), 'json', $context); - $data['device_configuration'] = $this->normalizer->normalize($object->getDeviceConfiguration(), 'json', $context); - $data['mfa_configuration'] = $this->normalizer->normalize($object->getMfaConfiguration(), 'json', $context); - $data['recaptcha_props'] = $this->normalizer->normalize($object->getRecaptchaProps(), 'json', $context); - $data['account_verification'] = $this->normalizer->normalize($object->getAccountVerification(), 'json', $context); - $data['self_regist'] = $this->normalizer->normalize($object->getSelfRegist(), 'json', $context); - $data['identity_provider_configuration'] = $this->normalizer->normalize($object->getIdentityProviderConfiguration(), 'json', $context); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('password_policy', $data) && $data['password_policy'] !== null) { + $object->setPasswordPolicy($this->denormalizer->denormalize($data['password_policy'], \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class, 'json', $context)); + unset($data['password_policy']); + } + elseif (\array_key_exists('password_policy', $data) && $data['password_policy'] === null) { + $object->setPasswordPolicy(null); + } + if (\array_key_exists('device_configuration', $data) && $data['device_configuration'] !== null) { + $object->setDeviceConfiguration($this->denormalizer->denormalize($data['device_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class, 'json', $context)); + unset($data['device_configuration']); + } + elseif (\array_key_exists('device_configuration', $data) && $data['device_configuration'] === null) { + $object->setDeviceConfiguration(null); + } + if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { + $object->setMfaConfiguration($this->denormalizer->denormalize($data['mfa_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class, 'json', $context)); + unset($data['mfa_configuration']); + } + elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { + $object->setMfaConfiguration(null); } + if (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] !== null) { + $object->setRecaptchaProps($this->denormalizer->denormalize($data['recaptcha_props'], \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class, 'json', $context)); + unset($data['recaptcha_props']); + } + elseif (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] === null) { + $object->setRecaptchaProps(null); + } + if (\array_key_exists('account_verification', $data) && $data['account_verification'] !== null) { + $object->setAccountVerification($this->denormalizer->denormalize($data['account_verification'], \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class, 'json', $context)); + unset($data['account_verification']); + } + elseif (\array_key_exists('account_verification', $data) && $data['account_verification'] === null) { + $object->setAccountVerification(null); + } + if (\array_key_exists('self_regist', $data) && $data['self_regist'] !== null) { + $object->setSelfRegist($this->denormalizer->denormalize($data['self_regist'], \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class, 'json', $context)); + unset($data['self_regist']); + } + elseif (\array_key_exists('self_regist', $data) && $data['self_regist'] === null) { + $object->setSelfRegist(null); + } + if (\array_key_exists('identity_provider_configuration', $data) && $data['identity_provider_configuration'] !== null) { + $object->setIdentityProviderConfiguration($this->denormalizer->denormalize($data['identity_provider_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderConfiguration::class, 'json', $context)); + unset($data['identity_provider_configuration']); + } + elseif (\array_key_exists('identity_provider_configuration', $data) && $data['identity_provider_configuration'] === null) { + $object->setIdentityProviderConfiguration(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['password_policy'] = $this->normalizer->normalize($object->getPasswordPolicy(), 'json', $context); + $data['device_configuration'] = $this->normalizer->normalize($object->getDeviceConfiguration(), 'json', $context); + $data['mfa_configuration'] = $this->normalizer->normalize($object->getMfaConfiguration(), 'json', $context); + $data['recaptcha_props'] = $this->normalizer->normalize($object->getRecaptchaProps(), 'json', $context); + $data['account_verification'] = $this->normalizer->normalize($object->getAccountVerification(), 'json', $context); + $data['self_regist'] = $this->normalizer->normalize($object->getSelfRegist(), 'json', $context); + $data['identity_provider_configuration'] = $this->normalizer->normalize($object->getIdentityProviderConfiguration(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SignInSettings::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignInSettings' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SignUpParamNormalizer.php b/generated/Auth/Normalizer/SignUpParamNormalizer.php index b3fe421..74c8514 100644 --- a/generated/Auth/Normalizer/SignUpParamNormalizer.php +++ b/generated/Auth/Normalizer/SignUpParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SignUpParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SignUpParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class SignUpParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['email'] = $object->getEmail(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SignUpWithAwsMarketplaceParamNormalizer.php b/generated/Auth/Normalizer/SignUpWithAwsMarketplaceParamNormalizer.php index 4d786c1..494fb38 100644 --- a/generated/Auth/Normalizer/SignUpWithAwsMarketplaceParamNormalizer.php +++ b/generated/Auth/Normalizer/SignUpWithAwsMarketplaceParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SignUpWithAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SignUpWithAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpWithAwsMarketplaceParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpWithAwsMarketplaceParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class => false]; } - if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { - $object->setRegistrationToken($data['registration_token']); - unset($data['registration_token']); + } +} else { + class SignUpWithAwsMarketplaceParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class; } - elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { - $object->setRegistrationToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['email'] = $object->getEmail(); - $data['registration_token'] = $object->getRegistrationToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SignUpWithAwsMarketplaceParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SignUpWithAwsMarketplaceParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/SingleTenantSettingsNormalizer.php b/generated/Auth/Normalizer/SingleTenantSettingsNormalizer.php new file mode 100644 index 0000000..4b4883b --- /dev/null +++ b/generated/Auth/Normalizer/SingleTenantSettingsNormalizer.php @@ -0,0 +1,200 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SingleTenantSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + $object->setEnabled($data['enabled']); + unset($data['enabled']); + } + elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + $object->setEnabled(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('cloudformation_template_url', $data) && $data['cloudformation_template_url'] !== null) { + $object->setCloudformationTemplateUrl($data['cloudformation_template_url']); + unset($data['cloudformation_template_url']); + } + elseif (\array_key_exists('cloudformation_template_url', $data) && $data['cloudformation_template_url'] === null) { + $object->setCloudformationTemplateUrl(null); + } + if (\array_key_exists('ddl_template_url', $data) && $data['ddl_template_url'] !== null) { + $object->setDdlTemplateUrl($data['ddl_template_url']); + unset($data['ddl_template_url']); + } + elseif (\array_key_exists('ddl_template_url', $data) && $data['ddl_template_url'] === null) { + $object->setDdlTemplateUrl(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['enabled'] = $object->getEnabled(); + $data['role_arn'] = $object->getRoleArn(); + $data['cloudformation_template_url'] = $object->getCloudformationTemplateUrl(); + $data['ddl_template_url'] = $object->getDdlTemplateUrl(); + $data['role_external_id'] = $object->getRoleExternalId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class => false]; + } + } +} else { + class SingleTenantSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + $object->setEnabled($data['enabled']); + unset($data['enabled']); + } + elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + $object->setEnabled(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('cloudformation_template_url', $data) && $data['cloudformation_template_url'] !== null) { + $object->setCloudformationTemplateUrl($data['cloudformation_template_url']); + unset($data['cloudformation_template_url']); + } + elseif (\array_key_exists('cloudformation_template_url', $data) && $data['cloudformation_template_url'] === null) { + $object->setCloudformationTemplateUrl(null); + } + if (\array_key_exists('ddl_template_url', $data) && $data['ddl_template_url'] !== null) { + $object->setDdlTemplateUrl($data['ddl_template_url']); + unset($data['ddl_template_url']); + } + elseif (\array_key_exists('ddl_template_url', $data) && $data['ddl_template_url'] === null) { + $object->setDdlTemplateUrl(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['enabled'] = $object->getEnabled(); + $data['role_arn'] = $object->getRoleArn(); + $data['cloudformation_template_url'] = $object->getCloudformationTemplateUrl(); + $data['ddl_template_url'] = $object->getDdlTemplateUrl(); + $data['role_external_id'] = $object->getRoleExternalId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SingleTenantSettings::class => false]; + } + } +} \ No newline at end of file diff --git a/generated/Auth/Normalizer/SoftwareTokenSecretCodeNormalizer.php b/generated/Auth/Normalizer/SoftwareTokenSecretCodeNormalizer.php index 1ce8b34..683028a 100644 --- a/generated/Auth/Normalizer/SoftwareTokenSecretCodeNormalizer.php +++ b/generated/Auth/Normalizer/SoftwareTokenSecretCodeNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SoftwareTokenSecretCodeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SoftwareTokenSecretCodeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SoftwareTokenSecretCode'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SoftwareTokenSecretCode'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('secret_code', $data) && $data['secret_code'] !== null) { + $object->setSecretCode($data['secret_code']); + unset($data['secret_code']); + } + elseif (\array_key_exists('secret_code', $data) && $data['secret_code'] === null) { + $object->setSecretCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('secret_code', $data) && $data['secret_code'] !== null) { - $object->setSecretCode($data['secret_code']); - unset($data['secret_code']); - } - elseif (\array_key_exists('secret_code', $data) && $data['secret_code'] === null) { - $object->setSecretCode(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['secret_code'] = $object->getSecretCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class SoftwareTokenSecretCodeNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['secret_code'] = $object->getSecretCode(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('secret_code', $data) && $data['secret_code'] !== null) { + $object->setSecretCode($data['secret_code']); + unset($data['secret_code']); + } + elseif (\array_key_exists('secret_code', $data) && $data['secret_code'] === null) { + $object->setSecretCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['secret_code'] = $object->getSecretCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\SoftwareTokenSecretCode::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SoftwareTokenSecretCode' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantAttributesNormalizer.php b/generated/Auth/Normalizer/TenantAttributesNormalizer.php index 228171a..088251c 100644 --- a/generated/Auth/Normalizer/TenantAttributesNormalizer.php +++ b/generated/Auth/Normalizer/TenantAttributesNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantAttributesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantAttributesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantAttributes'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantAttributes'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_attributes', $data) && $data['tenant_attributes'] !== null) { + $values = []; + foreach ($data['tenant_attributes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class, 'json', $context); + } + $object->setTenantAttributes($values); + unset($data['tenant_attributes']); + } + elseif (\array_key_exists('tenant_attributes', $data) && $data['tenant_attributes'] === null) { + $object->setTenantAttributes(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('tenant_attributes', $data) && $data['tenant_attributes'] !== null) { - $values = array(); - foreach ($data['tenant_attributes'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getTenantAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setTenantAttributes($values); - unset($data['tenant_attributes']); - } - elseif (\array_key_exists('tenant_attributes', $data) && $data['tenant_attributes'] === null) { - $object->setTenantAttributes(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['tenant_attributes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TenantAttributesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getTenantAttributes() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class; } - $data['tenant_attributes'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_attributes', $data) && $data['tenant_attributes'] !== null) { + $values = []; + foreach ($data['tenant_attributes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class, 'json', $context); + } + $object->setTenantAttributes($values); + unset($data['tenant_attributes']); } + elseif (\array_key_exists('tenant_attributes', $data) && $data['tenant_attributes'] === null) { + $object->setTenantAttributes(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getTenantAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tenant_attributes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantAttributes::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantAttributes' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantDetailNormalizer.php b/generated/Auth/Normalizer/TenantDetailNormalizer.php index f7aee0c..4530b3d 100644 --- a/generated/Auth/Normalizer/TenantDetailNormalizer.php +++ b/generated/Auth/Normalizer/TenantDetailNormalizer.php @@ -12,203 +12,401 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantDetailNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantDetailNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantDetail'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantDetail'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('current_plan_period_start', $data) && $data['current_plan_period_start'] !== null) { + $object->setCurrentPlanPeriodStart($data['current_plan_period_start']); + unset($data['current_plan_period_start']); + } + elseif (\array_key_exists('current_plan_period_start', $data) && $data['current_plan_period_start'] === null) { + $object->setCurrentPlanPeriodStart(null); + } + if (\array_key_exists('current_plan_period_end', $data) && $data['current_plan_period_end'] !== null) { + $object->setCurrentPlanPeriodEnd($data['current_plan_period_end']); + unset($data['current_plan_period_end']); + } + elseif (\array_key_exists('current_plan_period_end', $data) && $data['current_plan_period_end'] === null) { + $object->setCurrentPlanPeriodEnd(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('billing_info', $data) && $data['billing_info'] !== null) { + $object->setBillingInfo($this->denormalizer->denormalize($data['billing_info'], \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class, 'json', $context)); + unset($data['billing_info']); + } + elseif (\array_key_exists('billing_info', $data) && $data['billing_info'] === null) { + $object->setBillingInfo(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { + $object->setNextPlanId($data['next_plan_id']); + unset($data['next_plan_id']); + } + elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { + $object->setNextPlanId(null); + } + if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { + $object->setUsingNextPlanFrom($data['using_next_plan_from']); + unset($data['using_next_plan_from']); + } + elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { + $object->setUsingNextPlanFrom(null); + } + if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { + $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); + unset($data['next_plan_tax_rate_id']); + } + elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { + $object->setNextPlanTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { + $values_1 = []; + foreach ($data['plan_histories'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class, 'json', $context); + } + $object->setPlanHistories($values_1); + unset($data['plan_histories']); + } + elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { + $object->setPlanHistories(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('current_plan_period_start', $data) && $data['current_plan_period_start'] !== null) { - $object->setCurrentPlanPeriodStart($data['current_plan_period_start']); - unset($data['current_plan_period_start']); - } - elseif (\array_key_exists('current_plan_period_start', $data) && $data['current_plan_period_start'] === null) { - $object->setCurrentPlanPeriodStart(null); - } - if (\array_key_exists('current_plan_period_end', $data) && $data['current_plan_period_end'] !== null) { - $object->setCurrentPlanPeriodEnd($data['current_plan_period_end']); - unset($data['current_plan_period_end']); - } - elseif (\array_key_exists('current_plan_period_end', $data) && $data['current_plan_period_end'] === null) { - $object->setCurrentPlanPeriodEnd(null); - } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { - $object->setPlanId($data['plan_id']); - unset($data['plan_id']); - } - elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { - $object->setPlanId(null); - } - if (\array_key_exists('billing_info', $data) && $data['billing_info'] !== null) { - $object->setBillingInfo($this->denormalizer->denormalize($data['billing_info'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo', 'json', $context)); - unset($data['billing_info']); - } - elseif (\array_key_exists('billing_info', $data) && $data['billing_info'] === null) { - $object->setBillingInfo(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['attributes'] as $key => $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('currentPlanPeriodStart') && null !== $object->getCurrentPlanPeriodStart()) { + $data['current_plan_period_start'] = $object->getCurrentPlanPeriodStart(); + } + if ($object->isInitialized('currentPlanPeriodEnd') && null !== $object->getCurrentPlanPeriodEnd()) { + $data['current_plan_period_end'] = $object->getCurrentPlanPeriodEnd(); + } + $data['id'] = $object->getId(); + if ($object->isInitialized('planId') && null !== $object->getPlanId()) { + $data['plan_id'] = $object->getPlanId(); + } + if ($object->isInitialized('billingInfo') && null !== $object->getBillingInfo()) { + $data['billing_info'] = $this->normalizer->normalize($object->getBillingInfo(), 'json', $context); + } + $data['name'] = $object->getName(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } - $object->setAttributes($values); - unset($data['attributes']); - } - elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { - $object->setAttributes(null); - } - if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { - $object->setBackOfficeStaffEmail($data['back_office_staff_email']); - unset($data['back_office_staff_email']); - } - elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { - $object->setBackOfficeStaffEmail(null); - } - if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { - $object->setNextPlanId($data['next_plan_id']); - unset($data['next_plan_id']); - } - elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { - $object->setNextPlanId(null); - } - if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { - $object->setUsingNextPlanFrom($data['using_next_plan_from']); - unset($data['using_next_plan_from']); - } - elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { - $object->setUsingNextPlanFrom(null); - } - if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { - $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); - unset($data['next_plan_tax_rate_id']); - } - elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { - $object->setNextPlanTaxRateId(null); - } - if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { - $object->setProrationBehavior($data['proration_behavior']); - unset($data['proration_behavior']); - } - elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { - $object->setProrationBehavior(null); - } - if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { - $object->setDeleteUsage($data['delete_usage']); - unset($data['delete_usage']); - } - elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { - $object->setDeleteUsage(null); - } - if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { - $values_1 = array(); - foreach ($data['plan_histories'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory', 'json', $context); + $data['attributes'] = $values; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { + $data['next_plan_id'] = $object->getNextPlanId(); } - $object->setPlanHistories($values_1); - unset($data['plan_histories']); - } - elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { - $object->setPlanHistories(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { + $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); + } + if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { + $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); + } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + $values_1 = []; + foreach ($object->getPlanHistories() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['plan_histories'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TenantDetailNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('currentPlanPeriodStart') && null !== $object->getCurrentPlanPeriodStart()) { - $data['current_plan_period_start'] = $object->getCurrentPlanPeriodStart(); - } - if ($object->isInitialized('currentPlanPeriodEnd') && null !== $object->getCurrentPlanPeriodEnd()) { - $data['current_plan_period_end'] = $object->getCurrentPlanPeriodEnd(); - } - $data['id'] = $object->getId(); - if ($object->isInitialized('planId') && null !== $object->getPlanId()) { - $data['plan_id'] = $object->getPlanId(); - } - if ($object->isInitialized('billingInfo') && null !== $object->getBillingInfo()) { - $data['billing_info'] = $this->normalizer->normalize($object->getBillingInfo(), 'json', $context); - } - $data['name'] = $object->getName(); - $values = array(); - foreach ($object->getAttributes() as $key => $value) { - $values[$key] = $value; - } - $data['attributes'] = $values; - $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); - if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { - $data['next_plan_id'] = $object->getNextPlanId(); - } - if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { - $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); - } - if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { - $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); - } - if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { - $data['proration_behavior'] = $object->getProrationBehavior(); - } - if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { - $data['delete_usage'] = $object->getDeleteUsage(); - } - $values_1 = array(); - foreach ($object->getPlanHistories() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('current_plan_period_start', $data) && $data['current_plan_period_start'] !== null) { + $object->setCurrentPlanPeriodStart($data['current_plan_period_start']); + unset($data['current_plan_period_start']); + } + elseif (\array_key_exists('current_plan_period_start', $data) && $data['current_plan_period_start'] === null) { + $object->setCurrentPlanPeriodStart(null); + } + if (\array_key_exists('current_plan_period_end', $data) && $data['current_plan_period_end'] !== null) { + $object->setCurrentPlanPeriodEnd($data['current_plan_period_end']); + unset($data['current_plan_period_end']); + } + elseif (\array_key_exists('current_plan_period_end', $data) && $data['current_plan_period_end'] === null) { + $object->setCurrentPlanPeriodEnd(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('billing_info', $data) && $data['billing_info'] !== null) { + $object->setBillingInfo($this->denormalizer->denormalize($data['billing_info'], \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class, 'json', $context)); + unset($data['billing_info']); + } + elseif (\array_key_exists('billing_info', $data) && $data['billing_info'] === null) { + $object->setBillingInfo(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { + $object->setNextPlanId($data['next_plan_id']); + unset($data['next_plan_id']); + } + elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { + $object->setNextPlanId(null); + } + if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { + $object->setUsingNextPlanFrom($data['using_next_plan_from']); + unset($data['using_next_plan_from']); + } + elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { + $object->setUsingNextPlanFrom(null); + } + if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { + $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); + unset($data['next_plan_tax_rate_id']); + } + elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { + $object->setNextPlanTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { + $values_1 = []; + foreach ($data['plan_histories'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class, 'json', $context); + } + $object->setPlanHistories($values_1); + unset($data['plan_histories']); + } + elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { + $object->setPlanHistories(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['plan_histories'] = $values_1; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('currentPlanPeriodStart') && null !== $object->getCurrentPlanPeriodStart()) { + $data['current_plan_period_start'] = $object->getCurrentPlanPeriodStart(); + } + if ($object->isInitialized('currentPlanPeriodEnd') && null !== $object->getCurrentPlanPeriodEnd()) { + $data['current_plan_period_end'] = $object->getCurrentPlanPeriodEnd(); + } + $data['id'] = $object->getId(); + if ($object->isInitialized('planId') && null !== $object->getPlanId()) { + $data['plan_id'] = $object->getPlanId(); + } + if ($object->isInitialized('billingInfo') && null !== $object->getBillingInfo()) { + $data['billing_info'] = $this->normalizer->normalize($object->getBillingInfo(), 'json', $context); + } + $data['name'] = $object->getName(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { + $values[$key] = $value; + } + $data['attributes'] = $values; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { + $data['next_plan_id'] = $object->getNextPlanId(); + } + if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { + $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); } + if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { + $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); + } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); + } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + $values_1 = []; + foreach ($object->getPlanHistories() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['plan_histories'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantDetail::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantDetail' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantIdentityProvidersNormalizer.php b/generated/Auth/Normalizer/TenantIdentityProvidersNormalizer.php index ee229af..ba63895 100644 --- a/generated/Auth/Normalizer/TenantIdentityProvidersNormalizer.php +++ b/generated/Auth/Normalizer/TenantIdentityProvidersNormalizer.php @@ -12,75 +12,145 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantIdentityProvidersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantIdentityProvidersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProviders'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProviders'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('saml', $data) && $data['saml'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['saml'] as $key => $value) { + $values[$key] = $value; + } + $object->setSaml($values); + unset($data['saml']); + } + elseif (\array_key_exists('saml', $data) && $data['saml'] === null) { + $object->setSaml(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } - if (\array_key_exists('saml', $data) && $data['saml'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['saml'] as $key => $value) { - $values[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('saml') && null !== $object->getSaml()) { + $values = []; + foreach ($object->getSaml() as $key => $value) { + $values[$key] = $value; + } + $data['saml'] = $values; } - $object->setSaml($values); - unset($data['saml']); - } - elseif (\array_key_exists('saml', $data) && $data['saml'] === null) { - $object->setSaml(null); - } - foreach ($data as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_1; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TenantIdentityProvidersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('saml') && null !== $object->getSaml()) { - $values = array(); - foreach ($object->getSaml() as $key => $value) { - $values[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('saml', $data) && $data['saml'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['saml'] as $key => $value) { + $values[$key] = $value; + } + $object->setSaml($values); + unset($data['saml']); + } + elseif (\array_key_exists('saml', $data) && $data['saml'] === null) { + $object->setSaml(null); } - $data['saml'] = $values; + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + return $object; } - foreach ($object as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('saml') && null !== $object->getSaml()) { + $values = []; + foreach ($object->getSaml() as $key => $value) { + $values[$key] = $value; + } + $data['saml'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProviders::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProviders' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantIdentityProvidersSamlNormalizer.php b/generated/Auth/Normalizer/TenantIdentityProvidersSamlNormalizer.php index 3841b2f..3d9ee89 100644 --- a/generated/Auth/Normalizer/TenantIdentityProvidersSamlNormalizer.php +++ b/generated/Auth/Normalizer/TenantIdentityProvidersSamlNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantIdentityProvidersSamlNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantIdentityProvidersSamlNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProvidersSaml'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProvidersSaml'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_in_url', $data) && $data['sign_in_url'] !== null) { + $object->setSignInUrl($data['sign_in_url']); + unset($data['sign_in_url']); + } + elseif (\array_key_exists('sign_in_url', $data) && $data['sign_in_url'] === null) { + $object->setSignInUrl(null); + } + if (\array_key_exists('metadata_url', $data) && $data['metadata_url'] !== null) { + $object->setMetadataUrl($data['metadata_url']); + unset($data['metadata_url']); + } + elseif (\array_key_exists('metadata_url', $data) && $data['metadata_url'] === null) { + $object->setMetadataUrl(null); + } + if (\array_key_exists('email_attribute', $data) && $data['email_attribute'] !== null) { + $object->setEmailAttribute($data['email_attribute']); + unset($data['email_attribute']); + } + elseif (\array_key_exists('email_attribute', $data) && $data['email_attribute'] === null) { + $object->setEmailAttribute(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('sign_in_url', $data) && $data['sign_in_url'] !== null) { - $object->setSignInUrl($data['sign_in_url']); - unset($data['sign_in_url']); - } - elseif (\array_key_exists('sign_in_url', $data) && $data['sign_in_url'] === null) { - $object->setSignInUrl(null); - } - if (\array_key_exists('metadata_url', $data) && $data['metadata_url'] !== null) { - $object->setMetadataUrl($data['metadata_url']); - unset($data['metadata_url']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['sign_in_url'] = $object->getSignInUrl(); + $data['metadata_url'] = $object->getMetadataUrl(); + $data['email_attribute'] = $object->getEmailAttribute(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('metadata_url', $data) && $data['metadata_url'] === null) { - $object->setMetadataUrl(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class => false]; } - if (\array_key_exists('email_attribute', $data) && $data['email_attribute'] !== null) { - $object->setEmailAttribute($data['email_attribute']); - unset($data['email_attribute']); + } +} else { + class TenantIdentityProvidersSamlNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class; } - elseif (\array_key_exists('email_attribute', $data) && $data['email_attribute'] === null) { - $object->setEmailAttribute(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_in_url', $data) && $data['sign_in_url'] !== null) { + $object->setSignInUrl($data['sign_in_url']); + unset($data['sign_in_url']); + } + elseif (\array_key_exists('sign_in_url', $data) && $data['sign_in_url'] === null) { + $object->setSignInUrl(null); + } + if (\array_key_exists('metadata_url', $data) && $data['metadata_url'] !== null) { + $object->setMetadataUrl($data['metadata_url']); + unset($data['metadata_url']); + } + elseif (\array_key_exists('metadata_url', $data) && $data['metadata_url'] === null) { + $object->setMetadataUrl(null); + } + if (\array_key_exists('email_attribute', $data) && $data['email_attribute'] !== null) { + $object->setEmailAttribute($data['email_attribute']); + unset($data['email_attribute']); } + elseif (\array_key_exists('email_attribute', $data) && $data['email_attribute'] === null) { + $object->setEmailAttribute(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['sign_in_url'] = $object->getSignInUrl(); - $data['metadata_url'] = $object->getMetadataUrl(); - $data['email_attribute'] = $object->getEmailAttribute(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['sign_in_url'] = $object->getSignInUrl(); + $data['metadata_url'] = $object->getMetadataUrl(); + $data['email_attribute'] = $object->getEmailAttribute(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantIdentityProvidersSaml::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantIdentityProvidersSaml' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantNormalizer.php b/generated/Auth/Normalizer/TenantNormalizer.php index 358034a..633bbff 100644 --- a/generated/Auth/Normalizer/TenantNormalizer.php +++ b/generated/Auth/Normalizer/TenantNormalizer.php @@ -12,183 +12,361 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('billing_info', $data) && $data['billing_info'] !== null) { + $object->setBillingInfo($this->denormalizer->denormalize($data['billing_info'], \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class, 'json', $context)); + unset($data['billing_info']); + } + elseif (\array_key_exists('billing_info', $data) && $data['billing_info'] === null) { + $object->setBillingInfo(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { + $object->setNextPlanId($data['next_plan_id']); + unset($data['next_plan_id']); + } + elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { + $object->setNextPlanId(null); + } + if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { + $object->setUsingNextPlanFrom($data['using_next_plan_from']); + unset($data['using_next_plan_from']); + } + elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { + $object->setUsingNextPlanFrom(null); + } + if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { + $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); + unset($data['next_plan_tax_rate_id']); + } + elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { + $object->setNextPlanTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { + $values_1 = []; + foreach ($data['plan_histories'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class, 'json', $context); + } + $object->setPlanHistories($values_1); + unset($data['plan_histories']); + } + elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { + $object->setPlanHistories(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { - $object->setPlanId($data['plan_id']); - unset($data['plan_id']); - } - elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { - $object->setPlanId(null); - } - if (\array_key_exists('billing_info', $data) && $data['billing_info'] !== null) { - $object->setBillingInfo($this->denormalizer->denormalize($data['billing_info'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\BillingInfo', 'json', $context)); - unset($data['billing_info']); - } - elseif (\array_key_exists('billing_info', $data) && $data['billing_info'] === null) { - $object->setBillingInfo(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['attributes'] as $key => $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + if ($object->isInitialized('planId') && null !== $object->getPlanId()) { + $data['plan_id'] = $object->getPlanId(); + } + if ($object->isInitialized('billingInfo') && null !== $object->getBillingInfo()) { + $data['billing_info'] = $this->normalizer->normalize($object->getBillingInfo(), 'json', $context); + } + $data['name'] = $object->getName(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } - $object->setAttributes($values); - unset($data['attributes']); - } - elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { - $object->setAttributes(null); - } - if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { - $object->setBackOfficeStaffEmail($data['back_office_staff_email']); - unset($data['back_office_staff_email']); - } - elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { - $object->setBackOfficeStaffEmail(null); - } - if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { - $object->setNextPlanId($data['next_plan_id']); - unset($data['next_plan_id']); - } - elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { - $object->setNextPlanId(null); - } - if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { - $object->setUsingNextPlanFrom($data['using_next_plan_from']); - unset($data['using_next_plan_from']); - } - elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { - $object->setUsingNextPlanFrom(null); - } - if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { - $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); - unset($data['next_plan_tax_rate_id']); - } - elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { - $object->setNextPlanTaxRateId(null); - } - if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { - $object->setProrationBehavior($data['proration_behavior']); - unset($data['proration_behavior']); - } - elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { - $object->setProrationBehavior(null); - } - if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { - $object->setDeleteUsage($data['delete_usage']); - unset($data['delete_usage']); - } - elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { - $object->setDeleteUsage(null); - } - if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { - $values_1 = array(); - foreach ($data['plan_histories'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PlanHistory', 'json', $context); + $data['attributes'] = $values; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { + $data['next_plan_id'] = $object->getNextPlanId(); } - $object->setPlanHistories($values_1); - unset($data['plan_histories']); - } - elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { - $object->setPlanHistories(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { + $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); + } + if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { + $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); + } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + $values_1 = []; + foreach ($object->getPlanHistories() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['plan_histories'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TenantNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - if ($object->isInitialized('planId') && null !== $object->getPlanId()) { - $data['plan_id'] = $object->getPlanId(); - } - if ($object->isInitialized('billingInfo') && null !== $object->getBillingInfo()) { - $data['billing_info'] = $this->normalizer->normalize($object->getBillingInfo(), 'json', $context); - } - $data['name'] = $object->getName(); - $values = array(); - foreach ($object->getAttributes() as $key => $value) { - $values[$key] = $value; - } - $data['attributes'] = $values; - $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); - if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { - $data['next_plan_id'] = $object->getNextPlanId(); - } - if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { - $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); - } - if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { - $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); - } - if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { - $data['proration_behavior'] = $object->getProrationBehavior(); - } - if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { - $data['delete_usage'] = $object->getDeleteUsage(); - } - $values_1 = array(); - foreach ($object->getPlanHistories() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('billing_info', $data) && $data['billing_info'] !== null) { + $object->setBillingInfo($this->denormalizer->denormalize($data['billing_info'], \AntiPatternInc\Saasus\Sdk\Auth\Model\BillingInfo::class, 'json', $context)); + unset($data['billing_info']); + } + elseif (\array_key_exists('billing_info', $data) && $data['billing_info'] === null) { + $object->setBillingInfo(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + if (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] !== null) { + $object->setNextPlanId($data['next_plan_id']); + unset($data['next_plan_id']); + } + elseif (\array_key_exists('next_plan_id', $data) && $data['next_plan_id'] === null) { + $object->setNextPlanId(null); + } + if (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] !== null) { + $object->setUsingNextPlanFrom($data['using_next_plan_from']); + unset($data['using_next_plan_from']); + } + elseif (\array_key_exists('using_next_plan_from', $data) && $data['using_next_plan_from'] === null) { + $object->setUsingNextPlanFrom(null); + } + if (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] !== null) { + $object->setNextPlanTaxRateId($data['next_plan_tax_rate_id']); + unset($data['next_plan_tax_rate_id']); + } + elseif (\array_key_exists('next_plan_tax_rate_id', $data) && $data['next_plan_tax_rate_id'] === null) { + $object->setNextPlanTaxRateId(null); + } + if (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] !== null) { + $object->setProrationBehavior($data['proration_behavior']); + unset($data['proration_behavior']); + } + elseif (\array_key_exists('proration_behavior', $data) && $data['proration_behavior'] === null) { + $object->setProrationBehavior(null); + } + if (\array_key_exists('delete_usage', $data) && $data['delete_usage'] !== null) { + $object->setDeleteUsage($data['delete_usage']); + unset($data['delete_usage']); + } + elseif (\array_key_exists('delete_usage', $data) && $data['delete_usage'] === null) { + $object->setDeleteUsage(null); + } + if (\array_key_exists('plan_histories', $data) && $data['plan_histories'] !== null) { + $values_1 = []; + foreach ($data['plan_histories'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, \AntiPatternInc\Saasus\Sdk\Auth\Model\PlanHistory::class, 'json', $context); + } + $object->setPlanHistories($values_1); + unset($data['plan_histories']); + } + elseif (\array_key_exists('plan_histories', $data) && $data['plan_histories'] === null) { + $object->setPlanHistories(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['plan_histories'] = $values_1; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + if ($object->isInitialized('planId') && null !== $object->getPlanId()) { + $data['plan_id'] = $object->getPlanId(); + } + if ($object->isInitialized('billingInfo') && null !== $object->getBillingInfo()) { + $data['billing_info'] = $this->normalizer->normalize($object->getBillingInfo(), 'json', $context); + } + $data['name'] = $object->getName(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { + $values[$key] = $value; + } + $data['attributes'] = $values; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + if ($object->isInitialized('nextPlanId') && null !== $object->getNextPlanId()) { + $data['next_plan_id'] = $object->getNextPlanId(); + } + if ($object->isInitialized('usingNextPlanFrom') && null !== $object->getUsingNextPlanFrom()) { + $data['using_next_plan_from'] = $object->getUsingNextPlanFrom(); + } + if ($object->isInitialized('nextPlanTaxRateId') && null !== $object->getNextPlanTaxRateId()) { + $data['next_plan_tax_rate_id'] = $object->getNextPlanTaxRateId(); } + if ($object->isInitialized('prorationBehavior') && null !== $object->getProrationBehavior()) { + $data['proration_behavior'] = $object->getProrationBehavior(); + } + if ($object->isInitialized('deleteUsage') && null !== $object->getDeleteUsage()) { + $data['delete_usage'] = $object->getDeleteUsage(); + } + $values_1 = []; + foreach ($object->getPlanHistories() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['plan_histories'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Tenant::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenant' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantPropsNormalizer.php b/generated/Auth/Normalizer/TenantPropsNormalizer.php index 0e3f148..1499f01 100644 --- a/generated/Auth/Normalizer/TenantPropsNormalizer.php +++ b/generated/Auth/Normalizer/TenantPropsNormalizer.php @@ -12,89 +12,173 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['attributes'] as $key => $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } - $object->setAttributes($values); - unset($data['attributes']); + $data['attributes'] = $values; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; } - elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { - $object->setAttributes(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class => false]; } - if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { - $object->setBackOfficeStaffEmail($data['back_office_staff_email']); - unset($data['back_office_staff_email']); + } +} else { + class TenantPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class; } - elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { - $object->setBackOfficeStaffEmail(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class; } - foreach ($data as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['name'] = $object->getName(); - $values = array(); - foreach ($object->getAttributes() as $key => $value) { - $values[$key] = $value; - } - $data['attributes'] = $values; - $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); - foreach ($object as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { + $values[$key] = $value; } + $data['attributes'] = $values; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\TenantProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\TenantProps' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/TenantsNormalizer.php b/generated/Auth/Normalizer/TenantsNormalizer.php index 2681b2d..54c6936 100644 --- a/generated/Auth/Normalizer/TenantsNormalizer.php +++ b/generated/Auth/Normalizer/TenantsNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TenantsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TenantsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenants'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenants'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenants', $data) && $data['tenants'] !== null) { + $values = []; + foreach ($data['tenants'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setTenants($values); + unset($data['tenants']); + } + elseif (\array_key_exists('tenants', $data) && $data['tenants'] === null) { + $object->setTenants(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('tenants', $data) && $data['tenants'] !== null) { - $values = array(); - foreach ($data['tenants'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getTenants() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setTenants($values); - unset($data['tenants']); - } - elseif (\array_key_exists('tenants', $data) && $data['tenants'] === null) { - $object->setTenants(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['tenants'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TenantsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getTenants() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenants', $data) && $data['tenants'] !== null) { + $values = []; + foreach ($data['tenants'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setTenants($values); + unset($data['tenants']); + } + elseif (\array_key_exists('tenants', $data) && $data['tenants'] === null) { + $object->setTenants(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['tenants'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getTenants() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['tenants'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Tenants::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Tenants' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateBasicInfoParamNormalizer.php b/generated/Auth/Normalizer/UpdateBasicInfoParamNormalizer.php index fdb4360..31f759b 100644 --- a/generated/Auth/Normalizer/UpdateBasicInfoParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateBasicInfoParamNormalizer.php @@ -12,83 +12,161 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateBasicInfoParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateBasicInfoParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateBasicInfoParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateBasicInfoParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('domain_name', $data) && $data['domain_name'] !== null) { + $object->setDomainName($data['domain_name']); + unset($data['domain_name']); + } + elseif (\array_key_exists('domain_name', $data) && $data['domain_name'] === null) { + $object->setDomainName(null); + } + if (\array_key_exists('from_email_address', $data) && $data['from_email_address'] !== null) { + $object->setFromEmailAddress($data['from_email_address']); + unset($data['from_email_address']); + } + elseif (\array_key_exists('from_email_address', $data) && $data['from_email_address'] === null) { + $object->setFromEmailAddress(null); + } + if (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] !== null) { + $object->setReplyEmailAddress($data['reply_email_address']); + unset($data['reply_email_address']); + } + elseif (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] === null) { + $object->setReplyEmailAddress(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('domain_name', $data) && $data['domain_name'] !== null) { - $object->setDomainName($data['domain_name']); - unset($data['domain_name']); - } - elseif (\array_key_exists('domain_name', $data) && $data['domain_name'] === null) { - $object->setDomainName(null); - } - if (\array_key_exists('from_email_address', $data) && $data['from_email_address'] !== null) { - $object->setFromEmailAddress($data['from_email_address']); - unset($data['from_email_address']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['domain_name'] = $object->getDomainName(); + $data['from_email_address'] = $object->getFromEmailAddress(); + if ($object->isInitialized('replyEmailAddress') && null !== $object->getReplyEmailAddress()) { + $data['reply_email_address'] = $object->getReplyEmailAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('from_email_address', $data) && $data['from_email_address'] === null) { - $object->setFromEmailAddress(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class => false]; } - if (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] !== null) { - $object->setReplyEmailAddress($data['reply_email_address']); - unset($data['reply_email_address']); + } +} else { + class UpdateBasicInfoParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class; } - elseif (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] === null) { - $object->setReplyEmailAddress(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('domain_name', $data) && $data['domain_name'] !== null) { + $object->setDomainName($data['domain_name']); + unset($data['domain_name']); + } + elseif (\array_key_exists('domain_name', $data) && $data['domain_name'] === null) { + $object->setDomainName(null); + } + if (\array_key_exists('from_email_address', $data) && $data['from_email_address'] !== null) { + $object->setFromEmailAddress($data['from_email_address']); + unset($data['from_email_address']); + } + elseif (\array_key_exists('from_email_address', $data) && $data['from_email_address'] === null) { + $object->setFromEmailAddress(null); + } + if (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] !== null) { + $object->setReplyEmailAddress($data['reply_email_address']); + unset($data['reply_email_address']); + } + elseif (\array_key_exists('reply_email_address', $data) && $data['reply_email_address'] === null) { + $object->setReplyEmailAddress(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['domain_name'] = $object->getDomainName(); - $data['from_email_address'] = $object->getFromEmailAddress(); - if ($object->isInitialized('replyEmailAddress') && null !== $object->getReplyEmailAddress()) { - $data['reply_email_address'] = $object->getReplyEmailAddress(); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['domain_name'] = $object->getDomainName(); + $data['from_email_address'] = $object->getFromEmailAddress(); + if ($object->isInitialized('replyEmailAddress') && null !== $object->getReplyEmailAddress()) { + $data['reply_email_address'] = $object->getReplyEmailAddress(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateBasicInfoParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateBasicInfoParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateCustomizePageSettingsParamNormalizer.php b/generated/Auth/Normalizer/UpdateCustomizePageSettingsParamNormalizer.php index 8eb2859..4710c60 100644 --- a/generated/Auth/Normalizer/UpdateCustomizePageSettingsParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateCustomizePageSettingsParamNormalizer.php @@ -12,105 +12,205 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateCustomizePageSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateCustomizePageSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePageSettingsParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePageSettingsParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('icon', $data) && $data['icon'] !== null) { + $object->setIcon($data['icon']); + unset($data['icon']); + } + elseif (\array_key_exists('icon', $data) && $data['icon'] === null) { + $object->setIcon(null); + } + if (\array_key_exists('favicon', $data) && $data['favicon'] !== null) { + $object->setFavicon($data['favicon']); + unset($data['favicon']); + } + elseif (\array_key_exists('favicon', $data) && $data['favicon'] === null) { + $object->setFavicon(null); + } + if (\array_key_exists('title', $data) && $data['title'] !== null) { + $object->setTitle($data['title']); + unset($data['title']); + } + elseif (\array_key_exists('title', $data) && $data['title'] === null) { + $object->setTitle(null); + } + if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { + $object->setTermsOfServiceUrl($data['terms_of_service_url']); + unset($data['terms_of_service_url']); + } + elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { + $object->setTermsOfServiceUrl(null); + } + if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { + $object->setPrivacyPolicyUrl($data['privacy_policy_url']); + unset($data['privacy_policy_url']); + } + elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { + $object->setPrivacyPolicyUrl(null); + } + if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { + $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); + unset($data['google_tag_manager_container_id']); + } + elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { + $object->setGoogleTagManagerContainerId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('icon', $data) && $data['icon'] !== null) { - $object->setIcon($data['icon']); - unset($data['icon']); - } - elseif (\array_key_exists('icon', $data) && $data['icon'] === null) { - $object->setIcon(null); - } - if (\array_key_exists('favicon', $data) && $data['favicon'] !== null) { - $object->setFavicon($data['favicon']); - unset($data['favicon']); - } - elseif (\array_key_exists('favicon', $data) && $data['favicon'] === null) { - $object->setFavicon(null); - } - if (\array_key_exists('title', $data) && $data['title'] !== null) { - $object->setTitle($data['title']); - unset($data['title']); - } - elseif (\array_key_exists('title', $data) && $data['title'] === null) { - $object->setTitle(null); - } - if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { - $object->setTermsOfServiceUrl($data['terms_of_service_url']); - unset($data['terms_of_service_url']); - } - elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { - $object->setTermsOfServiceUrl(null); - } - if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { - $object->setPrivacyPolicyUrl($data['privacy_policy_url']); - unset($data['privacy_policy_url']); - } - elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { - $object->setPrivacyPolicyUrl(null); - } - if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { - $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); - unset($data['google_tag_manager_container_id']); - } - elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { - $object->setGoogleTagManagerContainerId(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['icon'] = $object->getIcon(); + $data['favicon'] = $object->getFavicon(); + $data['title'] = $object->getTitle(); + $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); + $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); + $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateCustomizePageSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['icon'] = $object->getIcon(); - $data['favicon'] = $object->getFavicon(); - $data['title'] = $object->getTitle(); - $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); - $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); - $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('icon', $data) && $data['icon'] !== null) { + $object->setIcon($data['icon']); + unset($data['icon']); + } + elseif (\array_key_exists('icon', $data) && $data['icon'] === null) { + $object->setIcon(null); + } + if (\array_key_exists('favicon', $data) && $data['favicon'] !== null) { + $object->setFavicon($data['favicon']); + unset($data['favicon']); + } + elseif (\array_key_exists('favicon', $data) && $data['favicon'] === null) { + $object->setFavicon(null); + } + if (\array_key_exists('title', $data) && $data['title'] !== null) { + $object->setTitle($data['title']); + unset($data['title']); } + elseif (\array_key_exists('title', $data) && $data['title'] === null) { + $object->setTitle(null); + } + if (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] !== null) { + $object->setTermsOfServiceUrl($data['terms_of_service_url']); + unset($data['terms_of_service_url']); + } + elseif (\array_key_exists('terms_of_service_url', $data) && $data['terms_of_service_url'] === null) { + $object->setTermsOfServiceUrl(null); + } + if (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] !== null) { + $object->setPrivacyPolicyUrl($data['privacy_policy_url']); + unset($data['privacy_policy_url']); + } + elseif (\array_key_exists('privacy_policy_url', $data) && $data['privacy_policy_url'] === null) { + $object->setPrivacyPolicyUrl(null); + } + if (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] !== null) { + $object->setGoogleTagManagerContainerId($data['google_tag_manager_container_id']); + unset($data['google_tag_manager_container_id']); + } + elseif (\array_key_exists('google_tag_manager_container_id', $data) && $data['google_tag_manager_container_id'] === null) { + $object->setGoogleTagManagerContainerId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['icon'] = $object->getIcon(); + $data['favicon'] = $object->getFavicon(); + $data['title'] = $object->getTitle(); + $data['terms_of_service_url'] = $object->getTermsOfServiceUrl(); + $data['privacy_policy_url'] = $object->getPrivacyPolicyUrl(); + $data['google_tag_manager_container_id'] = $object->getGoogleTagManagerContainerId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePageSettingsParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePageSettingsParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateCustomizePagesParamNormalizer.php b/generated/Auth/Normalizer/UpdateCustomizePagesParamNormalizer.php index e7d2d4c..31c2089 100644 --- a/generated/Auth/Normalizer/UpdateCustomizePagesParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateCustomizePagesParamNormalizer.php @@ -12,87 +12,169 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateCustomizePagesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateCustomizePagesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePagesParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePagesParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] !== null) { + $object->setSignUpPage($this->denormalizer->denormalize($data['sign_up_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_up_page']); + } + elseif (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] === null) { + $object->setSignUpPage(null); + } + if (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] !== null) { + $object->setSignInPage($this->denormalizer->denormalize($data['sign_in_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_in_page']); + } + elseif (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] === null) { + $object->setSignInPage(null); + } + if (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] !== null) { + $object->setPasswordResetPage($this->denormalizer->denormalize($data['password_reset_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['password_reset_page']); + } + elseif (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] === null) { + $object->setPasswordResetPage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] !== null) { - $object->setSignUpPage($this->denormalizer->denormalize($data['sign_up_page'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps', 'json', $context)); - unset($data['sign_up_page']); - } - elseif (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] === null) { - $object->setSignUpPage(null); - } - if (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] !== null) { - $object->setSignInPage($this->denormalizer->denormalize($data['sign_in_page'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps', 'json', $context)); - unset($data['sign_in_page']); - } - elseif (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] === null) { - $object->setSignInPage(null); - } - if (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] !== null) { - $object->setPasswordResetPage($this->denormalizer->denormalize($data['password_reset_page'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\CustomizePageProps', 'json', $context)); - unset($data['password_reset_page']); - } - elseif (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] === null) { - $object->setPasswordResetPage(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('signUpPage') && null !== $object->getSignUpPage()) { + $data['sign_up_page'] = $this->normalizer->normalize($object->getSignUpPage(), 'json', $context); + } + if ($object->isInitialized('signInPage') && null !== $object->getSignInPage()) { + $data['sign_in_page'] = $this->normalizer->normalize($object->getSignInPage(), 'json', $context); } + if ($object->isInitialized('passwordResetPage') && null !== $object->getPasswordResetPage()) { + $data['password_reset_page'] = $this->normalizer->normalize($object->getPasswordResetPage(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateCustomizePagesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('signUpPage') && null !== $object->getSignUpPage()) { - $data['sign_up_page'] = $this->normalizer->normalize($object->getSignUpPage(), 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class; } - if ($object->isInitialized('signInPage') && null !== $object->getSignInPage()) { - $data['sign_in_page'] = $this->normalizer->normalize($object->getSignInPage(), 'json', $context); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class; } - if ($object->isInitialized('passwordResetPage') && null !== $object->getPasswordResetPage()) { - $data['password_reset_page'] = $this->normalizer->normalize($object->getPasswordResetPage(), 'json', $context); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] !== null) { + $object->setSignUpPage($this->denormalizer->denormalize($data['sign_up_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_up_page']); + } + elseif (\array_key_exists('sign_up_page', $data) && $data['sign_up_page'] === null) { + $object->setSignUpPage(null); + } + if (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] !== null) { + $object->setSignInPage($this->denormalizer->denormalize($data['sign_in_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['sign_in_page']); + } + elseif (\array_key_exists('sign_in_page', $data) && $data['sign_in_page'] === null) { + $object->setSignInPage(null); + } + if (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] !== null) { + $object->setPasswordResetPage($this->denormalizer->denormalize($data['password_reset_page'], \AntiPatternInc\Saasus\Sdk\Auth\Model\CustomizePageProps::class, 'json', $context)); + unset($data['password_reset_page']); + } + elseif (\array_key_exists('password_reset_page', $data) && $data['password_reset_page'] === null) { + $object->setPasswordResetPage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('signUpPage') && null !== $object->getSignUpPage()) { + $data['sign_up_page'] = $this->normalizer->normalize($object->getSignUpPage(), 'json', $context); + } + if ($object->isInitialized('signInPage') && null !== $object->getSignInPage()) { + $data['sign_in_page'] = $this->normalizer->normalize($object->getSignInPage(), 'json', $context); } + if ($object->isInitialized('passwordResetPage') && null !== $object->getPasswordResetPage()) { + $data['password_reset_page'] = $this->normalizer->normalize($object->getPasswordResetPage(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateCustomizePagesParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateCustomizePagesParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateEnvParamNormalizer.php b/generated/Auth/Normalizer/UpdateEnvParamNormalizer.php index 177f0bd..08a836d 100644 --- a/generated/Auth/Normalizer/UpdateEnvParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateEnvParamNormalizer.php @@ -12,75 +12,145 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateEnvParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateEnvParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateEnvParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateEnvParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { + $data['display_name'] = $object->getDisplayName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class => false]; } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + } +} else { + class UpdateEnvParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['name'] = $object->getName(); - if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { - $data['display_name'] = $object->getDisplayName(); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { + $data['display_name'] = $object->getDisplayName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateEnvParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateEnvParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateIdentityProviderParamNormalizer.php b/generated/Auth/Normalizer/UpdateIdentityProviderParamNormalizer.php index a631959..6b8bffd 100644 --- a/generated/Auth/Normalizer/UpdateIdentityProviderParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateIdentityProviderParamNormalizer.php @@ -12,75 +12,145 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateIdentityProviderParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateIdentityProviderParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateIdentityProviderParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateIdentityProviderParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('provider', $data) && $data['provider'] !== null) { + $object->setProvider($data['provider']); + unset($data['provider']); + } + elseif (\array_key_exists('provider', $data) && $data['provider'] === null) { + $object->setProvider(null); + } + if (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] !== null) { + $object->setIdentityProviderProps($this->denormalizer->denormalize($data['identity_provider_props'], \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class, 'json', $context)); + unset($data['identity_provider_props']); + } + elseif (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] === null) { + $object->setIdentityProviderProps(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('provider', $data) && $data['provider'] !== null) { - $object->setProvider($data['provider']); - unset($data['provider']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['provider'] = $object->getProvider(); + if ($object->isInitialized('identityProviderProps') && null !== $object->getIdentityProviderProps()) { + $data['identity_provider_props'] = $this->normalizer->normalize($object->getIdentityProviderProps(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('provider', $data) && $data['provider'] === null) { - $object->setProvider(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class => false]; } - if (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] !== null) { - $object->setIdentityProviderProps($this->denormalizer->denormalize($data['identity_provider_props'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\IdentityProviderProps', 'json', $context)); - unset($data['identity_provider_props']); + } +} else { + class UpdateIdentityProviderParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class; } - elseif (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] === null) { - $object->setIdentityProviderProps(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('provider', $data) && $data['provider'] !== null) { + $object->setProvider($data['provider']); + unset($data['provider']); + } + elseif (\array_key_exists('provider', $data) && $data['provider'] === null) { + $object->setProvider(null); + } + if (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] !== null) { + $object->setIdentityProviderProps($this->denormalizer->denormalize($data['identity_provider_props'], \AntiPatternInc\Saasus\Sdk\Auth\Model\IdentityProviderProps::class, 'json', $context)); + unset($data['identity_provider_props']); + } + elseif (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] === null) { + $object->setIdentityProviderProps(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['provider'] = $object->getProvider(); - if ($object->isInitialized('identityProviderProps') && null !== $object->getIdentityProviderProps()) { - $data['identity_provider_props'] = $this->normalizer->normalize($object->getIdentityProviderProps(), 'json', $context); - } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['provider'] = $object->getProvider(); + if ($object->isInitialized('identityProviderProps') && null !== $object->getIdentityProviderProps()) { + $data['identity_provider_props'] = $this->normalizer->normalize($object->getIdentityProviderProps(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateIdentityProviderParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateIdentityProviderParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateNotificationMessagesParamNormalizer.php b/generated/Auth/Normalizer/UpdateNotificationMessagesParamNormalizer.php index f4056b2..17cb754 100644 --- a/generated/Auth/Normalizer/UpdateNotificationMessagesParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateNotificationMessagesParamNormalizer.php @@ -12,147 +12,289 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateNotificationMessagesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateNotificationMessagesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateNotificationMessagesParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateNotificationMessagesParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up', $data) && $data['sign_up'] !== null) { + $object->setSignUp($this->denormalizer->denormalize($data['sign_up'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['sign_up']); + } + elseif (\array_key_exists('sign_up', $data) && $data['sign_up'] === null) { + $object->setSignUp(null); + } + if (\array_key_exists('create_user', $data) && $data['create_user'] !== null) { + $object->setCreateUser($this->denormalizer->denormalize($data['create_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['create_user']); + } + elseif (\array_key_exists('create_user', $data) && $data['create_user'] === null) { + $object->setCreateUser(null); + } + if (\array_key_exists('resend_code', $data) && $data['resend_code'] !== null) { + $object->setResendCode($this->denormalizer->denormalize($data['resend_code'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['resend_code']); + } + elseif (\array_key_exists('resend_code', $data) && $data['resend_code'] === null) { + $object->setResendCode(null); + } + if (\array_key_exists('forgot_password', $data) && $data['forgot_password'] !== null) { + $object->setForgotPassword($this->denormalizer->denormalize($data['forgot_password'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['forgot_password']); + } + elseif (\array_key_exists('forgot_password', $data) && $data['forgot_password'] === null) { + $object->setForgotPassword(null); + } + if (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] !== null) { + $object->setUpdateUserAttribute($this->denormalizer->denormalize($data['update_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['update_user_attribute']); + } + elseif (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] === null) { + $object->setUpdateUserAttribute(null); + } + if (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] !== null) { + $object->setVerifyUserAttribute($this->denormalizer->denormalize($data['verify_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_user_attribute']); + } + elseif (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] === null) { + $object->setVerifyUserAttribute(null); + } + if (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] !== null) { + $object->setAuthenticationMfa($this->denormalizer->denormalize($data['authentication_mfa'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['authentication_mfa']); + } + elseif (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] === null) { + $object->setAuthenticationMfa(null); + } + if (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] !== null) { + $object->setInviteTenantUser($this->denormalizer->denormalize($data['invite_tenant_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['invite_tenant_user']); + } + elseif (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] === null) { + $object->setInviteTenantUser(null); + } + if (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] !== null) { + $object->setVerifyExternalUser($this->denormalizer->denormalize($data['verify_external_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_external_user']); + } + elseif (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] === null) { + $object->setVerifyExternalUser(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('sign_up', $data) && $data['sign_up'] !== null) { - $object->setSignUp($this->denormalizer->denormalize($data['sign_up'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['sign_up']); - } - elseif (\array_key_exists('sign_up', $data) && $data['sign_up'] === null) { - $object->setSignUp(null); - } - if (\array_key_exists('create_user', $data) && $data['create_user'] !== null) { - $object->setCreateUser($this->denormalizer->denormalize($data['create_user'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['create_user']); - } - elseif (\array_key_exists('create_user', $data) && $data['create_user'] === null) { - $object->setCreateUser(null); - } - if (\array_key_exists('resend_code', $data) && $data['resend_code'] !== null) { - $object->setResendCode($this->denormalizer->denormalize($data['resend_code'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['resend_code']); - } - elseif (\array_key_exists('resend_code', $data) && $data['resend_code'] === null) { - $object->setResendCode(null); - } - if (\array_key_exists('forgot_password', $data) && $data['forgot_password'] !== null) { - $object->setForgotPassword($this->denormalizer->denormalize($data['forgot_password'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['forgot_password']); - } - elseif (\array_key_exists('forgot_password', $data) && $data['forgot_password'] === null) { - $object->setForgotPassword(null); - } - if (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] !== null) { - $object->setUpdateUserAttribute($this->denormalizer->denormalize($data['update_user_attribute'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['update_user_attribute']); - } - elseif (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] === null) { - $object->setUpdateUserAttribute(null); - } - if (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] !== null) { - $object->setVerifyUserAttribute($this->denormalizer->denormalize($data['verify_user_attribute'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['verify_user_attribute']); - } - elseif (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] === null) { - $object->setVerifyUserAttribute(null); - } - if (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] !== null) { - $object->setAuthenticationMfa($this->denormalizer->denormalize($data['authentication_mfa'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['authentication_mfa']); - } - elseif (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] === null) { - $object->setAuthenticationMfa(null); - } - if (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] !== null) { - $object->setInviteTenantUser($this->denormalizer->denormalize($data['invite_tenant_user'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['invite_tenant_user']); - } - elseif (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] === null) { - $object->setInviteTenantUser(null); - } - if (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] !== null) { - $object->setVerifyExternalUser($this->denormalizer->denormalize($data['verify_external_user'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MessageTemplate', 'json', $context)); - unset($data['verify_external_user']); - } - elseif (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] === null) { - $object->setVerifyExternalUser(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('signUp') && null !== $object->getSignUp()) { + $data['sign_up'] = $this->normalizer->normalize($object->getSignUp(), 'json', $context); + } + if ($object->isInitialized('createUser') && null !== $object->getCreateUser()) { + $data['create_user'] = $this->normalizer->normalize($object->getCreateUser(), 'json', $context); + } + if ($object->isInitialized('resendCode') && null !== $object->getResendCode()) { + $data['resend_code'] = $this->normalizer->normalize($object->getResendCode(), 'json', $context); + } + if ($object->isInitialized('forgotPassword') && null !== $object->getForgotPassword()) { + $data['forgot_password'] = $this->normalizer->normalize($object->getForgotPassword(), 'json', $context); + } + if ($object->isInitialized('updateUserAttribute') && null !== $object->getUpdateUserAttribute()) { + $data['update_user_attribute'] = $this->normalizer->normalize($object->getUpdateUserAttribute(), 'json', $context); } + if ($object->isInitialized('verifyUserAttribute') && null !== $object->getVerifyUserAttribute()) { + $data['verify_user_attribute'] = $this->normalizer->normalize($object->getVerifyUserAttribute(), 'json', $context); + } + if ($object->isInitialized('authenticationMfa') && null !== $object->getAuthenticationMfa()) { + $data['authentication_mfa'] = $this->normalizer->normalize($object->getAuthenticationMfa(), 'json', $context); + } + if ($object->isInitialized('inviteTenantUser') && null !== $object->getInviteTenantUser()) { + $data['invite_tenant_user'] = $this->normalizer->normalize($object->getInviteTenantUser(), 'json', $context); + } + if ($object->isInitialized('verifyExternalUser') && null !== $object->getVerifyExternalUser()) { + $data['verify_external_user'] = $this->normalizer->normalize($object->getVerifyExternalUser(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateNotificationMessagesParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('signUp') && null !== $object->getSignUp()) { - $data['sign_up'] = $this->normalizer->normalize($object->getSignUp(), 'json', $context); - } - if ($object->isInitialized('createUser') && null !== $object->getCreateUser()) { - $data['create_user'] = $this->normalizer->normalize($object->getCreateUser(), 'json', $context); - } - if ($object->isInitialized('resendCode') && null !== $object->getResendCode()) { - $data['resend_code'] = $this->normalizer->normalize($object->getResendCode(), 'json', $context); - } - if ($object->isInitialized('forgotPassword') && null !== $object->getForgotPassword()) { - $data['forgot_password'] = $this->normalizer->normalize($object->getForgotPassword(), 'json', $context); - } - if ($object->isInitialized('updateUserAttribute') && null !== $object->getUpdateUserAttribute()) { - $data['update_user_attribute'] = $this->normalizer->normalize($object->getUpdateUserAttribute(), 'json', $context); - } - if ($object->isInitialized('verifyUserAttribute') && null !== $object->getVerifyUserAttribute()) { - $data['verify_user_attribute'] = $this->normalizer->normalize($object->getVerifyUserAttribute(), 'json', $context); - } - if ($object->isInitialized('authenticationMfa') && null !== $object->getAuthenticationMfa()) { - $data['authentication_mfa'] = $this->normalizer->normalize($object->getAuthenticationMfa(), 'json', $context); - } - if ($object->isInitialized('inviteTenantUser') && null !== $object->getInviteTenantUser()) { - $data['invite_tenant_user'] = $this->normalizer->normalize($object->getInviteTenantUser(), 'json', $context); - } - if ($object->isInitialized('verifyExternalUser') && null !== $object->getVerifyExternalUser()) { - $data['verify_external_user'] = $this->normalizer->normalize($object->getVerifyExternalUser(), 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('sign_up', $data) && $data['sign_up'] !== null) { + $object->setSignUp($this->denormalizer->denormalize($data['sign_up'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['sign_up']); + } + elseif (\array_key_exists('sign_up', $data) && $data['sign_up'] === null) { + $object->setSignUp(null); + } + if (\array_key_exists('create_user', $data) && $data['create_user'] !== null) { + $object->setCreateUser($this->denormalizer->denormalize($data['create_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['create_user']); + } + elseif (\array_key_exists('create_user', $data) && $data['create_user'] === null) { + $object->setCreateUser(null); + } + if (\array_key_exists('resend_code', $data) && $data['resend_code'] !== null) { + $object->setResendCode($this->denormalizer->denormalize($data['resend_code'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['resend_code']); + } + elseif (\array_key_exists('resend_code', $data) && $data['resend_code'] === null) { + $object->setResendCode(null); + } + if (\array_key_exists('forgot_password', $data) && $data['forgot_password'] !== null) { + $object->setForgotPassword($this->denormalizer->denormalize($data['forgot_password'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['forgot_password']); + } + elseif (\array_key_exists('forgot_password', $data) && $data['forgot_password'] === null) { + $object->setForgotPassword(null); + } + if (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] !== null) { + $object->setUpdateUserAttribute($this->denormalizer->denormalize($data['update_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['update_user_attribute']); + } + elseif (\array_key_exists('update_user_attribute', $data) && $data['update_user_attribute'] === null) { + $object->setUpdateUserAttribute(null); + } + if (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] !== null) { + $object->setVerifyUserAttribute($this->denormalizer->denormalize($data['verify_user_attribute'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_user_attribute']); + } + elseif (\array_key_exists('verify_user_attribute', $data) && $data['verify_user_attribute'] === null) { + $object->setVerifyUserAttribute(null); + } + if (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] !== null) { + $object->setAuthenticationMfa($this->denormalizer->denormalize($data['authentication_mfa'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['authentication_mfa']); + } + elseif (\array_key_exists('authentication_mfa', $data) && $data['authentication_mfa'] === null) { + $object->setAuthenticationMfa(null); + } + if (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] !== null) { + $object->setInviteTenantUser($this->denormalizer->denormalize($data['invite_tenant_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['invite_tenant_user']); + } + elseif (\array_key_exists('invite_tenant_user', $data) && $data['invite_tenant_user'] === null) { + $object->setInviteTenantUser(null); + } + if (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] !== null) { + $object->setVerifyExternalUser($this->denormalizer->denormalize($data['verify_external_user'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MessageTemplate::class, 'json', $context)); + unset($data['verify_external_user']); + } + elseif (\array_key_exists('verify_external_user', $data) && $data['verify_external_user'] === null) { + $object->setVerifyExternalUser(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('signUp') && null !== $object->getSignUp()) { + $data['sign_up'] = $this->normalizer->normalize($object->getSignUp(), 'json', $context); } + if ($object->isInitialized('createUser') && null !== $object->getCreateUser()) { + $data['create_user'] = $this->normalizer->normalize($object->getCreateUser(), 'json', $context); + } + if ($object->isInitialized('resendCode') && null !== $object->getResendCode()) { + $data['resend_code'] = $this->normalizer->normalize($object->getResendCode(), 'json', $context); + } + if ($object->isInitialized('forgotPassword') && null !== $object->getForgotPassword()) { + $data['forgot_password'] = $this->normalizer->normalize($object->getForgotPassword(), 'json', $context); + } + if ($object->isInitialized('updateUserAttribute') && null !== $object->getUpdateUserAttribute()) { + $data['update_user_attribute'] = $this->normalizer->normalize($object->getUpdateUserAttribute(), 'json', $context); + } + if ($object->isInitialized('verifyUserAttribute') && null !== $object->getVerifyUserAttribute()) { + $data['verify_user_attribute'] = $this->normalizer->normalize($object->getVerifyUserAttribute(), 'json', $context); + } + if ($object->isInitialized('authenticationMfa') && null !== $object->getAuthenticationMfa()) { + $data['authentication_mfa'] = $this->normalizer->normalize($object->getAuthenticationMfa(), 'json', $context); + } + if ($object->isInitialized('inviteTenantUser') && null !== $object->getInviteTenantUser()) { + $data['invite_tenant_user'] = $this->normalizer->normalize($object->getInviteTenantUser(), 'json', $context); + } + if ($object->isInitialized('verifyExternalUser') && null !== $object->getVerifyExternalUser()) { + $data['verify_external_user'] = $this->normalizer->normalize($object->getVerifyExternalUser(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateNotificationMessagesParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateNotificationMessagesParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateSaasUserEmailParamNormalizer.php b/generated/Auth/Normalizer/UpdateSaasUserEmailParamNormalizer.php index 514187d..7bde058 100644 --- a/generated/Auth/Normalizer/UpdateSaasUserEmailParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateSaasUserEmailParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateSaasUserEmailParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateSaasUserEmailParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserEmailParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserEmailParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateSaasUserEmailParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['email'] = $object->getEmail(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['email'] = $object->getEmail(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserEmailParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserEmailParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateSaasUserPasswordParamNormalizer.php b/generated/Auth/Normalizer/UpdateSaasUserPasswordParamNormalizer.php index ac6ce05..ebdd5c1 100644 --- a/generated/Auth/Normalizer/UpdateSaasUserPasswordParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateSaasUserPasswordParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateSaasUserPasswordParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateSaasUserPasswordParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserPasswordParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserPasswordParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('password', $data) && $data['password'] !== null) { + $object->setPassword($data['password']); + unset($data['password']); + } + elseif (\array_key_exists('password', $data) && $data['password'] === null) { + $object->setPassword(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('password', $data) && $data['password'] !== null) { - $object->setPassword($data['password']); - unset($data['password']); - } - elseif (\array_key_exists('password', $data) && $data['password'] === null) { - $object->setPassword(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['password'] = $object->getPassword(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateSaasUserPasswordParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['password'] = $object->getPassword(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('password', $data) && $data['password'] !== null) { + $object->setPassword($data['password']); + unset($data['password']); + } + elseif (\array_key_exists('password', $data) && $data['password'] === null) { + $object->setPassword(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['password'] = $object->getPassword(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSaasUserPasswordParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSaasUserPasswordParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateSignInSettingsParamNormalizer.php b/generated/Auth/Normalizer/UpdateSignInSettingsParamNormalizer.php index 60d2ca0..3dfee14 100644 --- a/generated/Auth/Normalizer/UpdateSignInSettingsParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateSignInSettingsParamNormalizer.php @@ -12,117 +12,229 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateSignInSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateSignInSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSignInSettingsParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSignInSettingsParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('password_policy', $data) && $data['password_policy'] !== null) { + $object->setPasswordPolicy($this->denormalizer->denormalize($data['password_policy'], \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class, 'json', $context)); + unset($data['password_policy']); + } + elseif (\array_key_exists('password_policy', $data) && $data['password_policy'] === null) { + $object->setPasswordPolicy(null); + } + if (\array_key_exists('device_configuration', $data) && $data['device_configuration'] !== null) { + $object->setDeviceConfiguration($this->denormalizer->denormalize($data['device_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class, 'json', $context)); + unset($data['device_configuration']); + } + elseif (\array_key_exists('device_configuration', $data) && $data['device_configuration'] === null) { + $object->setDeviceConfiguration(null); + } + if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { + $object->setMfaConfiguration($this->denormalizer->denormalize($data['mfa_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class, 'json', $context)); + unset($data['mfa_configuration']); + } + elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { + $object->setMfaConfiguration(null); + } + if (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] !== null) { + $object->setRecaptchaProps($this->denormalizer->denormalize($data['recaptcha_props'], \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class, 'json', $context)); + unset($data['recaptcha_props']); + } + elseif (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] === null) { + $object->setRecaptchaProps(null); + } + if (\array_key_exists('account_verification', $data) && $data['account_verification'] !== null) { + $object->setAccountVerification($this->denormalizer->denormalize($data['account_verification'], \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class, 'json', $context)); + unset($data['account_verification']); + } + elseif (\array_key_exists('account_verification', $data) && $data['account_verification'] === null) { + $object->setAccountVerification(null); + } + if (\array_key_exists('self_regist', $data) && $data['self_regist'] !== null) { + $object->setSelfRegist($this->denormalizer->denormalize($data['self_regist'], \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class, 'json', $context)); + unset($data['self_regist']); + } + elseif (\array_key_exists('self_regist', $data) && $data['self_regist'] === null) { + $object->setSelfRegist(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('password_policy', $data) && $data['password_policy'] !== null) { - $object->setPasswordPolicy($this->denormalizer->denormalize($data['password_policy'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\PasswordPolicy', 'json', $context)); - unset($data['password_policy']); - } - elseif (\array_key_exists('password_policy', $data) && $data['password_policy'] === null) { - $object->setPasswordPolicy(null); - } - if (\array_key_exists('device_configuration', $data) && $data['device_configuration'] !== null) { - $object->setDeviceConfiguration($this->denormalizer->denormalize($data['device_configuration'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\DeviceConfiguration', 'json', $context)); - unset($data['device_configuration']); - } - elseif (\array_key_exists('device_configuration', $data) && $data['device_configuration'] === null) { - $object->setDeviceConfiguration(null); - } - if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { - $object->setMfaConfiguration($this->denormalizer->denormalize($data['mfa_configuration'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\MfaConfiguration', 'json', $context)); - unset($data['mfa_configuration']); - } - elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { - $object->setMfaConfiguration(null); - } - if (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] !== null) { - $object->setRecaptchaProps($this->denormalizer->denormalize($data['recaptcha_props'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\RecaptchaProps', 'json', $context)); - unset($data['recaptcha_props']); - } - elseif (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] === null) { - $object->setRecaptchaProps(null); - } - if (\array_key_exists('account_verification', $data) && $data['account_verification'] !== null) { - $object->setAccountVerification($this->denormalizer->denormalize($data['account_verification'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\AccountVerification', 'json', $context)); - unset($data['account_verification']); - } - elseif (\array_key_exists('account_verification', $data) && $data['account_verification'] === null) { - $object->setAccountVerification(null); - } - if (\array_key_exists('self_regist', $data) && $data['self_regist'] !== null) { - $object->setSelfRegist($this->denormalizer->denormalize($data['self_regist'], 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\SelfRegist', 'json', $context)); - unset($data['self_regist']); - } - elseif (\array_key_exists('self_regist', $data) && $data['self_regist'] === null) { - $object->setSelfRegist(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('passwordPolicy') && null !== $object->getPasswordPolicy()) { + $data['password_policy'] = $this->normalizer->normalize($object->getPasswordPolicy(), 'json', $context); + } + if ($object->isInitialized('deviceConfiguration') && null !== $object->getDeviceConfiguration()) { + $data['device_configuration'] = $this->normalizer->normalize($object->getDeviceConfiguration(), 'json', $context); + } + if ($object->isInitialized('mfaConfiguration') && null !== $object->getMfaConfiguration()) { + $data['mfa_configuration'] = $this->normalizer->normalize($object->getMfaConfiguration(), 'json', $context); } + if ($object->isInitialized('recaptchaProps') && null !== $object->getRecaptchaProps()) { + $data['recaptcha_props'] = $this->normalizer->normalize($object->getRecaptchaProps(), 'json', $context); + } + if ($object->isInitialized('accountVerification') && null !== $object->getAccountVerification()) { + $data['account_verification'] = $this->normalizer->normalize($object->getAccountVerification(), 'json', $context); + } + if ($object->isInitialized('selfRegist') && null !== $object->getSelfRegist()) { + $data['self_regist'] = $this->normalizer->normalize($object->getSelfRegist(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateSignInSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('passwordPolicy') && null !== $object->getPasswordPolicy()) { - $data['password_policy'] = $this->normalizer->normalize($object->getPasswordPolicy(), 'json', $context); - } - if ($object->isInitialized('deviceConfiguration') && null !== $object->getDeviceConfiguration()) { - $data['device_configuration'] = $this->normalizer->normalize($object->getDeviceConfiguration(), 'json', $context); - } - if ($object->isInitialized('mfaConfiguration') && null !== $object->getMfaConfiguration()) { - $data['mfa_configuration'] = $this->normalizer->normalize($object->getMfaConfiguration(), 'json', $context); - } - if ($object->isInitialized('recaptchaProps') && null !== $object->getRecaptchaProps()) { - $data['recaptcha_props'] = $this->normalizer->normalize($object->getRecaptchaProps(), 'json', $context); - } - if ($object->isInitialized('accountVerification') && null !== $object->getAccountVerification()) { - $data['account_verification'] = $this->normalizer->normalize($object->getAccountVerification(), 'json', $context); - } - if ($object->isInitialized('selfRegist') && null !== $object->getSelfRegist()) { - $data['self_regist'] = $this->normalizer->normalize($object->getSelfRegist(), 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('password_policy', $data) && $data['password_policy'] !== null) { + $object->setPasswordPolicy($this->denormalizer->denormalize($data['password_policy'], \AntiPatternInc\Saasus\Sdk\Auth\Model\PasswordPolicy::class, 'json', $context)); + unset($data['password_policy']); + } + elseif (\array_key_exists('password_policy', $data) && $data['password_policy'] === null) { + $object->setPasswordPolicy(null); + } + if (\array_key_exists('device_configuration', $data) && $data['device_configuration'] !== null) { + $object->setDeviceConfiguration($this->denormalizer->denormalize($data['device_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\DeviceConfiguration::class, 'json', $context)); + unset($data['device_configuration']); + } + elseif (\array_key_exists('device_configuration', $data) && $data['device_configuration'] === null) { + $object->setDeviceConfiguration(null); + } + if (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] !== null) { + $object->setMfaConfiguration($this->denormalizer->denormalize($data['mfa_configuration'], \AntiPatternInc\Saasus\Sdk\Auth\Model\MfaConfiguration::class, 'json', $context)); + unset($data['mfa_configuration']); + } + elseif (\array_key_exists('mfa_configuration', $data) && $data['mfa_configuration'] === null) { + $object->setMfaConfiguration(null); + } + if (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] !== null) { + $object->setRecaptchaProps($this->denormalizer->denormalize($data['recaptcha_props'], \AntiPatternInc\Saasus\Sdk\Auth\Model\RecaptchaProps::class, 'json', $context)); + unset($data['recaptcha_props']); + } + elseif (\array_key_exists('recaptcha_props', $data) && $data['recaptcha_props'] === null) { + $object->setRecaptchaProps(null); + } + if (\array_key_exists('account_verification', $data) && $data['account_verification'] !== null) { + $object->setAccountVerification($this->denormalizer->denormalize($data['account_verification'], \AntiPatternInc\Saasus\Sdk\Auth\Model\AccountVerification::class, 'json', $context)); + unset($data['account_verification']); + } + elseif (\array_key_exists('account_verification', $data) && $data['account_verification'] === null) { + $object->setAccountVerification(null); + } + if (\array_key_exists('self_regist', $data) && $data['self_regist'] !== null) { + $object->setSelfRegist($this->denormalizer->denormalize($data['self_regist'], \AntiPatternInc\Saasus\Sdk\Auth\Model\SelfRegist::class, 'json', $context)); + unset($data['self_regist']); + } + elseif (\array_key_exists('self_regist', $data) && $data['self_regist'] === null) { + $object->setSelfRegist(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('passwordPolicy') && null !== $object->getPasswordPolicy()) { + $data['password_policy'] = $this->normalizer->normalize($object->getPasswordPolicy(), 'json', $context); } + if ($object->isInitialized('deviceConfiguration') && null !== $object->getDeviceConfiguration()) { + $data['device_configuration'] = $this->normalizer->normalize($object->getDeviceConfiguration(), 'json', $context); + } + if ($object->isInitialized('mfaConfiguration') && null !== $object->getMfaConfiguration()) { + $data['mfa_configuration'] = $this->normalizer->normalize($object->getMfaConfiguration(), 'json', $context); + } + if ($object->isInitialized('recaptchaProps') && null !== $object->getRecaptchaProps()) { + $data['recaptcha_props'] = $this->normalizer->normalize($object->getRecaptchaProps(), 'json', $context); + } + if ($object->isInitialized('accountVerification') && null !== $object->getAccountVerification()) { + $data['account_verification'] = $this->normalizer->normalize($object->getAccountVerification(), 'json', $context); + } + if ($object->isInitialized('selfRegist') && null !== $object->getSelfRegist()) { + $data['self_regist'] = $this->normalizer->normalize($object->getSelfRegist(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSignInSettingsParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSignInSettingsParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateSingleTenantSettingsParamNormalizer.php b/generated/Auth/Normalizer/UpdateSingleTenantSettingsParamNormalizer.php new file mode 100644 index 0000000..310ecb2 --- /dev/null +++ b/generated/Auth/Normalizer/UpdateSingleTenantSettingsParamNormalizer.php @@ -0,0 +1,220 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateSingleTenantSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + $object->setEnabled($data['enabled']); + unset($data['enabled']); + } + elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + $object->setEnabled(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('cloudformation_template', $data) && $data['cloudformation_template'] !== null) { + $object->setCloudformationTemplate($data['cloudformation_template']); + unset($data['cloudformation_template']); + } + elseif (\array_key_exists('cloudformation_template', $data) && $data['cloudformation_template'] === null) { + $object->setCloudformationTemplate(null); + } + if (\array_key_exists('ddl_template', $data) && $data['ddl_template'] !== null) { + $object->setDdlTemplate($data['ddl_template']); + unset($data['ddl_template']); + } + elseif (\array_key_exists('ddl_template', $data) && $data['ddl_template'] === null) { + $object->setDdlTemplate(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('enabled') && null !== $object->getEnabled()) { + $data['enabled'] = $object->getEnabled(); + } + if ($object->isInitialized('roleArn') && null !== $object->getRoleArn()) { + $data['role_arn'] = $object->getRoleArn(); + } + if ($object->isInitialized('cloudformationTemplate') && null !== $object->getCloudformationTemplate()) { + $data['cloudformation_template'] = $object->getCloudformationTemplate(); + } + if ($object->isInitialized('ddlTemplate') && null !== $object->getDdlTemplate()) { + $data['ddl_template'] = $object->getDdlTemplate(); + } + if ($object->isInitialized('roleExternalId') && null !== $object->getRoleExternalId()) { + $data['role_external_id'] = $object->getRoleExternalId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class => false]; + } + } +} else { + class UpdateSingleTenantSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { + $object->setEnabled($data['enabled']); + unset($data['enabled']); + } + elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { + $object->setEnabled(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('cloudformation_template', $data) && $data['cloudformation_template'] !== null) { + $object->setCloudformationTemplate($data['cloudformation_template']); + unset($data['cloudformation_template']); + } + elseif (\array_key_exists('cloudformation_template', $data) && $data['cloudformation_template'] === null) { + $object->setCloudformationTemplate(null); + } + if (\array_key_exists('ddl_template', $data) && $data['ddl_template'] !== null) { + $object->setDdlTemplate($data['ddl_template']); + unset($data['ddl_template']); + } + elseif (\array_key_exists('ddl_template', $data) && $data['ddl_template'] === null) { + $object->setDdlTemplate(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('enabled') && null !== $object->getEnabled()) { + $data['enabled'] = $object->getEnabled(); + } + if ($object->isInitialized('roleArn') && null !== $object->getRoleArn()) { + $data['role_arn'] = $object->getRoleArn(); + } + if ($object->isInitialized('cloudformationTemplate') && null !== $object->getCloudformationTemplate()) { + $data['cloudformation_template'] = $object->getCloudformationTemplate(); + } + if ($object->isInitialized('ddlTemplate') && null !== $object->getDdlTemplate()) { + $data['ddl_template'] = $object->getDdlTemplate(); + } + if ($object->isInitialized('roleExternalId') && null !== $object->getRoleExternalId()) { + $data['role_external_id'] = $object->getRoleExternalId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSingleTenantSettingsParam::class => false]; + } + } +} \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateSoftwareTokenParamNormalizer.php b/generated/Auth/Normalizer/UpdateSoftwareTokenParamNormalizer.php index 15cd400..d24fe00 100644 --- a/generated/Auth/Normalizer/UpdateSoftwareTokenParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateSoftwareTokenParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateSoftwareTokenParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateSoftwareTokenParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSoftwareTokenParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSoftwareTokenParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('verification_code', $data) && $data['verification_code'] !== null) { + $object->setVerificationCode($data['verification_code']); + unset($data['verification_code']); + } + elseif (\array_key_exists('verification_code', $data) && $data['verification_code'] === null) { + $object->setVerificationCode(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + $data['verification_code'] = $object->getVerificationCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class => false]; } - if (\array_key_exists('verification_code', $data) && $data['verification_code'] !== null) { - $object->setVerificationCode($data['verification_code']); - unset($data['verification_code']); + } +} else { + class UpdateSoftwareTokenParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class; } - elseif (\array_key_exists('verification_code', $data) && $data['verification_code'] === null) { - $object->setVerificationCode(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('verification_code', $data) && $data['verification_code'] !== null) { + $object->setVerificationCode($data['verification_code']); + unset($data['verification_code']); + } + elseif (\array_key_exists('verification_code', $data) && $data['verification_code'] === null) { + $object->setVerificationCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['access_token'] = $object->getAccessToken(); - $data['verification_code'] = $object->getVerificationCode(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_token'] = $object->getAccessToken(); + $data['verification_code'] = $object->getVerificationCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateSoftwareTokenParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateSoftwareTokenParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateTenantIdentityProviderParamNormalizer.php b/generated/Auth/Normalizer/UpdateTenantIdentityProviderParamNormalizer.php index 9caf544..e90792f 100644 --- a/generated/Auth/Normalizer/UpdateTenantIdentityProviderParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateTenantIdentityProviderParamNormalizer.php @@ -12,83 +12,161 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateTenantIdentityProviderParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateTenantIdentityProviderParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantIdentityProviderParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantIdentityProviderParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('provider_type', $data) && $data['provider_type'] !== null) { + $object->setProviderType($data['provider_type']); + unset($data['provider_type']); + } + elseif (\array_key_exists('provider_type', $data) && $data['provider_type'] === null) { + $object->setProviderType(null); + } + if (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['identity_provider_props'] as $key => $value) { + $values[$key] = $value; + } + $object->setIdentityProviderProps($values); + unset($data['identity_provider_props']); + } + elseif (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] === null) { + $object->setIdentityProviderProps(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } - if (\array_key_exists('provider_type', $data) && $data['provider_type'] !== null) { - $object->setProviderType($data['provider_type']); - unset($data['provider_type']); - } - elseif (\array_key_exists('provider_type', $data) && $data['provider_type'] === null) { - $object->setProviderType(null); - } - if (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['identity_provider_props'] as $key => $value) { - $values[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['provider_type'] = $object->getProviderType(); + if ($object->isInitialized('identityProviderProps') && null !== $object->getIdentityProviderProps()) { + $values = []; + foreach ($object->getIdentityProviderProps() as $key => $value) { + $values[$key] = $value; + } + $data['identity_provider_props'] = $values; } - $object->setIdentityProviderProps($values); - unset($data['identity_provider_props']); - } - elseif (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] === null) { - $object->setIdentityProviderProps(null); - } - foreach ($data as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_1; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateTenantIdentityProviderParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['provider_type'] = $object->getProviderType(); - if ($object->isInitialized('identityProviderProps') && null !== $object->getIdentityProviderProps()) { - $values = array(); - foreach ($object->getIdentityProviderProps() as $key => $value) { - $values[$key] = $value; - } - $data['identity_provider_props'] = $values; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('provider_type', $data) && $data['provider_type'] !== null) { + $object->setProviderType($data['provider_type']); + unset($data['provider_type']); + } + elseif (\array_key_exists('provider_type', $data) && $data['provider_type'] === null) { + $object->setProviderType(null); + } + if (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['identity_provider_props'] as $key => $value) { + $values[$key] = $value; + } + $object->setIdentityProviderProps($values); + unset($data['identity_provider_props']); + } + elseif (\array_key_exists('identity_provider_props', $data) && $data['identity_provider_props'] === null) { + $object->setIdentityProviderProps(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + return $object; } - foreach ($object as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['provider_type'] = $object->getProviderType(); + if ($object->isInitialized('identityProviderProps') && null !== $object->getIdentityProviderProps()) { + $values = []; + foreach ($object->getIdentityProviderProps() as $key => $value) { + $values[$key] = $value; + } + $data['identity_provider_props'] = $values; } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantIdentityProviderParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantIdentityProviderParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UpdateTenantUserParamNormalizer.php b/generated/Auth/Normalizer/UpdateTenantUserParamNormalizer.php index 6e83847..758d9f2 100644 --- a/generated/Auth/Normalizer/UpdateTenantUserParamNormalizer.php +++ b/generated/Auth/Normalizer/UpdateTenantUserParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateTenantUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateTenantUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantUserParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantUserParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } - if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['attributes'] as $key => $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } - $object->setAttributes($values); - unset($data['attributes']); - } - elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { - $object->setAttributes(null); - } - foreach ($data as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_1; + $data['attributes'] = $values; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateTenantUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getAttributes() as $key => $value) { - $values[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class; } - $data['attributes'] = $values; - foreach ($object as $key_1 => $value_1) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getAttributes() as $key => $value) { + $values[$key] = $value; + } + $data['attributes'] = $values; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UpdateTenantUserParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UpdateTenantUserParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UserAttributesNormalizer.php b/generated/Auth/Normalizer/UserAttributesNormalizer.php index c882c41..7826ab3 100644 --- a/generated/Auth/Normalizer/UserAttributesNormalizer.php +++ b/generated/Auth/Normalizer/UserAttributesNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UserAttributesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UserAttributesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAttributes'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAttributes'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_attributes', $data) && $data['user_attributes'] !== null) { + $values = []; + foreach ($data['user_attributes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class, 'json', $context); + } + $object->setUserAttributes($values); + unset($data['user_attributes']); + } + elseif (\array_key_exists('user_attributes', $data) && $data['user_attributes'] === null) { + $object->setUserAttributes(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('user_attributes', $data) && $data['user_attributes'] !== null) { - $values = array(); - foreach ($data['user_attributes'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Attribute', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getUserAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setUserAttributes($values); - unset($data['user_attributes']); - } - elseif (\array_key_exists('user_attributes', $data) && $data['user_attributes'] === null) { - $object->setUserAttributes(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['user_attributes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UserAttributesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getUserAttributes() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class; } - $data['user_attributes'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_attributes', $data) && $data['user_attributes'] !== null) { + $values = []; + foreach ($data['user_attributes'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Attribute::class, 'json', $context); + } + $object->setUserAttributes($values); + unset($data['user_attributes']); } + elseif (\array_key_exists('user_attributes', $data) && $data['user_attributes'] === null) { + $object->setUserAttributes(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getUserAttributes() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['user_attributes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserAttributes::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAttributes' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UserAvailableEnvNormalizer.php b/generated/Auth/Normalizer/UserAvailableEnvNormalizer.php index 40e2d04..60d7077 100644 --- a/generated/Auth/Normalizer/UserAvailableEnvNormalizer.php +++ b/generated/Auth/Normalizer/UserAvailableEnvNormalizer.php @@ -12,99 +12,193 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UserAvailableEnvNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UserAvailableEnvNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableEnv'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableEnv'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('roles', $data) && $data['roles'] !== null) { + $values = []; + foreach ($data['roles'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class, 'json', $context); + } + $object->setRoles($values); + unset($data['roles']); + } + elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { + $object->setRoles(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('roles', $data) && $data['roles'] !== null) { - $values = array(); - foreach ($data['roles'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Role', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { + $data['display_name'] = $object->getDisplayName(); } - $object->setRoles($values); - unset($data['roles']); - } - elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { - $object->setRoles(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $values = []; + foreach ($object->getRoles() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['roles'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UserAvailableEnvNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['name'] = $object->getName(); - if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { - $data['display_name'] = $object->getDisplayName(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class; } - $values = array(); - foreach ($object->getRoles() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('roles', $data) && $data['roles'] !== null) { + $values = []; + foreach ($data['roles'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\Role::class, 'json', $context); + } + $object->setRoles($values); + unset($data['roles']); + } + elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { + $object->setRoles(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - $data['roles'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + if ($object->isInitialized('displayName') && null !== $object->getDisplayName()) { + $data['display_name'] = $object->getDisplayName(); } + $values = []; + foreach ($object->getRoles() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['roles'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableEnv' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UserAvailableTenantNormalizer.php b/generated/Auth/Normalizer/UserAvailableTenantNormalizer.php index 83f80aa..f048259 100644 --- a/generated/Auth/Normalizer/UserAvailableTenantNormalizer.php +++ b/generated/Auth/Normalizer/UserAvailableTenantNormalizer.php @@ -12,141 +12,277 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UserAvailableTenantNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UserAvailableTenantNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableTenant'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableTenant'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('completed_sign_up', $data) && $data['completed_sign_up'] !== null) { + $object->setCompletedSignUp($data['completed_sign_up']); + unset($data['completed_sign_up']); + } + elseif (\array_key_exists('completed_sign_up', $data) && $data['completed_sign_up'] === null) { + $object->setCompletedSignUp(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class, 'json', $context); + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + if (\array_key_exists('user_attribute', $data) && $data['user_attribute'] !== null) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['user_attribute'] as $key => $value_1) { + $values_1[$key] = $value_1; + } + $object->setUserAttribute($values_1); + unset($data['user_attribute']); + } + elseif (\array_key_exists('user_attribute', $data) && $data['user_attribute'] === null) { + $object->setUserAttribute(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('is_paid', $data) && $data['is_paid'] !== null) { + $object->setIsPaid($data['is_paid']); + unset($data['is_paid']); + } + elseif (\array_key_exists('is_paid', $data) && $data['is_paid'] === null) { + $object->setIsPaid(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('completed_sign_up', $data) && $data['completed_sign_up'] !== null) { - $object->setCompletedSignUp($data['completed_sign_up']); - unset($data['completed_sign_up']); - } - elseif (\array_key_exists('completed_sign_up', $data) && $data['completed_sign_up'] === null) { - $object->setCompletedSignUp(null); - } - if (\array_key_exists('envs', $data) && $data['envs'] !== null) { - $values = array(); - foreach ($data['envs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableEnv', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['completed_sign_up'] = $object->getCompletedSignUp(); + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setEnvs($values); - unset($data['envs']); - } - elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { - $object->setEnvs(null); - } - if (\array_key_exists('user_attribute', $data) && $data['user_attribute'] !== null) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['user_attribute'] as $key => $value_1) { + $data['envs'] = $values; + $values_1 = []; + foreach ($object->getUserAttribute() as $key => $value_1) { $values_1[$key] = $value_1; } - $object->setUserAttribute($values_1); - unset($data['user_attribute']); - } - elseif (\array_key_exists('user_attribute', $data) && $data['user_attribute'] === null) { - $object->setUserAttribute(null); - } - if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { - $object->setBackOfficeStaffEmail($data['back_office_staff_email']); - unset($data['back_office_staff_email']); - } - elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { - $object->setBackOfficeStaffEmail(null); - } - if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { - $object->setPlanId($data['plan_id']); - unset($data['plan_id']); - } - elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { - $object->setPlanId(null); - } - if (\array_key_exists('is_paid', $data) && $data['is_paid'] !== null) { - $object->setIsPaid($data['is_paid']); - unset($data['is_paid']); - } - elseif (\array_key_exists('is_paid', $data) && $data['is_paid'] === null) { - $object->setIsPaid(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['user_attribute'] = $values_1; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + if ($object->isInitialized('planId') && null !== $object->getPlanId()) { + $data['plan_id'] = $object->getPlanId(); + } + if ($object->isInitialized('isPaid') && null !== $object->getIsPaid()) { + $data['is_paid'] = $object->getIsPaid(); + } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UserAvailableTenantNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['name'] = $object->getName(); - $data['completed_sign_up'] = $object->getCompletedSignUp(); - $values = array(); - foreach ($object->getEnvs() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['envs'] = $values; - $values_1 = array(); - foreach ($object->getUserAttribute() as $key => $value_1) { - $values_1[$key] = $value_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class; } - $data['user_attribute'] = $values_1; - $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); - if ($object->isInitialized('planId') && null !== $object->getPlanId()) { - $data['plan_id'] = $object->getPlanId(); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class; } - if ($object->isInitialized('isPaid') && null !== $object->getIsPaid()) { - $data['is_paid'] = $object->getIsPaid(); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('completed_sign_up', $data) && $data['completed_sign_up'] !== null) { + $object->setCompletedSignUp($data['completed_sign_up']); + unset($data['completed_sign_up']); + } + elseif (\array_key_exists('completed_sign_up', $data) && $data['completed_sign_up'] === null) { + $object->setCompletedSignUp(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values = []; + foreach ($data['envs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableEnv::class, 'json', $context); + } + $object->setEnvs($values); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + if (\array_key_exists('user_attribute', $data) && $data['user_attribute'] !== null) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['user_attribute'] as $key => $value_1) { + $values_1[$key] = $value_1; + } + $object->setUserAttribute($values_1); + unset($data['user_attribute']); + } + elseif (\array_key_exists('user_attribute', $data) && $data['user_attribute'] === null) { + $object->setUserAttribute(null); + } + if (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] !== null) { + $object->setBackOfficeStaffEmail($data['back_office_staff_email']); + unset($data['back_office_staff_email']); + } + elseif (\array_key_exists('back_office_staff_email', $data) && $data['back_office_staff_email'] === null) { + $object->setBackOfficeStaffEmail(null); + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('is_paid', $data) && $data['is_paid'] !== null) { + $object->setIsPaid($data['is_paid']); + unset($data['is_paid']); + } + elseif (\array_key_exists('is_paid', $data) && $data['is_paid'] === null) { + $object->setIsPaid(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['completed_sign_up'] = $object->getCompletedSignUp(); + $values = []; + foreach ($object->getEnvs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['envs'] = $values; + $values_1 = []; + foreach ($object->getUserAttribute() as $key => $value_1) { + $values_1[$key] = $value_1; + } + $data['user_attribute'] = $values_1; + $data['back_office_staff_email'] = $object->getBackOfficeStaffEmail(); + if ($object->isInitialized('planId') && null !== $object->getPlanId()) { + $data['plan_id'] = $object->getPlanId(); + } + if ($object->isInitialized('isPaid') && null !== $object->getIsPaid()) { + $data['is_paid'] = $object->getIsPaid(); } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableTenant' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UserInfoNormalizer.php b/generated/Auth/Normalizer/UserInfoNormalizer.php index d9d1ffb..071a339 100644 --- a/generated/Auth/Normalizer/UserInfoNormalizer.php +++ b/generated/Auth/Normalizer/UserInfoNormalizer.php @@ -12,89 +12,173 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UserInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UserInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserInfo'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserInfo'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('tenants', $data) && $data['tenants'] !== null) { + $values = []; + foreach ($data['tenants'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class, 'json', $context); + } + $object->setTenants($values); + unset($data['tenants']); + } + elseif (\array_key_exists('tenants', $data) && $data['tenants'] === null) { + $object->setTenants(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['email'] = $object->getEmail(); + $values = []; + foreach ($object->getTenants() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tenants'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class => false]; } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); + } +} else { + class UserInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class; } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class; } - if (\array_key_exists('tenants', $data) && $data['tenants'] !== null) { - $values = array(); - foreach ($data['tenants'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserAvailableTenant', 'json', $context); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } - $object->setTenants($values); - unset($data['tenants']); - } - elseif (\array_key_exists('tenants', $data) && $data['tenants'] === null) { - $object->setTenants(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('tenants', $data) && $data['tenants'] !== null) { + $values = []; + foreach ($data['tenants'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\UserAvailableTenant::class, 'json', $context); + } + $object->setTenants($values); + unset($data['tenants']); + } + elseif (\array_key_exists('tenants', $data) && $data['tenants'] === null) { + $object->setTenants(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['id'] = $object->getId(); - $data['email'] = $object->getEmail(); - $values = array(); - foreach ($object->getTenants() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['tenants'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['email'] = $object->getEmail(); + $values = []; + foreach ($object->getTenants() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } + $data['tenants'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\UserInfo::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\UserInfo' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UserNormalizer.php b/generated/Auth/Normalizer/UserNormalizer.php index 7592027..8a146c9 100644 --- a/generated/Auth/Normalizer/UserNormalizer.php +++ b/generated/Auth/Normalizer/UserNormalizer.php @@ -12,121 +12,237 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\User(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\User::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\User(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('tenant_name', $data) && $data['tenant_name'] !== null) { + $object->setTenantName($data['tenant_name']); + unset($data['tenant_name']); + } + elseif (\array_key_exists('tenant_name', $data) && $data['tenant_name'] === null) { + $object->setTenantName(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values_1 = []; + foreach ($data['envs'] as $value_1) { + $values_1[] = $value_1; + } + $object->setEnvs($values_1); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { - $object->setTenantId($data['tenant_id']); - unset($data['tenant_id']); - } - elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { - $object->setTenantId(null); - } - if (\array_key_exists('tenant_name', $data) && $data['tenant_name'] !== null) { - $object->setTenantName($data['tenant_name']); - unset($data['tenant_name']); - } - elseif (\array_key_exists('tenant_name', $data) && $data['tenant_name'] === null) { - $object->setTenantName(null); - } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { - $values = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['attributes'] as $key => $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['tenant_id'] = $object->getTenantId(); + $data['tenant_name'] = $object->getTenantName(); + $data['email'] = $object->getEmail(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } - $object->setAttributes($values); - unset($data['attributes']); - } - elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { - $object->setAttributes(null); - } - if (\array_key_exists('envs', $data) && $data['envs'] !== null) { - $values_1 = array(); - foreach ($data['envs'] as $value_1) { + $data['attributes'] = $values; + $values_1 = []; + foreach ($object->getEnvs() as $value_1) { $values_1[] = $value_1; } - $object->setEnvs($values_1); - unset($data['envs']); - } - elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { - $object->setEnvs(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['envs'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\User::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['tenant_id'] = $object->getTenantId(); - $data['tenant_name'] = $object->getTenantName(); - $data['email'] = $object->getEmail(); - $values = array(); - foreach ($object->getAttributes() as $key => $value) { - $values[$key] = $value; - } - $data['attributes'] = $values; - $values_1 = array(); - foreach ($object->getEnvs() as $value_1) { - $values_1[] = $value_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\User::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\User(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('tenant_name', $data) && $data['tenant_name'] !== null) { + $object->setTenantName($data['tenant_name']); + unset($data['tenant_name']); + } + elseif (\array_key_exists('tenant_name', $data) && $data['tenant_name'] === null) { + $object->setTenantName(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('attributes', $data) && $data['attributes'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['attributes'] as $key => $value) { + $values[$key] = $value; + } + $object->setAttributes($values); + unset($data['attributes']); + } + elseif (\array_key_exists('attributes', $data) && $data['attributes'] === null) { + $object->setAttributes(null); + } + if (\array_key_exists('envs', $data) && $data['envs'] !== null) { + $values_1 = []; + foreach ($data['envs'] as $value_1) { + $values_1[] = $value_1; + } + $object->setEnvs($values_1); + unset($data['envs']); + } + elseif (\array_key_exists('envs', $data) && $data['envs'] === null) { + $object->setEnvs(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['envs'] = $values_1; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['tenant_id'] = $object->getTenantId(); + $data['tenant_name'] = $object->getTenantName(); + $data['email'] = $object->getEmail(); + $values = []; + foreach ($object->getAttributes() as $key => $value) { + $values[$key] = $value; + } + $data['attributes'] = $values; + $values_1 = []; + foreach ($object->getEnvs() as $value_1) { + $values_1[] = $value_1; + } + $data['envs'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\User::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/UsersNormalizer.php b/generated/Auth/Normalizer/UsersNormalizer.php index fc58c07..4331cf3 100644 --- a/generated/Auth/Normalizer/UsersNormalizer.php +++ b/generated/Auth/Normalizer/UsersNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Users(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Users(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('users', $data) && $data['users'] !== null) { - $values = array(); - foreach ($data['users'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\User', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setUsers($values); - unset($data['users']); - } - elseif (\array_key_exists('users', $data) && $data['users'] === null) { - $object->setUsers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getUsers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class; } - $data['users'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\Users(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Auth\Model\User::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\Users::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\Users' => false); } } \ No newline at end of file diff --git a/generated/Auth/Normalizer/ValidateInvitationParamNormalizer.php b/generated/Auth/Normalizer/ValidateInvitationParamNormalizer.php index 887f016..8887a2e 100644 --- a/generated/Auth/Normalizer/ValidateInvitationParamNormalizer.php +++ b/generated/Auth/Normalizer/ValidateInvitationParamNormalizer.php @@ -12,87 +12,169 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ValidateInvitationParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ValidateInvitationParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ValidateInvitationParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ValidateInvitationParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('password', $data) && $data['password'] !== null) { + $object->setPassword($data['password']); + unset($data['password']); + } + elseif (\array_key_exists('password', $data) && $data['password'] === null) { + $object->setPassword(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { - $object->setAccessToken($data['access_token']); - unset($data['access_token']); - } - elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { - $object->setAccessToken(null); - } - if (\array_key_exists('email', $data) && $data['email'] !== null) { - $object->setEmail($data['email']); - unset($data['email']); - } - elseif (\array_key_exists('email', $data) && $data['email'] === null) { - $object->setEmail(null); - } - if (\array_key_exists('password', $data) && $data['password'] !== null) { - $object->setPassword($data['password']); - unset($data['password']); - } - elseif (\array_key_exists('password', $data) && $data['password'] === null) { - $object->setPassword(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('accessToken') && null !== $object->getAccessToken()) { + $data['access_token'] = $object->getAccessToken(); + } + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $data['email'] = $object->getEmail(); } + if ($object->isInitialized('password') && null !== $object->getPassword()) { + $data['password'] = $object->getPassword(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class ValidateInvitationParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('accessToken') && null !== $object->getAccessToken()) { - $data['access_token'] = $object->getAccessToken(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class; } - if ($object->isInitialized('email') && null !== $object->getEmail()) { - $data['email'] = $object->getEmail(); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class; } - if ($object->isInitialized('password') && null !== $object->getPassword()) { - $data['password'] = $object->getPassword(); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_token', $data) && $data['access_token'] !== null) { + $object->setAccessToken($data['access_token']); + unset($data['access_token']); + } + elseif (\array_key_exists('access_token', $data) && $data['access_token'] === null) { + $object->setAccessToken(null); + } + if (\array_key_exists('email', $data) && $data['email'] !== null) { + $object->setEmail($data['email']); + unset($data['email']); + } + elseif (\array_key_exists('email', $data) && $data['email'] === null) { + $object->setEmail(null); + } + if (\array_key_exists('password', $data) && $data['password'] !== null) { + $object->setPassword($data['password']); + unset($data['password']); + } + elseif (\array_key_exists('password', $data) && $data['password'] === null) { + $object->setPassword(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('accessToken') && null !== $object->getAccessToken()) { + $data['access_token'] = $object->getAccessToken(); + } + if ($object->isInitialized('email') && null !== $object->getEmail()) { + $data['email'] = $object->getEmail(); } + if ($object->isInitialized('password') && null !== $object->getPassword()) { + $data['password'] = $object->getPassword(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Auth\Model\ValidateInvitationParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Auth\\Model\\ValidateInvitationParam' => false); } } \ No newline at end of file diff --git a/generated/Auth/Runtime/Client/BaseEndpoint.php b/generated/Auth/Runtime/Client/BaseEndpoint.php index 0b948ef..1688b08 100644 --- a/generated/Auth/Runtime/Client/BaseEndpoint.php +++ b/generated/Auth/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/Auth/Runtime/Client/Client.php b/generated/Auth/Runtime/Client/Client.php index 5d69983..1d9d938 100644 --- a/generated/Auth/Runtime/Client/Client.php +++ b/generated/Auth/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/Auth/Runtime/Client/Endpoint.php b/generated/Auth/Runtime/Client/Endpoint.php index 7036fbb..24fbdb3 100644 --- a/generated/Auth/Runtime/Client/Endpoint.php +++ b/generated/Auth/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/Auth/Runtime/Client/EndpointTrait.php b/generated/Auth/Runtime/Client/EndpointTrait.php index 79717fe..d1e50ca 100644 --- a/generated/Auth/Runtime/Client/EndpointTrait.php +++ b/generated/Auth/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/Auth/Runtime/Normalizer/CheckArray.php b/generated/Auth/Runtime/Normalizer/CheckArray.php index 474bcd5..595a65e 100644 --- a/generated/Auth/Runtime/Normalizer/CheckArray.php +++ b/generated/Auth/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/Auth/Runtime/Normalizer/ReferenceNormalizer.php b/generated/Auth/Runtime/Normalizer/ReferenceNormalizer.php index dc0fd52..780338a 100644 --- a/generated/Auth/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/Auth/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\Auth\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/Auth/Runtime/Normalizer/ValidationException.php b/generated/Auth/Runtime/Normalizer/ValidationException.php index 4d24719..4b5a25a 100644 --- a/generated/Auth/Runtime/Normalizer/ValidationException.php +++ b/generated/Auth/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\Auth\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/Auth/Runtime/Normalizer/ValidatorTrait.php b/generated/Auth/Runtime/Normalizer/ValidatorTrait.php index 409d7e6..da93a62 100644 --- a/generated/Auth/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/Auth/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\Auth\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); diff --git a/generated/AwsMarketplace/Authentication/BearerAuthentication.php b/generated/AwsMarketplace/Authentication/BearerAuthentication.php index 05b600e..eb7ba99 100644 --- a/generated/AwsMarketplace/Authentication/BearerAuthentication.php +++ b/generated/AwsMarketplace/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/AwsMarketplace/Client.php b/generated/AwsMarketplace/Client.php index 6f65aaf..4419b46 100644 --- a/generated/AwsMarketplace/Client.php +++ b/generated/AwsMarketplace/Client.php @@ -15,17 +15,14 @@ public function getSettings(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetSettings(), $fetch); } /** - * AWS Marketplaceの設定を更新します。 - - Update AWS Marketplace Settings. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateSettingsInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update AWS Marketplace Settings. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateSettingsInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateSettings(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\UpdateSettings($requestBody), $fetch); @@ -41,17 +38,14 @@ public function getListingStatus(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetListingStatus(), $fetch); } /** - * AWS Marketplaceの出品状況を更新します。 - - Update AWS Marketplace Listing Status. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateListingStatusInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update AWS Marketplace Listing Status. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateListingStatusInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateListingStatus(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\UpdateListingStatus($requestBody), $fetch); @@ -67,99 +61,81 @@ public function getPlans(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetPlans(), $fetch); } /** - * AWSMarketplaceに連携するプラン情報を登録します。 - - Save plan information to be linked to AWSMarketplace. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SavePlanInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Save plan information to be linked to AWSMarketplace. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SavePlanInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function savePlan(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\SavePlan($requestBody), $fetch); } /** - * Marketplaceと連携するプラン情報を取得します。 - - Obtain plan information to link to AWS Marketplace. - - * - * @param string $planName AWS Marketplace連携プラン名 - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetPlanByPlanNameInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan|\Psr\Http\Message\ResponseInterface - */ + * Obtain plan information to link to AWS Marketplace. + * + * @param string $planName AWS Marketplace linked plan name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetPlanByPlanNameInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan|\Psr\Http\Message\ResponseInterface + */ public function getPlanByPlanName(string $planName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetPlanByPlanName($planName), $fetch); } /** - * AWS Marketplaceに連携する顧客情報の一覧を取得します。 - - Get a list of customer information to be linked to AWS Marketplace. - - * - * @param array $queryParameters { - * @var array $tenant_ids 指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID) - * } - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomersInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers|\Psr\Http\Message\ResponseInterface - */ - public function getCustomers(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) + * Get a list of customer information to be linked to AWS Marketplace. + * + * @param array $queryParameters { + * @var array $tenant_ids 指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID) + * } + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomersInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers|\Psr\Http\Message\ResponseInterface + */ + public function getCustomers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetCustomers($queryParameters), $fetch); } /** - * AWS Marketplaceに連携する顧客情報を新規作成します。 - - Create customer information to be linked to AWS Marketplace. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\CreateCustomerInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer|\Psr\Http\Message\ResponseInterface - */ + * Create customer information to be linked to AWS Marketplace. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\CreateCustomerInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer|\Psr\Http\Message\ResponseInterface + */ public function createCustomer(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\CreateCustomer($requestBody), $fetch); } /** - * AWS Marketplaceに連携する顧客情報を取得します。 - - Get customer information to be linked to AWS Marketplace. - - * - * @param string $customerIdentifier 顧客ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomerInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer|\Psr\Http\Message\ResponseInterface - */ + * Get customer information to be linked to AWS Marketplace. + * + * @param string $customerIdentifier Customer ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomerInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer|\Psr\Http\Message\ResponseInterface + */ public function getCustomer(string $customerIdentifier, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetCustomer($customerIdentifier), $fetch); } /** - * AWS Marketplaceの顧客情報をSaaSusに同期します。 - - Sync AWS Marketplace customer information to SaaSus. - - * - * @param string $customerIdentifier 顧客ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SyncCustomerInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Sync AWS Marketplace customer information to SaaSus. + * + * @param string $customerIdentifier Customer ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SyncCustomerInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function syncCustomer(string $customerIdentifier, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\SyncCustomer($customerIdentifier), $fetch); @@ -175,18 +151,15 @@ public function getCloudFormationLaunchStackLink(string $fetch = self::FETCH_OBJ return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\GetCloudFormationLaunchStackLink(), $fetch); } /** - * Registration Tokenを検証します。 - - Verify Registration Token. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Verify Registration Token. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function verifyRegistrationToken(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\VerifyRegistrationToken($requestBody), $fetch); @@ -211,11 +184,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/awsmarketplace'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -226,11 +199,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/CreateCustomer.php b/generated/AwsMarketplace/Endpoint/CreateCustomer.php index e46a747..a8b18e4 100644 --- a/generated/AwsMarketplace/Endpoint/CreateCustomer.php +++ b/generated/AwsMarketplace/Endpoint/CreateCustomer.php @@ -5,36 +5,33 @@ class CreateCustomer extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { /** - * AWS Marketplaceに連携する顧客情報を新規作成します。 - - Create customer information to be linked to AWS Marketplace. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam $requestBody - */ + * Create customer information to be linked to AWS Marketplace. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/customers'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -48,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\CreateCustomerInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\CreateCustomerInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetCatalogEntityVisibility.php b/generated/AwsMarketplace/Endpoint/GetCatalogEntityVisibility.php index 2db575a..d2ad6e6 100644 --- a/generated/AwsMarketplace/Endpoint/GetCatalogEntityVisibility.php +++ b/generated/AwsMarketplace/Endpoint/GetCatalogEntityVisibility.php @@ -5,21 +5,21 @@ class GetCatalogEntityVisibility extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/catalog-entity/visibility'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CatalogEntityVisibility', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCatalogEntityVisibilityInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCatalogEntityVisibilityInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetCloudFormationLaunchStackLink.php b/generated/AwsMarketplace/Endpoint/GetCloudFormationLaunchStackLink.php index f96206c..5c6d7bd 100644 --- a/generated/AwsMarketplace/Endpoint/GetCloudFormationLaunchStackLink.php +++ b/generated/AwsMarketplace/Endpoint/GetCloudFormationLaunchStackLink.php @@ -5,21 +5,21 @@ class GetCloudFormationLaunchStackLink extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/cloudformation-launch-stack-link'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CloudFormationLaunchStackLink', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCloudFormationLaunchStackLinkInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCloudFormationLaunchStackLinkInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetCustomer.php b/generated/AwsMarketplace/Endpoint/GetCustomer.php index 87b966b..71e8f99 100644 --- a/generated/AwsMarketplace/Endpoint/GetCustomer.php +++ b/generated/AwsMarketplace/Endpoint/GetCustomer.php @@ -6,33 +6,30 @@ class GetCustomer extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Clie { protected $customer_identifier; /** - * AWS Marketplaceに連携する顧客情報を取得します。 - - Get customer information to be linked to AWS Marketplace. - - * - * @param string $customerIdentifier 顧客ID - */ + * Get customer information to be linked to AWS Marketplace. + * + * @param string $customerIdentifier Customer ID + */ public function __construct(string $customerIdentifier) { $this->customer_identifier = $customerIdentifier; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{customer_identifier}'), array($this->customer_identifier), '/customers/{customer_identifier}'); + return str_replace(['{customer_identifier}'], [$this->customer_identifier], '/customers/{customer_identifier}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomerInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomerInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetCustomers.php b/generated/AwsMarketplace/Endpoint/GetCustomers.php index cf37999..ba2b1b2 100644 --- a/generated/AwsMarketplace/Endpoint/GetCustomers.php +++ b/generated/AwsMarketplace/Endpoint/GetCustomers.php @@ -5,43 +5,40 @@ class GetCustomers extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { /** - * AWS Marketplaceに連携する顧客情報の一覧を取得します。 - - Get a list of customer information to be linked to AWS Marketplace. - - * - * @param array $queryParameters { - * @var array $tenant_ids 指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID) - * } - */ - public function __construct(array $queryParameters = array()) + * Get a list of customer information to be linked to AWS Marketplace. + * + * @param array $queryParameters { + * @var array $tenant_ids 指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID) + * } + */ + public function __construct(array $queryParameters = []) { $this->queryParameters = $queryParameters; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/customers'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } - protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolver\OptionsResolver + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(array('tenant_ids')); - $optionsResolver->setRequired(array()); - $optionsResolver->setDefaults(array()); - $optionsResolver->addAllowedTypes('tenant_ids', array('array')); + $optionsResolver->setDefined(['tenant_ids']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('tenant_ids', ['array']); return $optionsResolver; } /** @@ -56,14 +53,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customers', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetCustomersInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetListingStatus.php b/generated/AwsMarketplace/Endpoint/GetListingStatus.php index faa6947..06c0499 100644 --- a/generated/AwsMarketplace/Endpoint/GetListingStatus.php +++ b/generated/AwsMarketplace/Endpoint/GetListingStatus.php @@ -5,21 +5,21 @@ class GetListingStatus extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/listing-status'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\GetListingStatusResult', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetListingStatusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetListingStatusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetPlanByPlanName.php b/generated/AwsMarketplace/Endpoint/GetPlanByPlanName.php index f4c6574..5f6fa06 100644 --- a/generated/AwsMarketplace/Endpoint/GetPlanByPlanName.php +++ b/generated/AwsMarketplace/Endpoint/GetPlanByPlanName.php @@ -6,33 +6,30 @@ class GetPlanByPlanName extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtim { protected $plan_name; /** - * Marketplaceと連携するプラン情報を取得します。 - - Obtain plan information to link to AWS Marketplace. - - * - * @param string $planName AWS Marketplace連携プラン名 - */ + * Obtain plan information to link to AWS Marketplace. + * + * @param string $planName AWS Marketplace linked plan name + */ public function __construct(string $planName) { $this->plan_name = $planName; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{plan_name}'), array($this->plan_name), '/plans/{plan_name}'); + return str_replace(['{plan_name}'], [$this->plan_name], '/plans/{plan_name}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetPlanByPlanNameInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetPlanByPlanNameInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetPlans.php b/generated/AwsMarketplace/Endpoint/GetPlans.php index 72d4af8..18d130f 100644 --- a/generated/AwsMarketplace/Endpoint/GetPlans.php +++ b/generated/AwsMarketplace/Endpoint/GetPlans.php @@ -5,21 +5,21 @@ class GetPlans extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/plans'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plans', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetPlansInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetPlansInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/GetSettings.php b/generated/AwsMarketplace/Endpoint/GetSettings.php index 8dc1775..9fe985a 100644 --- a/generated/AwsMarketplace/Endpoint/GetSettings.php +++ b/generated/AwsMarketplace/Endpoint/GetSettings.php @@ -5,21 +5,21 @@ class GetSettings extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/settings'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Settings', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\GetSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/ReturnInternalServerError.php b/generated/AwsMarketplace/Endpoint/ReturnInternalServerError.php index eb36845..3d301b8 100644 --- a/generated/AwsMarketplace/Endpoint/ReturnInternalServerError.php +++ b/generated/AwsMarketplace/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/SavePlan.php b/generated/AwsMarketplace/Endpoint/SavePlan.php index 0678332..9ee247e 100644 --- a/generated/AwsMarketplace/Endpoint/SavePlan.php +++ b/generated/AwsMarketplace/Endpoint/SavePlan.php @@ -5,36 +5,33 @@ class SavePlan extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { /** - * AWSMarketplaceに連携するプラン情報を登録します。 - - Save plan information to be linked to AWSMarketplace. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam $requestBody - */ + * Save plan information to be linked to AWSMarketplace. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/plans'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SavePlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SavePlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/SyncCustomer.php b/generated/AwsMarketplace/Endpoint/SyncCustomer.php index d10a1fb..d2b6c3b 100644 --- a/generated/AwsMarketplace/Endpoint/SyncCustomer.php +++ b/generated/AwsMarketplace/Endpoint/SyncCustomer.php @@ -6,33 +6,30 @@ class SyncCustomer extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Cli { protected $customer_identifier; /** - * AWS Marketplaceの顧客情報をSaaSusに同期します。 - - Sync AWS Marketplace customer information to SaaSus. - - * - * @param string $customerIdentifier 顧客ID - */ + * Sync AWS Marketplace customer information to SaaSus. + * + * @param string $customerIdentifier Customer ID + */ public function __construct(string $customerIdentifier) { $this->customer_identifier = $customerIdentifier; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{customer_identifier}'), array($this->customer_identifier), '/customers/{customer_identifier}/sync'); + return str_replace(['{customer_identifier}'], [$this->customer_identifier], '/customers/{customer_identifier}/sync'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,11 +46,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SyncCustomerInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\SyncCustomerInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/UpdateListingStatus.php b/generated/AwsMarketplace/Endpoint/UpdateListingStatus.php index 200cd5d..12d5927 100644 --- a/generated/AwsMarketplace/Endpoint/UpdateListingStatus.php +++ b/generated/AwsMarketplace/Endpoint/UpdateListingStatus.php @@ -5,36 +5,33 @@ class UpdateListingStatus extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { /** - * AWS Marketplaceの出品状況を更新します。 - - Update AWS Marketplace Listing Status. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam $requestBody - */ + * Update AWS Marketplace Listing Status. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/listing-status'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateListingStatusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateListingStatusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/UpdateSettings.php b/generated/AwsMarketplace/Endpoint/UpdateSettings.php index 40cd77c..38d6927 100644 --- a/generated/AwsMarketplace/Endpoint/UpdateSettings.php +++ b/generated/AwsMarketplace/Endpoint/UpdateSettings.php @@ -5,36 +5,33 @@ class UpdateSettings extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { /** - * AWS Marketplaceの設定を更新します。 - - Update AWS Marketplace Settings. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam $requestBody - */ + * Update AWS Marketplace Settings. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/settings'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\UpdateSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Endpoint/VerifyRegistrationToken.php b/generated/AwsMarketplace/Endpoint/VerifyRegistrationToken.php index b0dd2d8..cdfaea7 100644 --- a/generated/AwsMarketplace/Endpoint/VerifyRegistrationToken.php +++ b/generated/AwsMarketplace/Endpoint/VerifyRegistrationToken.php @@ -5,36 +5,33 @@ class VerifyRegistrationToken extends \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\Endpoint { /** - * Registration Tokenを検証します。 - - Verify Registration Token. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam $requestBody - */ + * Verify Registration Token. + * + * @param null|\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/registration-token/verify'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +49,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Exception\VerifyRegistrationTokenInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Exception/CreateCustomerInternalServerErrorException.php b/generated/AwsMarketplace/Exception/CreateCustomerInternalServerErrorException.php index 70596c6..0c03d11 100644 --- a/generated/AwsMarketplace/Exception/CreateCustomerInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/CreateCustomerInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetCatalogEntityVisibilityInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetCatalogEntityVisibilityInternalServerErrorException.php index e16a4ad..bcefb78 100644 --- a/generated/AwsMarketplace/Exception/GetCatalogEntityVisibilityInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetCatalogEntityVisibilityInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetCloudFormationLaunchStackLinkInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetCloudFormationLaunchStackLinkInternalServerErrorException.php index 2fb9e29..8155998 100644 --- a/generated/AwsMarketplace/Exception/GetCloudFormationLaunchStackLinkInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetCloudFormationLaunchStackLinkInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetCustomerInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetCustomerInternalServerErrorException.php index 38020ca..8e0f57c 100644 --- a/generated/AwsMarketplace/Exception/GetCustomerInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetCustomerInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetCustomersInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetCustomersInternalServerErrorException.php index 034fd73..b66ac46 100644 --- a/generated/AwsMarketplace/Exception/GetCustomersInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetCustomersInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetListingStatusInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetListingStatusInternalServerErrorException.php index 33fab01..04e3bfe 100644 --- a/generated/AwsMarketplace/Exception/GetListingStatusInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetListingStatusInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetPlanByPlanNameInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetPlanByPlanNameInternalServerErrorException.php index 2af9eab..298a180 100644 --- a/generated/AwsMarketplace/Exception/GetPlanByPlanNameInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetPlanByPlanNameInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetPlansInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetPlansInternalServerErrorException.php index 0ecde23..0796f5f 100644 --- a/generated/AwsMarketplace/Exception/GetPlansInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetPlansInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/GetSettingsInternalServerErrorException.php b/generated/AwsMarketplace/Exception/GetSettingsInternalServerErrorException.php index 6408328..5e343e0 100644 --- a/generated/AwsMarketplace/Exception/GetSettingsInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/GetSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/AwsMarketplace/Exception/ReturnInternalServerErrorInternalServerErrorException.php index deb19bd..11bbe41 100644 --- a/generated/AwsMarketplace/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/SavePlanInternalServerErrorException.php b/generated/AwsMarketplace/Exception/SavePlanInternalServerErrorException.php index 84ec59a..199d700 100644 --- a/generated/AwsMarketplace/Exception/SavePlanInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/SavePlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/SyncCustomerInternalServerErrorException.php b/generated/AwsMarketplace/Exception/SyncCustomerInternalServerErrorException.php index 15ca85f..a594e1a 100644 --- a/generated/AwsMarketplace/Exception/SyncCustomerInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/SyncCustomerInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/UpdateListingStatusInternalServerErrorException.php b/generated/AwsMarketplace/Exception/UpdateListingStatusInternalServerErrorException.php index 55e729b..d5d794b 100644 --- a/generated/AwsMarketplace/Exception/UpdateListingStatusInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/UpdateListingStatusInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/UpdateSettingsInternalServerErrorException.php b/generated/AwsMarketplace/Exception/UpdateSettingsInternalServerErrorException.php index d479aa1..e823f09 100644 --- a/generated/AwsMarketplace/Exception/UpdateSettingsInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/UpdateSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/VerifyRegistrationTokenBadRequestException.php b/generated/AwsMarketplace/Exception/VerifyRegistrationTokenBadRequestException.php index 17426a7..3e65cf4 100644 --- a/generated/AwsMarketplace/Exception/VerifyRegistrationTokenBadRequestException.php +++ b/generated/AwsMarketplace/Exception/VerifyRegistrationTokenBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Exception/VerifyRegistrationTokenInternalServerErrorException.php b/generated/AwsMarketplace/Exception/VerifyRegistrationTokenInternalServerErrorException.php index 5aa983f..768d581 100644 --- a/generated/AwsMarketplace/Exception/VerifyRegistrationTokenInternalServerErrorException.php +++ b/generated/AwsMarketplace/Exception/VerifyRegistrationTokenInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/AwsMarketplace/Model/CatalogEntityVisibility.php b/generated/AwsMarketplace/Model/CatalogEntityVisibility.php index d5b103f..df46369 100644 --- a/generated/AwsMarketplace/Model/CatalogEntityVisibility.php +++ b/generated/AwsMarketplace/Model/CatalogEntityVisibility.php @@ -7,8 +7,8 @@ class CatalogEntityVisibility extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getVisibility() : ?string + public function getVisibility(): ?string { return $this->visibility; } @@ -34,7 +34,7 @@ public function getVisibility() : ?string * * @return self */ - public function setVisibility(?string $visibility) : self + public function setVisibility(?string $visibility): self { $this->initialized['visibility'] = true; $this->visibility = $visibility; diff --git a/generated/AwsMarketplace/Model/CloudFormationLaunchStackLink.php b/generated/AwsMarketplace/Model/CloudFormationLaunchStackLink.php index 278cbbc..14804a8 100644 --- a/generated/AwsMarketplace/Model/CloudFormationLaunchStackLink.php +++ b/generated/AwsMarketplace/Model/CloudFormationLaunchStackLink.php @@ -7,8 +7,8 @@ class CloudFormationLaunchStackLink extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getLink() : ?string + public function getLink(): ?string { return $this->link; } @@ -34,7 +34,7 @@ public function getLink() : ?string * * @return self */ - public function setLink(?string $link) : self + public function setLink(?string $link): self { $this->initialized['link'] = true; $this->link = $link; diff --git a/generated/AwsMarketplace/Model/CreateCustomerParam.php b/generated/AwsMarketplace/Model/CreateCustomerParam.php index ff038b6..a8cbb59 100644 --- a/generated/AwsMarketplace/Model/CreateCustomerParam.php +++ b/generated/AwsMarketplace/Model/CreateCustomerParam.php @@ -7,8 +7,8 @@ class CreateCustomerParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getTenantId() : ?string + public function getTenantId(): ?string { return $this->tenantId; } @@ -40,7 +40,7 @@ public function getTenantId() : ?string * * @return self */ - public function setTenantId(?string $tenantId) : self + public function setTenantId(?string $tenantId): self { $this->initialized['tenantId'] = true; $this->tenantId = $tenantId; @@ -51,7 +51,7 @@ public function setTenantId(?string $tenantId) : self * * @return string|null */ - public function getRegistrationToken() : ?string + public function getRegistrationToken(): ?string { return $this->registrationToken; } @@ -62,7 +62,7 @@ public function getRegistrationToken() : ?string * * @return self */ - public function setRegistrationToken(?string $registrationToken) : self + public function setRegistrationToken(?string $registrationToken): self { $this->initialized['registrationToken'] = true; $this->registrationToken = $registrationToken; diff --git a/generated/AwsMarketplace/Model/Customer.php b/generated/AwsMarketplace/Model/Customer.php index 7e1feb8..6ca949d 100644 --- a/generated/AwsMarketplace/Model/Customer.php +++ b/generated/AwsMarketplace/Model/Customer.php @@ -7,8 +7,8 @@ class Customer extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getCustomerIdentifier() : ?string + public function getCustomerIdentifier(): ?string { return $this->customerIdentifier; } @@ -46,7 +46,7 @@ public function getCustomerIdentifier() : ?string * * @return self */ - public function setCustomerIdentifier(?string $customerIdentifier) : self + public function setCustomerIdentifier(?string $customerIdentifier): self { $this->initialized['customerIdentifier'] = true; $this->customerIdentifier = $customerIdentifier; @@ -57,7 +57,7 @@ public function setCustomerIdentifier(?string $customerIdentifier) : self * * @return string|null */ - public function getCustomerAwsAccountId() : ?string + public function getCustomerAwsAccountId(): ?string { return $this->customerAwsAccountId; } @@ -68,7 +68,7 @@ public function getCustomerAwsAccountId() : ?string * * @return self */ - public function setCustomerAwsAccountId(?string $customerAwsAccountId) : self + public function setCustomerAwsAccountId(?string $customerAwsAccountId): self { $this->initialized['customerAwsAccountId'] = true; $this->customerAwsAccountId = $customerAwsAccountId; @@ -79,7 +79,7 @@ public function setCustomerAwsAccountId(?string $customerAwsAccountId) : self * * @return string|null */ - public function getTenantId() : ?string + public function getTenantId(): ?string { return $this->tenantId; } @@ -90,7 +90,7 @@ public function getTenantId() : ?string * * @return self */ - public function setTenantId(?string $tenantId) : self + public function setTenantId(?string $tenantId): self { $this->initialized['tenantId'] = true; $this->tenantId = $tenantId; diff --git a/generated/AwsMarketplace/Model/Customers.php b/generated/AwsMarketplace/Model/Customers.php index 0805fff..519c740 100644 --- a/generated/AwsMarketplace/Model/Customers.php +++ b/generated/AwsMarketplace/Model/Customers.php @@ -7,34 +7,34 @@ class Customers extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var Customer[]|null + * @var list|null */ protected $customers; /** * * - * @return Customer[]|null + * @return list|null */ - public function getCustomers() : ?array + public function getCustomers(): ?array { return $this->customers; } /** * * - * @param Customer[]|null $customers + * @param list|null $customers * * @return self */ - public function setCustomers(?array $customers) : self + public function setCustomers(?array $customers): self { $this->initialized['customers'] = true; $this->customers = $customers; diff --git a/generated/AwsMarketplace/Model/Error.php b/generated/AwsMarketplace/Model/Error.php index d97139a..08084b1 100644 --- a/generated/AwsMarketplace/Model/Error.php +++ b/generated/AwsMarketplace/Model/Error.php @@ -7,8 +7,8 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } @@ -40,7 +40,7 @@ public function getType() : ?string * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -51,7 +51,7 @@ public function setType(?string $type) : self * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } @@ -62,7 +62,7 @@ public function getMessage() : ?string * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/AwsMarketplace/Model/GetListingStatusResult.php b/generated/AwsMarketplace/Model/GetListingStatusResult.php index 06d683d..0582107 100644 --- a/generated/AwsMarketplace/Model/GetListingStatusResult.php +++ b/generated/AwsMarketplace/Model/GetListingStatusResult.php @@ -7,8 +7,8 @@ class GetListingStatusResult extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getListingStatus() : ?string + public function getListingStatus(): ?string { return $this->listingStatus; } @@ -34,7 +34,7 @@ public function getListingStatus() : ?string * * @return self */ - public function setListingStatus(?string $listingStatus) : self + public function setListingStatus(?string $listingStatus): self { $this->initialized['listingStatus'] = true; $this->listingStatus = $listingStatus; diff --git a/generated/AwsMarketplace/Model/Plan.php b/generated/AwsMarketplace/Model/Plan.php index 7fedcaa..fa1b26c 100644 --- a/generated/AwsMarketplace/Model/Plan.php +++ b/generated/AwsMarketplace/Model/Plan.php @@ -7,8 +7,8 @@ class Plan extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getPlanId() : ?string + public function getPlanId(): ?string { return $this->planId; } @@ -40,7 +40,7 @@ public function getPlanId() : ?string * * @return self */ - public function setPlanId(?string $planId) : self + public function setPlanId(?string $planId): self { $this->initialized['planId'] = true; $this->planId = $planId; @@ -51,7 +51,7 @@ public function setPlanId(?string $planId) : self * * @return string|null */ - public function getPlanName() : ?string + public function getPlanName(): ?string { return $this->planName; } @@ -62,7 +62,7 @@ public function getPlanName() : ?string * * @return self */ - public function setPlanName(?string $planName) : self + public function setPlanName(?string $planName): self { $this->initialized['planName'] = true; $this->planName = $planName; diff --git a/generated/AwsMarketplace/Model/Plans.php b/generated/AwsMarketplace/Model/Plans.php index 1373f66..c3022dc 100644 --- a/generated/AwsMarketplace/Model/Plans.php +++ b/generated/AwsMarketplace/Model/Plans.php @@ -7,34 +7,34 @@ class Plans extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var Plan[]|null + * @var list|null */ protected $plans; /** * * - * @return Plan[]|null + * @return list|null */ - public function getPlans() : ?array + public function getPlans(): ?array { return $this->plans; } /** * * - * @param Plan[]|null $plans + * @param list|null $plans * * @return self */ - public function setPlans(?array $plans) : self + public function setPlans(?array $plans): self { $this->initialized['plans'] = true; $this->plans = $plans; diff --git a/generated/AwsMarketplace/Model/SavePlanParam.php b/generated/AwsMarketplace/Model/SavePlanParam.php index 3e2ba98..80bb3cb 100644 --- a/generated/AwsMarketplace/Model/SavePlanParam.php +++ b/generated/AwsMarketplace/Model/SavePlanParam.php @@ -7,8 +7,8 @@ class SavePlanParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getPlanId() : ?string + public function getPlanId(): ?string { return $this->planId; } @@ -40,7 +40,7 @@ public function getPlanId() : ?string * * @return self */ - public function setPlanId(?string $planId) : self + public function setPlanId(?string $planId): self { $this->initialized['planId'] = true; $this->planId = $planId; @@ -51,7 +51,7 @@ public function setPlanId(?string $planId) : self * * @return string|null */ - public function getPlanName() : ?string + public function getPlanName(): ?string { return $this->planName; } @@ -62,7 +62,7 @@ public function getPlanName() : ?string * * @return self */ - public function setPlanName(?string $planName) : self + public function setPlanName(?string $planName): self { $this->initialized['planName'] = true; $this->planName = $planName; diff --git a/generated/AwsMarketplace/Model/Settings.php b/generated/AwsMarketplace/Model/Settings.php index a9f3bc6..b4b0a15 100644 --- a/generated/AwsMarketplace/Model/Settings.php +++ b/generated/AwsMarketplace/Model/Settings.php @@ -7,8 +7,8 @@ class Settings extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -71,7 +71,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getProductCode() : ?string + public function getProductCode(): ?string { return $this->productCode; } @@ -82,7 +82,7 @@ public function getProductCode() : ?string * * @return self */ - public function setProductCode(?string $productCode) : self + public function setProductCode(?string $productCode): self { $this->initialized['productCode'] = true; $this->productCode = $productCode; @@ -93,7 +93,7 @@ public function setProductCode(?string $productCode) : self * * @return string|null */ - public function getRoleArn() : ?string + public function getRoleArn(): ?string { return $this->roleArn; } @@ -104,7 +104,7 @@ public function getRoleArn() : ?string * * @return self */ - public function setRoleArn(?string $roleArn) : self + public function setRoleArn(?string $roleArn): self { $this->initialized['roleArn'] = true; $this->roleArn = $roleArn; @@ -115,7 +115,7 @@ public function setRoleArn(?string $roleArn) : self * * @return string|null */ - public function getRoleExternalId() : ?string + public function getRoleExternalId(): ?string { return $this->roleExternalId; } @@ -126,7 +126,7 @@ public function getRoleExternalId() : ?string * * @return self */ - public function setRoleExternalId(?string $roleExternalId) : self + public function setRoleExternalId(?string $roleExternalId): self { $this->initialized['roleExternalId'] = true; $this->roleExternalId = $roleExternalId; @@ -137,7 +137,7 @@ public function setRoleExternalId(?string $roleExternalId) : self * * @return string|null */ - public function getSnsTopicArn() : ?string + public function getSnsTopicArn(): ?string { return $this->snsTopicArn; } @@ -148,7 +148,7 @@ public function getSnsTopicArn() : ?string * * @return self */ - public function setSnsTopicArn(?string $snsTopicArn) : self + public function setSnsTopicArn(?string $snsTopicArn): self { $this->initialized['snsTopicArn'] = true; $this->snsTopicArn = $snsTopicArn; @@ -159,7 +159,7 @@ public function setSnsTopicArn(?string $snsTopicArn) : self * * @return string|null */ - public function getCasBucketName() : ?string + public function getCasBucketName(): ?string { return $this->casBucketName; } @@ -170,7 +170,7 @@ public function getCasBucketName() : ?string * * @return self */ - public function setCasBucketName(?string $casBucketName) : self + public function setCasBucketName(?string $casBucketName): self { $this->initialized['casBucketName'] = true; $this->casBucketName = $casBucketName; @@ -181,7 +181,7 @@ public function setCasBucketName(?string $casBucketName) : self * * @return string|null */ - public function getCasSnsTopicArn() : ?string + public function getCasSnsTopicArn(): ?string { return $this->casSnsTopicArn; } @@ -192,7 +192,7 @@ public function getCasSnsTopicArn() : ?string * * @return self */ - public function setCasSnsTopicArn(?string $casSnsTopicArn) : self + public function setCasSnsTopicArn(?string $casSnsTopicArn): self { $this->initialized['casSnsTopicArn'] = true; $this->casSnsTopicArn = $casSnsTopicArn; @@ -203,7 +203,7 @@ public function setCasSnsTopicArn(?string $casSnsTopicArn) : self * * @return string|null */ - public function getSellerSnsTopicArn() : ?string + public function getSellerSnsTopicArn(): ?string { return $this->sellerSnsTopicArn; } @@ -214,7 +214,7 @@ public function getSellerSnsTopicArn() : ?string * * @return self */ - public function setSellerSnsTopicArn(?string $sellerSnsTopicArn) : self + public function setSellerSnsTopicArn(?string $sellerSnsTopicArn): self { $this->initialized['sellerSnsTopicArn'] = true; $this->sellerSnsTopicArn = $sellerSnsTopicArn; @@ -225,7 +225,7 @@ public function setSellerSnsTopicArn(?string $sellerSnsTopicArn) : self * * @return string|null */ - public function getRedirectSignUpPageFunctionUrl() : ?string + public function getRedirectSignUpPageFunctionUrl(): ?string { return $this->redirectSignUpPageFunctionUrl; } @@ -236,7 +236,7 @@ public function getRedirectSignUpPageFunctionUrl() : ?string * * @return self */ - public function setRedirectSignUpPageFunctionUrl(?string $redirectSignUpPageFunctionUrl) : self + public function setRedirectSignUpPageFunctionUrl(?string $redirectSignUpPageFunctionUrl): self { $this->initialized['redirectSignUpPageFunctionUrl'] = true; $this->redirectSignUpPageFunctionUrl = $redirectSignUpPageFunctionUrl; @@ -247,7 +247,7 @@ public function setRedirectSignUpPageFunctionUrl(?string $redirectSignUpPageFunc * * @return string|null */ - public function getSqsArn() : ?string + public function getSqsArn(): ?string { return $this->sqsArn; } @@ -258,7 +258,7 @@ public function getSqsArn() : ?string * * @return self */ - public function setSqsArn(?string $sqsArn) : self + public function setSqsArn(?string $sqsArn): self { $this->initialized['sqsArn'] = true; $this->sqsArn = $sqsArn; diff --git a/generated/AwsMarketplace/Model/UpdateListingStatusParam.php b/generated/AwsMarketplace/Model/UpdateListingStatusParam.php index 92f27a6..68618ba 100644 --- a/generated/AwsMarketplace/Model/UpdateListingStatusParam.php +++ b/generated/AwsMarketplace/Model/UpdateListingStatusParam.php @@ -7,8 +7,8 @@ class UpdateListingStatusParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getListingStatus() : ?string + public function getListingStatus(): ?string { return $this->listingStatus; } @@ -34,7 +34,7 @@ public function getListingStatus() : ?string * * @return self */ - public function setListingStatus(?string $listingStatus) : self + public function setListingStatus(?string $listingStatus): self { $this->initialized['listingStatus'] = true; $this->listingStatus = $listingStatus; diff --git a/generated/AwsMarketplace/Model/UpdateSettingsParam.php b/generated/AwsMarketplace/Model/UpdateSettingsParam.php index 90f44e2..c8969ce 100644 --- a/generated/AwsMarketplace/Model/UpdateSettingsParam.php +++ b/generated/AwsMarketplace/Model/UpdateSettingsParam.php @@ -7,8 +7,8 @@ class UpdateSettingsParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -65,7 +65,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getProductCode() : ?string + public function getProductCode(): ?string { return $this->productCode; } @@ -76,7 +76,7 @@ public function getProductCode() : ?string * * @return self */ - public function setProductCode(?string $productCode) : self + public function setProductCode(?string $productCode): self { $this->initialized['productCode'] = true; $this->productCode = $productCode; @@ -87,7 +87,7 @@ public function setProductCode(?string $productCode) : self * * @return string|null */ - public function getRoleArn() : ?string + public function getRoleArn(): ?string { return $this->roleArn; } @@ -98,7 +98,7 @@ public function getRoleArn() : ?string * * @return self */ - public function setRoleArn(?string $roleArn) : self + public function setRoleArn(?string $roleArn): self { $this->initialized['roleArn'] = true; $this->roleArn = $roleArn; @@ -109,7 +109,7 @@ public function setRoleArn(?string $roleArn) : self * * @return string|null */ - public function getRoleExternalId() : ?string + public function getRoleExternalId(): ?string { return $this->roleExternalId; } @@ -120,7 +120,7 @@ public function getRoleExternalId() : ?string * * @return self */ - public function setRoleExternalId(?string $roleExternalId) : self + public function setRoleExternalId(?string $roleExternalId): self { $this->initialized['roleExternalId'] = true; $this->roleExternalId = $roleExternalId; @@ -131,7 +131,7 @@ public function setRoleExternalId(?string $roleExternalId) : self * * @return string|null */ - public function getSnsTopicArn() : ?string + public function getSnsTopicArn(): ?string { return $this->snsTopicArn; } @@ -142,7 +142,7 @@ public function getSnsTopicArn() : ?string * * @return self */ - public function setSnsTopicArn(?string $snsTopicArn) : self + public function setSnsTopicArn(?string $snsTopicArn): self { $this->initialized['snsTopicArn'] = true; $this->snsTopicArn = $snsTopicArn; @@ -153,7 +153,7 @@ public function setSnsTopicArn(?string $snsTopicArn) : self * * @return string|null */ - public function getCasBucketName() : ?string + public function getCasBucketName(): ?string { return $this->casBucketName; } @@ -164,7 +164,7 @@ public function getCasBucketName() : ?string * * @return self */ - public function setCasBucketName(?string $casBucketName) : self + public function setCasBucketName(?string $casBucketName): self { $this->initialized['casBucketName'] = true; $this->casBucketName = $casBucketName; @@ -175,7 +175,7 @@ public function setCasBucketName(?string $casBucketName) : self * * @return string|null */ - public function getCasSnsTopicArn() : ?string + public function getCasSnsTopicArn(): ?string { return $this->casSnsTopicArn; } @@ -186,7 +186,7 @@ public function getCasSnsTopicArn() : ?string * * @return self */ - public function setCasSnsTopicArn(?string $casSnsTopicArn) : self + public function setCasSnsTopicArn(?string $casSnsTopicArn): self { $this->initialized['casSnsTopicArn'] = true; $this->casSnsTopicArn = $casSnsTopicArn; @@ -197,7 +197,7 @@ public function setCasSnsTopicArn(?string $casSnsTopicArn) : self * * @return string|null */ - public function getSellerSnsTopicArn() : ?string + public function getSellerSnsTopicArn(): ?string { return $this->sellerSnsTopicArn; } @@ -208,7 +208,7 @@ public function getSellerSnsTopicArn() : ?string * * @return self */ - public function setSellerSnsTopicArn(?string $sellerSnsTopicArn) : self + public function setSellerSnsTopicArn(?string $sellerSnsTopicArn): self { $this->initialized['sellerSnsTopicArn'] = true; $this->sellerSnsTopicArn = $sellerSnsTopicArn; @@ -219,7 +219,7 @@ public function setSellerSnsTopicArn(?string $sellerSnsTopicArn) : self * * @return string|null */ - public function getSqsArn() : ?string + public function getSqsArn(): ?string { return $this->sqsArn; } @@ -230,7 +230,7 @@ public function getSqsArn() : ?string * * @return self */ - public function setSqsArn(?string $sqsArn) : self + public function setSqsArn(?string $sqsArn): self { $this->initialized['sqsArn'] = true; $this->sqsArn = $sqsArn; diff --git a/generated/AwsMarketplace/Model/VerifyRegistrationTokenParam.php b/generated/AwsMarketplace/Model/VerifyRegistrationTokenParam.php index 2d58ff4..73d2506 100644 --- a/generated/AwsMarketplace/Model/VerifyRegistrationTokenParam.php +++ b/generated/AwsMarketplace/Model/VerifyRegistrationTokenParam.php @@ -7,8 +7,8 @@ class VerifyRegistrationTokenParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getRegistrationToken() : ?string + public function getRegistrationToken(): ?string { return $this->registrationToken; } @@ -34,7 +34,7 @@ public function getRegistrationToken() : ?string * * @return self */ - public function setRegistrationToken(?string $registrationToken) : self + public function setRegistrationToken(?string $registrationToken): self { $this->initialized['registrationToken'] = true; $this->registrationToken = $registrationToken; diff --git a/generated/AwsMarketplace/Normalizer/CatalogEntityVisibilityNormalizer.php b/generated/AwsMarketplace/Normalizer/CatalogEntityVisibilityNormalizer.php index 7f4353f..ea8531d 100644 --- a/generated/AwsMarketplace/Normalizer/CatalogEntityVisibilityNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/CatalogEntityVisibilityNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CatalogEntityVisibilityNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CatalogEntityVisibilityNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CatalogEntityVisibility'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CatalogEntityVisibility'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('visibility', $data) && $data['visibility'] !== null) { + $object->setVisibility($data['visibility']); + unset($data['visibility']); + } + elseif (\array_key_exists('visibility', $data) && $data['visibility'] === null) { + $object->setVisibility(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('visibility', $data) && $data['visibility'] !== null) { - $object->setVisibility($data['visibility']); - unset($data['visibility']); - } - elseif (\array_key_exists('visibility', $data) && $data['visibility'] === null) { - $object->setVisibility(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['visibility'] = $object->getVisibility(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CatalogEntityVisibilityNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['visibility'] = $object->getVisibility(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('visibility', $data) && $data['visibility'] !== null) { + $object->setVisibility($data['visibility']); + unset($data['visibility']); + } + elseif (\array_key_exists('visibility', $data) && $data['visibility'] === null) { + $object->setVisibility(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['visibility'] = $object->getVisibility(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CatalogEntityVisibility' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/CloudFormationLaunchStackLinkNormalizer.php b/generated/AwsMarketplace/Normalizer/CloudFormationLaunchStackLinkNormalizer.php index 4d2014f..6997941 100644 --- a/generated/AwsMarketplace/Normalizer/CloudFormationLaunchStackLinkNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/CloudFormationLaunchStackLinkNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CloudFormationLaunchStackLinkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CloudFormationLaunchStackLinkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CloudFormationLaunchStackLink'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CloudFormationLaunchStackLink'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('link', $data) && $data['link'] !== null) { + $object->setLink($data['link']); + unset($data['link']); + } + elseif (\array_key_exists('link', $data) && $data['link'] === null) { + $object->setLink(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('link', $data) && $data['link'] !== null) { - $object->setLink($data['link']); - unset($data['link']); - } - elseif (\array_key_exists('link', $data) && $data['link'] === null) { - $object->setLink(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['link'] = $object->getLink(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CloudFormationLaunchStackLinkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['link'] = $object->getLink(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('link', $data) && $data['link'] !== null) { + $object->setLink($data['link']); + unset($data['link']); + } + elseif (\array_key_exists('link', $data) && $data['link'] === null) { + $object->setLink(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['link'] = $object->getLink(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CloudFormationLaunchStackLink' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/CreateCustomerParamNormalizer.php b/generated/AwsMarketplace/Normalizer/CreateCustomerParamNormalizer.php index 48ffd41..c44df87 100644 --- a/generated/AwsMarketplace/Normalizer/CreateCustomerParamNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/CreateCustomerParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateCustomerParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateCustomerParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CreateCustomerParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CreateCustomerParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { - $object->setTenantId($data['tenant_id']); - unset($data['tenant_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['tenant_id'] = $object->getTenantId(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { - $object->setTenantId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class => false]; } - if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { - $object->setRegistrationToken($data['registration_token']); - unset($data['registration_token']); + } +} else { + class CreateCustomerParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class; } - elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { - $object->setRegistrationToken(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['tenant_id'] = $object->getTenantId(); - $data['registration_token'] = $object->getRegistrationToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['tenant_id'] = $object->getTenantId(); + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CreateCustomerParam' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/CustomerNormalizer.php b/generated/AwsMarketplace/Normalizer/CustomerNormalizer.php index 3d87829..45ebe0d 100644 --- a/generated/AwsMarketplace/Normalizer/CustomerNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/CustomerNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CustomerNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CustomerNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('customer_identifier', $data) && $data['customer_identifier'] !== null) { + $object->setCustomerIdentifier($data['customer_identifier']); + unset($data['customer_identifier']); + } + elseif (\array_key_exists('customer_identifier', $data) && $data['customer_identifier'] === null) { + $object->setCustomerIdentifier(null); + } + if (\array_key_exists('customer_aws_account_id', $data) && $data['customer_aws_account_id'] !== null) { + $object->setCustomerAwsAccountId($data['customer_aws_account_id']); + unset($data['customer_aws_account_id']); + } + elseif (\array_key_exists('customer_aws_account_id', $data) && $data['customer_aws_account_id'] === null) { + $object->setCustomerAwsAccountId(null); + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); + } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('customer_identifier', $data) && $data['customer_identifier'] !== null) { - $object->setCustomerIdentifier($data['customer_identifier']); - unset($data['customer_identifier']); - } - elseif (\array_key_exists('customer_identifier', $data) && $data['customer_identifier'] === null) { - $object->setCustomerIdentifier(null); - } - if (\array_key_exists('customer_aws_account_id', $data) && $data['customer_aws_account_id'] !== null) { - $object->setCustomerAwsAccountId($data['customer_aws_account_id']); - unset($data['customer_aws_account_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['customer_identifier'] = $object->getCustomerIdentifier(); + $data['customer_aws_account_id'] = $object->getCustomerAwsAccountId(); + $data['tenant_id'] = $object->getTenantId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('customer_aws_account_id', $data) && $data['customer_aws_account_id'] === null) { - $object->setCustomerAwsAccountId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class => false]; } - if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { - $object->setTenantId($data['tenant_id']); - unset($data['tenant_id']); + } +} else { + class CustomerNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class; } - elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { - $object->setTenantId(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('customer_identifier', $data) && $data['customer_identifier'] !== null) { + $object->setCustomerIdentifier($data['customer_identifier']); + unset($data['customer_identifier']); + } + elseif (\array_key_exists('customer_identifier', $data) && $data['customer_identifier'] === null) { + $object->setCustomerIdentifier(null); + } + if (\array_key_exists('customer_aws_account_id', $data) && $data['customer_aws_account_id'] !== null) { + $object->setCustomerAwsAccountId($data['customer_aws_account_id']); + unset($data['customer_aws_account_id']); + } + elseif (\array_key_exists('customer_aws_account_id', $data) && $data['customer_aws_account_id'] === null) { + $object->setCustomerAwsAccountId(null); + } + if (\array_key_exists('tenant_id', $data) && $data['tenant_id'] !== null) { + $object->setTenantId($data['tenant_id']); + unset($data['tenant_id']); } + elseif (\array_key_exists('tenant_id', $data) && $data['tenant_id'] === null) { + $object->setTenantId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['customer_identifier'] = $object->getCustomerIdentifier(); - $data['customer_aws_account_id'] = $object->getCustomerAwsAccountId(); - $data['tenant_id'] = $object->getTenantId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['customer_identifier'] = $object->getCustomerIdentifier(); + $data['customer_aws_account_id'] = $object->getCustomerAwsAccountId(); + $data['tenant_id'] = $object->getTenantId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/CustomersNormalizer.php b/generated/AwsMarketplace/Normalizer/CustomersNormalizer.php index 29fd36f..d18e2b6 100644 --- a/generated/AwsMarketplace/Normalizer/CustomersNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/CustomersNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CustomersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CustomersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customers'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customers'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('customers', $data) && $data['customers'] !== null) { + $values = []; + foreach ($data['customers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class, 'json', $context); + } + $object->setCustomers($values); + unset($data['customers']); + } + elseif (\array_key_exists('customers', $data) && $data['customers'] === null) { + $object->setCustomers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('customers', $data) && $data['customers'] !== null) { - $values = array(); - foreach ($data['customers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getCustomers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setCustomers($values); - unset($data['customers']); - } - elseif (\array_key_exists('customers', $data) && $data['customers'] === null) { - $object->setCustomers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['customers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CustomersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getCustomers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class; } - $data['customers'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('customers', $data) && $data['customers'] !== null) { + $values = []; + foreach ($data['customers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class, 'json', $context); + } + $object->setCustomers($values); + unset($data['customers']); } + elseif (\array_key_exists('customers', $data) && $data['customers'] === null) { + $object->setCustomers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getCustomers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['customers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customers' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/ErrorNormalizer.php b/generated/AwsMarketplace/Normalizer/ErrorNormalizer.php index 6bcf937..6dc1aca 100644 --- a/generated/AwsMarketplace/Normalizer/ErrorNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/ErrorNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/GetListingStatusResultNormalizer.php b/generated/AwsMarketplace/Normalizer/GetListingStatusResultNormalizer.php index 3bfdad6..4898965 100644 --- a/generated/AwsMarketplace/Normalizer/GetListingStatusResultNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/GetListingStatusResultNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class GetListingStatusResultNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetListingStatusResultNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\GetListingStatusResult'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\GetListingStatusResult'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('listing_status', $data) && $data['listing_status'] !== null) { + $object->setListingStatus($data['listing_status']); + unset($data['listing_status']); + } + elseif (\array_key_exists('listing_status', $data) && $data['listing_status'] === null) { + $object->setListingStatus(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('listing_status', $data) && $data['listing_status'] !== null) { - $object->setListingStatus($data['listing_status']); - unset($data['listing_status']); - } - elseif (\array_key_exists('listing_status', $data) && $data['listing_status'] === null) { - $object->setListingStatus(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['listing_status'] = $object->getListingStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class GetListingStatusResultNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['listing_status'] = $object->getListingStatus(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('listing_status', $data) && $data['listing_status'] !== null) { + $object->setListingStatus($data['listing_status']); + unset($data['listing_status']); + } + elseif (\array_key_exists('listing_status', $data) && $data['listing_status'] === null) { + $object->setListingStatus(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['listing_status'] = $object->getListingStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\GetListingStatusResult' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/JaneObjectNormalizer.php b/generated/AwsMarketplace/Normalizer/JaneObjectNormalizer.php index f0fa07e..ab60be8 100644 --- a/generated/AwsMarketplace/Normalizer/JaneObjectNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,163 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Settings' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\SettingsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateSettingsParam' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\UpdateSettingsParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plans' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\PlansNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\PlanNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\SavePlanParam' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\SavePlanParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\CustomerNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customers' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\CustomersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CreateCustomerParam' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\CreateCustomerParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\GetListingStatusResult' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\GetListingStatusResultNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateListingStatusParam' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\UpdateListingStatusParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CloudFormationLaunchStackLink' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\CloudFormationLaunchStackLinkNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\VerifyRegistrationTokenParam' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\VerifyRegistrationTokenParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CatalogEntityVisibility' => 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Normalizer\\CatalogEntityVisibilityNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\SettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\UpdateSettingsParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\PlansNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\PlanNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\SavePlanParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CustomerNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CustomersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CreateCustomerParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\GetListingStatusResultNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\UpdateListingStatusParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CloudFormationLaunchStackLinkNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\VerifyRegistrationTokenParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CatalogEntityVisibilityNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Settings' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateSettingsParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plans' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\SavePlanParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customer' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Customers' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CreateCustomerParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\GetListingStatusResult' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateListingStatusParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CloudFormationLaunchStackLink' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\VerifyRegistrationTokenParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\CatalogEntityVisibility' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\SettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\UpdateSettingsParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\PlansNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\PlanNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\SavePlanParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CustomerNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CustomersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CreateCustomerParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\GetListingStatusResultNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\UpdateListingStatusParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CloudFormationLaunchStackLinkNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\VerifyRegistrationTokenParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Normalizer\CatalogEntityVisibilityNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customer::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Customers::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CreateCustomerParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\GetListingStatusResult::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CloudFormationLaunchStackLink::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class => false, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\CatalogEntityVisibility::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/PlanNormalizer.php b/generated/AwsMarketplace/Normalizer/PlanNormalizer.php index c6e8741..9b83eb7 100644 --- a/generated/AwsMarketplace/Normalizer/PlanNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/PlanNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PlanNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PlanNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('plan_name', $data) && $data['plan_name'] !== null) { + $object->setPlanName($data['plan_name']); + unset($data['plan_name']); + } + elseif (\array_key_exists('plan_name', $data) && $data['plan_name'] === null) { + $object->setPlanName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { - $object->setPlanId($data['plan_id']); - unset($data['plan_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['plan_id'] = $object->getPlanId(); + $data['plan_name'] = $object->getPlanName(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { - $object->setPlanId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class => false]; } - if (\array_key_exists('plan_name', $data) && $data['plan_name'] !== null) { - $object->setPlanName($data['plan_name']); - unset($data['plan_name']); + } +} else { + class PlanNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class; } - elseif (\array_key_exists('plan_name', $data) && $data['plan_name'] === null) { - $object->setPlanName(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('plan_name', $data) && $data['plan_name'] !== null) { + $object->setPlanName($data['plan_name']); + unset($data['plan_name']); + } + elseif (\array_key_exists('plan_name', $data) && $data['plan_name'] === null) { + $object->setPlanName(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['plan_id'] = $object->getPlanId(); - $data['plan_name'] = $object->getPlanName(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['plan_id'] = $object->getPlanId(); + $data['plan_name'] = $object->getPlanName(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/PlansNormalizer.php b/generated/AwsMarketplace/Normalizer/PlansNormalizer.php index a0b81a1..545b77d 100644 --- a/generated/AwsMarketplace/Normalizer/PlansNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/PlansNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PlansNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PlansNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plans'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plans'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plans', $data) && $data['plans'] !== null) { + $values = []; + foreach ($data['plans'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class, 'json', $context); + } + $object->setPlans($values); + unset($data['plans']); + } + elseif (\array_key_exists('plans', $data) && $data['plans'] === null) { + $object->setPlans(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('plans', $data) && $data['plans'] !== null) { - $values = array(); - foreach ($data['plans'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plan', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getPlans() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setPlans($values); - unset($data['plans']); - } - elseif (\array_key_exists('plans', $data) && $data['plans'] === null) { - $object->setPlans(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['plans'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PlansNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getPlans() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class; } - $data['plans'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plans', $data) && $data['plans'] !== null) { + $values = []; + foreach ($data['plans'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plan::class, 'json', $context); + } + $object->setPlans($values); + unset($data['plans']); } + elseif (\array_key_exists('plans', $data) && $data['plans'] === null) { + $object->setPlans(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getPlans() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['plans'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Plans::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Plans' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/SavePlanParamNormalizer.php b/generated/AwsMarketplace/Normalizer/SavePlanParamNormalizer.php index 361e89f..cb07862 100644 --- a/generated/AwsMarketplace/Normalizer/SavePlanParamNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/SavePlanParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SavePlanParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SavePlanParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\SavePlanParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\SavePlanParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('plan_name', $data) && $data['plan_name'] !== null) { + $object->setPlanName($data['plan_name']); + unset($data['plan_name']); + } + elseif (\array_key_exists('plan_name', $data) && $data['plan_name'] === null) { + $object->setPlanName(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { - $object->setPlanId($data['plan_id']); - unset($data['plan_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['plan_id'] = $object->getPlanId(); + $data['plan_name'] = $object->getPlanName(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { - $object->setPlanId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class => false]; } - if (\array_key_exists('plan_name', $data) && $data['plan_name'] !== null) { - $object->setPlanName($data['plan_name']); - unset($data['plan_name']); + } +} else { + class SavePlanParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class; } - elseif (\array_key_exists('plan_name', $data) && $data['plan_name'] === null) { - $object->setPlanName(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_id', $data) && $data['plan_id'] !== null) { + $object->setPlanId($data['plan_id']); + unset($data['plan_id']); + } + elseif (\array_key_exists('plan_id', $data) && $data['plan_id'] === null) { + $object->setPlanId(null); + } + if (\array_key_exists('plan_name', $data) && $data['plan_name'] !== null) { + $object->setPlanName($data['plan_name']); + unset($data['plan_name']); + } + elseif (\array_key_exists('plan_name', $data) && $data['plan_name'] === null) { + $object->setPlanName(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['plan_id'] = $object->getPlanId(); - $data['plan_name'] = $object->getPlanName(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['plan_id'] = $object->getPlanId(); + $data['plan_name'] = $object->getPlanName(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\SavePlanParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\SavePlanParam' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/SettingsNormalizer.php b/generated/AwsMarketplace/Normalizer/SettingsNormalizer.php index 9fb54cd..983a320 100644 --- a/generated/AwsMarketplace/Normalizer/SettingsNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/SettingsNormalizer.php @@ -12,129 +12,253 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Settings'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Settings'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('product_code', $data) && $data['product_code'] !== null) { + $object->setProductCode($data['product_code']); + unset($data['product_code']); + } + elseif (\array_key_exists('product_code', $data) && $data['product_code'] === null) { + $object->setProductCode(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + if (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] !== null) { + $object->setSnsTopicArn($data['sns_topic_arn']); + unset($data['sns_topic_arn']); + } + elseif (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] === null) { + $object->setSnsTopicArn(null); + } + if (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] !== null) { + $object->setCasBucketName($data['cas_bucket_name']); + unset($data['cas_bucket_name']); + } + elseif (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] === null) { + $object->setCasBucketName(null); + } + if (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] !== null) { + $object->setCasSnsTopicArn($data['cas_sns_topic_arn']); + unset($data['cas_sns_topic_arn']); + } + elseif (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] === null) { + $object->setCasSnsTopicArn(null); + } + if (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] !== null) { + $object->setSellerSnsTopicArn($data['seller_sns_topic_arn']); + unset($data['seller_sns_topic_arn']); + } + elseif (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] === null) { + $object->setSellerSnsTopicArn(null); + } + if (\array_key_exists('redirect_sign_up_page_function_url', $data) && $data['redirect_sign_up_page_function_url'] !== null) { + $object->setRedirectSignUpPageFunctionUrl($data['redirect_sign_up_page_function_url']); + unset($data['redirect_sign_up_page_function_url']); + } + elseif (\array_key_exists('redirect_sign_up_page_function_url', $data) && $data['redirect_sign_up_page_function_url'] === null) { + $object->setRedirectSignUpPageFunctionUrl(null); + } + if (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] !== null) { + $object->setSqsArn($data['sqs_arn']); + unset($data['sqs_arn']); + } + elseif (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] === null) { + $object->setSqsArn(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('product_code', $data) && $data['product_code'] !== null) { - $object->setProductCode($data['product_code']); - unset($data['product_code']); - } - elseif (\array_key_exists('product_code', $data) && $data['product_code'] === null) { - $object->setProductCode(null); - } - if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { - $object->setRoleArn($data['role_arn']); - unset($data['role_arn']); - } - elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { - $object->setRoleArn(null); - } - if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { - $object->setRoleExternalId($data['role_external_id']); - unset($data['role_external_id']); - } - elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { - $object->setRoleExternalId(null); - } - if (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] !== null) { - $object->setSnsTopicArn($data['sns_topic_arn']); - unset($data['sns_topic_arn']); - } - elseif (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] === null) { - $object->setSnsTopicArn(null); - } - if (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] !== null) { - $object->setCasBucketName($data['cas_bucket_name']); - unset($data['cas_bucket_name']); - } - elseif (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] === null) { - $object->setCasBucketName(null); - } - if (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] !== null) { - $object->setCasSnsTopicArn($data['cas_sns_topic_arn']); - unset($data['cas_sns_topic_arn']); - } - elseif (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] === null) { - $object->setCasSnsTopicArn(null); - } - if (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] !== null) { - $object->setSellerSnsTopicArn($data['seller_sns_topic_arn']); - unset($data['seller_sns_topic_arn']); - } - elseif (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] === null) { - $object->setSellerSnsTopicArn(null); - } - if (\array_key_exists('redirect_sign_up_page_function_url', $data) && $data['redirect_sign_up_page_function_url'] !== null) { - $object->setRedirectSignUpPageFunctionUrl($data['redirect_sign_up_page_function_url']); - unset($data['redirect_sign_up_page_function_url']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['product_code'] = $object->getProductCode(); + $data['role_arn'] = $object->getRoleArn(); + $data['role_external_id'] = $object->getRoleExternalId(); + $data['sns_topic_arn'] = $object->getSnsTopicArn(); + $data['cas_bucket_name'] = $object->getCasBucketName(); + $data['cas_sns_topic_arn'] = $object->getCasSnsTopicArn(); + $data['seller_sns_topic_arn'] = $object->getSellerSnsTopicArn(); + $data['redirect_sign_up_page_function_url'] = $object->getRedirectSignUpPageFunctionUrl(); + $data['sqs_arn'] = $object->getSqsArn(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('redirect_sign_up_page_function_url', $data) && $data['redirect_sign_up_page_function_url'] === null) { - $object->setRedirectSignUpPageFunctionUrl(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class => false]; } - if (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] !== null) { - $object->setSqsArn($data['sqs_arn']); - unset($data['sqs_arn']); + } +} else { + class SettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class; } - elseif (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] === null) { - $object->setSqsArn(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('product_code', $data) && $data['product_code'] !== null) { + $object->setProductCode($data['product_code']); + unset($data['product_code']); + } + elseif (\array_key_exists('product_code', $data) && $data['product_code'] === null) { + $object->setProductCode(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + if (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] !== null) { + $object->setSnsTopicArn($data['sns_topic_arn']); + unset($data['sns_topic_arn']); + } + elseif (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] === null) { + $object->setSnsTopicArn(null); } + if (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] !== null) { + $object->setCasBucketName($data['cas_bucket_name']); + unset($data['cas_bucket_name']); + } + elseif (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] === null) { + $object->setCasBucketName(null); + } + if (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] !== null) { + $object->setCasSnsTopicArn($data['cas_sns_topic_arn']); + unset($data['cas_sns_topic_arn']); + } + elseif (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] === null) { + $object->setCasSnsTopicArn(null); + } + if (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] !== null) { + $object->setSellerSnsTopicArn($data['seller_sns_topic_arn']); + unset($data['seller_sns_topic_arn']); + } + elseif (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] === null) { + $object->setSellerSnsTopicArn(null); + } + if (\array_key_exists('redirect_sign_up_page_function_url', $data) && $data['redirect_sign_up_page_function_url'] !== null) { + $object->setRedirectSignUpPageFunctionUrl($data['redirect_sign_up_page_function_url']); + unset($data['redirect_sign_up_page_function_url']); + } + elseif (\array_key_exists('redirect_sign_up_page_function_url', $data) && $data['redirect_sign_up_page_function_url'] === null) { + $object->setRedirectSignUpPageFunctionUrl(null); + } + if (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] !== null) { + $object->setSqsArn($data['sqs_arn']); + unset($data['sqs_arn']); + } + elseif (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] === null) { + $object->setSqsArn(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['product_code'] = $object->getProductCode(); - $data['role_arn'] = $object->getRoleArn(); - $data['role_external_id'] = $object->getRoleExternalId(); - $data['sns_topic_arn'] = $object->getSnsTopicArn(); - $data['cas_bucket_name'] = $object->getCasBucketName(); - $data['cas_sns_topic_arn'] = $object->getCasSnsTopicArn(); - $data['seller_sns_topic_arn'] = $object->getSellerSnsTopicArn(); - $data['redirect_sign_up_page_function_url'] = $object->getRedirectSignUpPageFunctionUrl(); - $data['sqs_arn'] = $object->getSqsArn(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['product_code'] = $object->getProductCode(); + $data['role_arn'] = $object->getRoleArn(); + $data['role_external_id'] = $object->getRoleExternalId(); + $data['sns_topic_arn'] = $object->getSnsTopicArn(); + $data['cas_bucket_name'] = $object->getCasBucketName(); + $data['cas_sns_topic_arn'] = $object->getCasSnsTopicArn(); + $data['seller_sns_topic_arn'] = $object->getSellerSnsTopicArn(); + $data['redirect_sign_up_page_function_url'] = $object->getRedirectSignUpPageFunctionUrl(); + $data['sqs_arn'] = $object->getSqsArn(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\Settings::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\Settings' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/UpdateListingStatusParamNormalizer.php b/generated/AwsMarketplace/Normalizer/UpdateListingStatusParamNormalizer.php index 6610bf5..18f432d 100644 --- a/generated/AwsMarketplace/Normalizer/UpdateListingStatusParamNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/UpdateListingStatusParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateListingStatusParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateListingStatusParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateListingStatusParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateListingStatusParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('listing_status', $data) && $data['listing_status'] !== null) { + $object->setListingStatus($data['listing_status']); + unset($data['listing_status']); + } + elseif (\array_key_exists('listing_status', $data) && $data['listing_status'] === null) { + $object->setListingStatus(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('listing_status', $data) && $data['listing_status'] !== null) { - $object->setListingStatus($data['listing_status']); - unset($data['listing_status']); - } - elseif (\array_key_exists('listing_status', $data) && $data['listing_status'] === null) { - $object->setListingStatus(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['listing_status'] = $object->getListingStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateListingStatusParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['listing_status'] = $object->getListingStatus(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('listing_status', $data) && $data['listing_status'] !== null) { + $object->setListingStatus($data['listing_status']); + unset($data['listing_status']); + } + elseif (\array_key_exists('listing_status', $data) && $data['listing_status'] === null) { + $object->setListingStatus(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['listing_status'] = $object->getListingStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateListingStatusParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateListingStatusParam' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/UpdateSettingsParamNormalizer.php b/generated/AwsMarketplace/Normalizer/UpdateSettingsParamNormalizer.php index 4aedad9..d67c345 100644 --- a/generated/AwsMarketplace/Normalizer/UpdateSettingsParamNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/UpdateSettingsParamNormalizer.php @@ -12,137 +12,269 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateSettingsParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateSettingsParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('product_code', $data) && $data['product_code'] !== null) { + $object->setProductCode($data['product_code']); + unset($data['product_code']); + } + elseif (\array_key_exists('product_code', $data) && $data['product_code'] === null) { + $object->setProductCode(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + if (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] !== null) { + $object->setSnsTopicArn($data['sns_topic_arn']); + unset($data['sns_topic_arn']); + } + elseif (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] === null) { + $object->setSnsTopicArn(null); + } + if (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] !== null) { + $object->setCasBucketName($data['cas_bucket_name']); + unset($data['cas_bucket_name']); + } + elseif (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] === null) { + $object->setCasBucketName(null); + } + if (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] !== null) { + $object->setCasSnsTopicArn($data['cas_sns_topic_arn']); + unset($data['cas_sns_topic_arn']); + } + elseif (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] === null) { + $object->setCasSnsTopicArn(null); + } + if (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] !== null) { + $object->setSellerSnsTopicArn($data['seller_sns_topic_arn']); + unset($data['seller_sns_topic_arn']); + } + elseif (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] === null) { + $object->setSellerSnsTopicArn(null); + } + if (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] !== null) { + $object->setSqsArn($data['sqs_arn']); + unset($data['sqs_arn']); + } + elseif (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] === null) { + $object->setSqsArn(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('product_code', $data) && $data['product_code'] !== null) { - $object->setProductCode($data['product_code']); - unset($data['product_code']); - } - elseif (\array_key_exists('product_code', $data) && $data['product_code'] === null) { - $object->setProductCode(null); - } - if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { - $object->setRoleArn($data['role_arn']); - unset($data['role_arn']); - } - elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { - $object->setRoleArn(null); - } - if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { - $object->setRoleExternalId($data['role_external_id']); - unset($data['role_external_id']); - } - elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { - $object->setRoleExternalId(null); - } - if (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] !== null) { - $object->setSnsTopicArn($data['sns_topic_arn']); - unset($data['sns_topic_arn']); - } - elseif (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] === null) { - $object->setSnsTopicArn(null); - } - if (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] !== null) { - $object->setCasBucketName($data['cas_bucket_name']); - unset($data['cas_bucket_name']); - } - elseif (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] === null) { - $object->setCasBucketName(null); - } - if (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] !== null) { - $object->setCasSnsTopicArn($data['cas_sns_topic_arn']); - unset($data['cas_sns_topic_arn']); - } - elseif (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] === null) { - $object->setCasSnsTopicArn(null); - } - if (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] !== null) { - $object->setSellerSnsTopicArn($data['seller_sns_topic_arn']); - unset($data['seller_sns_topic_arn']); - } - elseif (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] === null) { - $object->setSellerSnsTopicArn(null); - } - if (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] !== null) { - $object->setSqsArn($data['sqs_arn']); - unset($data['sqs_arn']); - } - elseif (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] === null) { - $object->setSqsArn(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('productCode') && null !== $object->getProductCode()) { + $data['product_code'] = $object->getProductCode(); + } + if ($object->isInitialized('roleArn') && null !== $object->getRoleArn()) { + $data['role_arn'] = $object->getRoleArn(); + } + if ($object->isInitialized('roleExternalId') && null !== $object->getRoleExternalId()) { + $data['role_external_id'] = $object->getRoleExternalId(); + } + if ($object->isInitialized('snsTopicArn') && null !== $object->getSnsTopicArn()) { + $data['sns_topic_arn'] = $object->getSnsTopicArn(); } + if ($object->isInitialized('casBucketName') && null !== $object->getCasBucketName()) { + $data['cas_bucket_name'] = $object->getCasBucketName(); + } + if ($object->isInitialized('casSnsTopicArn') && null !== $object->getCasSnsTopicArn()) { + $data['cas_sns_topic_arn'] = $object->getCasSnsTopicArn(); + } + if ($object->isInitialized('sellerSnsTopicArn') && null !== $object->getSellerSnsTopicArn()) { + $data['seller_sns_topic_arn'] = $object->getSellerSnsTopicArn(); + } + if ($object->isInitialized('sqsArn') && null !== $object->getSqsArn()) { + $data['sqs_arn'] = $object->getSqsArn(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateSettingsParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - if ($object->isInitialized('productCode') && null !== $object->getProductCode()) { - $data['product_code'] = $object->getProductCode(); - } - if ($object->isInitialized('roleArn') && null !== $object->getRoleArn()) { - $data['role_arn'] = $object->getRoleArn(); - } - if ($object->isInitialized('roleExternalId') && null !== $object->getRoleExternalId()) { - $data['role_external_id'] = $object->getRoleExternalId(); - } - if ($object->isInitialized('snsTopicArn') && null !== $object->getSnsTopicArn()) { - $data['sns_topic_arn'] = $object->getSnsTopicArn(); - } - if ($object->isInitialized('casBucketName') && null !== $object->getCasBucketName()) { - $data['cas_bucket_name'] = $object->getCasBucketName(); - } - if ($object->isInitialized('casSnsTopicArn') && null !== $object->getCasSnsTopicArn()) { - $data['cas_sns_topic_arn'] = $object->getCasSnsTopicArn(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class; } - if ($object->isInitialized('sellerSnsTopicArn') && null !== $object->getSellerSnsTopicArn()) { - $data['seller_sns_topic_arn'] = $object->getSellerSnsTopicArn(); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class; } - if ($object->isInitialized('sqsArn') && null !== $object->getSqsArn()) { - $data['sqs_arn'] = $object->getSqsArn(); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('product_code', $data) && $data['product_code'] !== null) { + $object->setProductCode($data['product_code']); + unset($data['product_code']); + } + elseif (\array_key_exists('product_code', $data) && $data['product_code'] === null) { + $object->setProductCode(null); + } + if (\array_key_exists('role_arn', $data) && $data['role_arn'] !== null) { + $object->setRoleArn($data['role_arn']); + unset($data['role_arn']); + } + elseif (\array_key_exists('role_arn', $data) && $data['role_arn'] === null) { + $object->setRoleArn(null); + } + if (\array_key_exists('role_external_id', $data) && $data['role_external_id'] !== null) { + $object->setRoleExternalId($data['role_external_id']); + unset($data['role_external_id']); + } + elseif (\array_key_exists('role_external_id', $data) && $data['role_external_id'] === null) { + $object->setRoleExternalId(null); + } + if (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] !== null) { + $object->setSnsTopicArn($data['sns_topic_arn']); + unset($data['sns_topic_arn']); + } + elseif (\array_key_exists('sns_topic_arn', $data) && $data['sns_topic_arn'] === null) { + $object->setSnsTopicArn(null); + } + if (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] !== null) { + $object->setCasBucketName($data['cas_bucket_name']); + unset($data['cas_bucket_name']); + } + elseif (\array_key_exists('cas_bucket_name', $data) && $data['cas_bucket_name'] === null) { + $object->setCasBucketName(null); + } + if (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] !== null) { + $object->setCasSnsTopicArn($data['cas_sns_topic_arn']); + unset($data['cas_sns_topic_arn']); + } + elseif (\array_key_exists('cas_sns_topic_arn', $data) && $data['cas_sns_topic_arn'] === null) { + $object->setCasSnsTopicArn(null); + } + if (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] !== null) { + $object->setSellerSnsTopicArn($data['seller_sns_topic_arn']); + unset($data['seller_sns_topic_arn']); + } + elseif (\array_key_exists('seller_sns_topic_arn', $data) && $data['seller_sns_topic_arn'] === null) { + $object->setSellerSnsTopicArn(null); + } + if (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] !== null) { + $object->setSqsArn($data['sqs_arn']); + unset($data['sqs_arn']); + } + elseif (\array_key_exists('sqs_arn', $data) && $data['sqs_arn'] === null) { + $object->setSqsArn(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('productCode') && null !== $object->getProductCode()) { + $data['product_code'] = $object->getProductCode(); + } + if ($object->isInitialized('roleArn') && null !== $object->getRoleArn()) { + $data['role_arn'] = $object->getRoleArn(); } + if ($object->isInitialized('roleExternalId') && null !== $object->getRoleExternalId()) { + $data['role_external_id'] = $object->getRoleExternalId(); + } + if ($object->isInitialized('snsTopicArn') && null !== $object->getSnsTopicArn()) { + $data['sns_topic_arn'] = $object->getSnsTopicArn(); + } + if ($object->isInitialized('casBucketName') && null !== $object->getCasBucketName()) { + $data['cas_bucket_name'] = $object->getCasBucketName(); + } + if ($object->isInitialized('casSnsTopicArn') && null !== $object->getCasSnsTopicArn()) { + $data['cas_sns_topic_arn'] = $object->getCasSnsTopicArn(); + } + if ($object->isInitialized('sellerSnsTopicArn') && null !== $object->getSellerSnsTopicArn()) { + $data['seller_sns_topic_arn'] = $object->getSellerSnsTopicArn(); + } + if ($object->isInitialized('sqsArn') && null !== $object->getSqsArn()) { + $data['sqs_arn'] = $object->getSqsArn(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\UpdateSettingsParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\UpdateSettingsParam' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Normalizer/VerifyRegistrationTokenParamNormalizer.php b/generated/AwsMarketplace/Normalizer/VerifyRegistrationTokenParamNormalizer.php index fa721aa..fd01811 100644 --- a/generated/AwsMarketplace/Normalizer/VerifyRegistrationTokenParamNormalizer.php +++ b/generated/AwsMarketplace/Normalizer/VerifyRegistrationTokenParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class VerifyRegistrationTokenParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VerifyRegistrationTokenParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\VerifyRegistrationTokenParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\VerifyRegistrationTokenParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { - $object->setRegistrationToken($data['registration_token']); - unset($data['registration_token']); - } - elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { - $object->setRegistrationToken(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class VerifyRegistrationTokenParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['registration_token'] = $object->getRegistrationToken(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('registration_token', $data) && $data['registration_token'] !== null) { + $object->setRegistrationToken($data['registration_token']); + unset($data['registration_token']); + } + elseif (\array_key_exists('registration_token', $data) && $data['registration_token'] === null) { + $object->setRegistrationToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['registration_token'] = $object->getRegistrationToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\AwsMarketplace\Model\VerifyRegistrationTokenParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\AwsMarketplace\\Model\\VerifyRegistrationTokenParam' => false); } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Runtime/Client/BaseEndpoint.php b/generated/AwsMarketplace/Runtime/Client/BaseEndpoint.php index a3a48ad..706ba39 100644 --- a/generated/AwsMarketplace/Runtime/Client/BaseEndpoint.php +++ b/generated/AwsMarketplace/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/AwsMarketplace/Runtime/Client/Client.php b/generated/AwsMarketplace/Runtime/Client/Client.php index 062ed36..6f21a74 100644 --- a/generated/AwsMarketplace/Runtime/Client/Client.php +++ b/generated/AwsMarketplace/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/AwsMarketplace/Runtime/Client/Endpoint.php b/generated/AwsMarketplace/Runtime/Client/Endpoint.php index b3f7226..ec746b0 100644 --- a/generated/AwsMarketplace/Runtime/Client/Endpoint.php +++ b/generated/AwsMarketplace/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/AwsMarketplace/Runtime/Client/EndpointTrait.php b/generated/AwsMarketplace/Runtime/Client/EndpointTrait.php index 4098d99..6dfd375 100644 --- a/generated/AwsMarketplace/Runtime/Client/EndpointTrait.php +++ b/generated/AwsMarketplace/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/AwsMarketplace/Runtime/Normalizer/CheckArray.php b/generated/AwsMarketplace/Runtime/Normalizer/CheckArray.php index 3f6cd8b..200d85d 100644 --- a/generated/AwsMarketplace/Runtime/Normalizer/CheckArray.php +++ b/generated/AwsMarketplace/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/AwsMarketplace/Runtime/Normalizer/ReferenceNormalizer.php b/generated/AwsMarketplace/Runtime/Normalizer/ReferenceNormalizer.php index 9f448e0..8dd2456 100644 --- a/generated/AwsMarketplace/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/AwsMarketplace/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/AwsMarketplace/Runtime/Normalizer/ValidationException.php b/generated/AwsMarketplace/Runtime/Normalizer/ValidationException.php index 8209c97..b77e924 100644 --- a/generated/AwsMarketplace/Runtime/Normalizer/ValidationException.php +++ b/generated/AwsMarketplace/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/AwsMarketplace/Runtime/Normalizer/ValidatorTrait.php b/generated/AwsMarketplace/Runtime/Normalizer/ValidatorTrait.php index 542a017..2051f9f 100644 --- a/generated/AwsMarketplace/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/AwsMarketplace/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\AwsMarketplace\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); diff --git a/generated/Billing/Authentication/BearerAuthentication.php b/generated/Billing/Authentication/BearerAuthentication.php index c0284b3..5761bc2 100644 --- a/generated/Billing/Authentication/BearerAuthentication.php +++ b/generated/Billing/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/Billing/Client.php b/generated/Billing/Client.php index 608acd0..6c1adf4 100644 --- a/generated/Billing/Client.php +++ b/generated/Billing/Client.php @@ -25,10 +25,7 @@ public function getStripeInfo(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Billing\Endpoint\GetStripeInfo(), $fetch); } /** - * 請求業務で使う外部SaaSとの連携情報を更新します。 - 現在は Stripe と連携が可能です。 - - Updates information on connection with external billing SaaS. + * Updates information on connection with external billing SaaS. Currently possible to connect to Stripe. * @@ -52,11 +49,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Billing\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/billing'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -67,11 +64,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/Billing/Endpoint/DeleteStripeInfo.php b/generated/Billing/Endpoint/DeleteStripeInfo.php index 826a839..b65f51f 100644 --- a/generated/Billing/Endpoint/DeleteStripeInfo.php +++ b/generated/Billing/Endpoint/DeleteStripeInfo.php @@ -5,21 +5,21 @@ class DeleteStripeInfo extends \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { return '/stripe/info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\DeleteStripeInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\DeleteStripeInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Billing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Billing/Endpoint/GetStripeInfo.php b/generated/Billing/Endpoint/GetStripeInfo.php index 7fa3455..6e0873c 100644 --- a/generated/Billing/Endpoint/GetStripeInfo.php +++ b/generated/Billing/Endpoint/GetStripeInfo.php @@ -5,21 +5,21 @@ class GetStripeInfo extends \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/stripe/info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\StripeInfo', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\GetStripeInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\GetStripeInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Billing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Billing/Endpoint/ReturnInternalServerError.php b/generated/Billing/Endpoint/ReturnInternalServerError.php index 632fc16..90b2684 100644 --- a/generated/Billing/Endpoint/ReturnInternalServerError.php +++ b/generated/Billing/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Billing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Billing/Endpoint/UpdateStripeInfo.php b/generated/Billing/Endpoint/UpdateStripeInfo.php index 2aef7a3..198392d 100644 --- a/generated/Billing/Endpoint/UpdateStripeInfo.php +++ b/generated/Billing/Endpoint/UpdateStripeInfo.php @@ -5,10 +5,7 @@ class UpdateStripeInfo extends \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\Endpoint { /** - * 請求業務で使う外部SaaSとの連携情報を更新します。 - 現在は Stripe と連携が可能です。 - - Updates information on connection with external billing SaaS. + * Updates information on connection with external billing SaaS. Currently possible to connect to Stripe. * @@ -19,24 +16,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStri $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/stripe/info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -53,11 +50,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\UpdateStripeInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Billing\Exception\UpdateStripeInfoInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Billing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Billing/Exception/DeleteStripeInfoInternalServerErrorException.php b/generated/Billing/Exception/DeleteStripeInfoInternalServerErrorException.php index f1f47be..856c627 100644 --- a/generated/Billing/Exception/DeleteStripeInfoInternalServerErrorException.php +++ b/generated/Billing/Exception/DeleteStripeInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Billing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Billing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Billing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Billing/Exception/GetStripeInfoInternalServerErrorException.php b/generated/Billing/Exception/GetStripeInfoInternalServerErrorException.php index 2c1bb8f..69b10df 100644 --- a/generated/Billing/Exception/GetStripeInfoInternalServerErrorException.php +++ b/generated/Billing/Exception/GetStripeInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Billing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Billing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Billing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Billing/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/Billing/Exception/ReturnInternalServerErrorInternalServerErrorException.php index 420c3c0..75f007f 100644 --- a/generated/Billing/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/Billing/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Billing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Billing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Billing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Billing/Exception/UpdateStripeInfoInternalServerErrorException.php b/generated/Billing/Exception/UpdateStripeInfoInternalServerErrorException.php index 2bde0df..d00a556 100644 --- a/generated/Billing/Exception/UpdateStripeInfoInternalServerErrorException.php +++ b/generated/Billing/Exception/UpdateStripeInfoInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Billing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Billing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Billing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Billing/Model/Error.php b/generated/Billing/Model/Error.php index 9480e7b..575142f 100644 --- a/generated/Billing/Model/Error.php +++ b/generated/Billing/Model/Error.php @@ -7,8 +7,8 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } @@ -40,7 +40,7 @@ public function getType() : ?string * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -51,7 +51,7 @@ public function setType(?string $type) : self * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } @@ -62,7 +62,7 @@ public function getMessage() : ?string * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/Billing/Model/StripeInfo.php b/generated/Billing/Model/StripeInfo.php index 542acaa..72cf767 100644 --- a/generated/Billing/Model/StripeInfo.php +++ b/generated/Billing/Model/StripeInfo.php @@ -7,8 +7,8 @@ class StripeInfo extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return bool|null */ - public function getIsRegistered() : ?bool + public function getIsRegistered(): ?bool { return $this->isRegistered; } @@ -34,7 +34,7 @@ public function getIsRegistered() : ?bool * * @return self */ - public function setIsRegistered(?bool $isRegistered) : self + public function setIsRegistered(?bool $isRegistered): self { $this->initialized['isRegistered'] = true; $this->isRegistered = $isRegistered; diff --git a/generated/Billing/Model/UpdateStripeInfoParam.php b/generated/Billing/Model/UpdateStripeInfoParam.php index 4a5a750..4a51df1 100644 --- a/generated/Billing/Model/UpdateStripeInfoParam.php +++ b/generated/Billing/Model/UpdateStripeInfoParam.php @@ -7,34 +7,34 @@ class UpdateStripeInfoParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * シークレットキー(secret key) + * secret key * * @var string|null */ protected $secretKey; /** - * シークレットキー(secret key) + * secret key * * @return string|null */ - public function getSecretKey() : ?string + public function getSecretKey(): ?string { return $this->secretKey; } /** - * シークレットキー(secret key) + * secret key * * @param string|null $secretKey * * @return self */ - public function setSecretKey(?string $secretKey) : self + public function setSecretKey(?string $secretKey): self { $this->initialized['secretKey'] = true; $this->secretKey = $secretKey; diff --git a/generated/Billing/Normalizer/ErrorNormalizer.php b/generated/Billing/Normalizer/ErrorNormalizer.php index b1d608b..ae26baa 100644 --- a/generated/Billing/Normalizer/ErrorNormalizer.php +++ b/generated/Billing/Normalizer/ErrorNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/Billing/Normalizer/JaneObjectNormalizer.php b/generated/Billing/Normalizer/JaneObjectNormalizer.php index 2473daa..313487a 100644 --- a/generated/Billing/Normalizer/JaneObjectNormalizer.php +++ b/generated/Billing/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,119 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\StripeInfo' => 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Normalizer\\StripeInfoNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\UpdateStripeInfoParam' => 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Normalizer\\UpdateStripeInfoParamNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\Billing\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class => \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\StripeInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class => \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\UpdateStripeInfoParamNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class => false, \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\StripeInfo' => false, 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\UpdateStripeInfoParam' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class => \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\StripeInfoNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class => \AntiPatternInc\Saasus\Sdk\Billing\Normalizer\UpdateStripeInfoParamNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Billing\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class => false, \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/Billing/Normalizer/StripeInfoNormalizer.php b/generated/Billing/Normalizer/StripeInfoNormalizer.php index 4be2334..e66e451 100644 --- a/generated/Billing/Normalizer/StripeInfoNormalizer.php +++ b/generated/Billing/Normalizer/StripeInfoNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class StripeInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class StripeInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\StripeInfo'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\StripeInfo'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('is_registered', $data) && $data['is_registered'] !== null) { + $object->setIsRegistered($data['is_registered']); + unset($data['is_registered']); + } + elseif (\array_key_exists('is_registered', $data) && $data['is_registered'] === null) { + $object->setIsRegistered(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('is_registered', $data) && $data['is_registered'] !== null) { - $object->setIsRegistered($data['is_registered']); - unset($data['is_registered']); - } - elseif (\array_key_exists('is_registered', $data) && $data['is_registered'] === null) { - $object->setIsRegistered(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['is_registered'] = $object->getIsRegistered(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class StripeInfoNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['is_registered'] = $object->getIsRegistered(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('is_registered', $data) && $data['is_registered'] !== null) { + $object->setIsRegistered($data['is_registered']); + unset($data['is_registered']); + } + elseif (\array_key_exists('is_registered', $data) && $data['is_registered'] === null) { + $object->setIsRegistered(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['is_registered'] = $object->getIsRegistered(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\StripeInfo::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\StripeInfo' => false); } } \ No newline at end of file diff --git a/generated/Billing/Normalizer/UpdateStripeInfoParamNormalizer.php b/generated/Billing/Normalizer/UpdateStripeInfoParamNormalizer.php index 3654507..337a555 100644 --- a/generated/Billing/Normalizer/UpdateStripeInfoParamNormalizer.php +++ b/generated/Billing/Normalizer/UpdateStripeInfoParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateStripeInfoParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateStripeInfoParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\UpdateStripeInfoParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\UpdateStripeInfoParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('secret_key', $data) && $data['secret_key'] !== null) { + $object->setSecretKey($data['secret_key']); + unset($data['secret_key']); + } + elseif (\array_key_exists('secret_key', $data) && $data['secret_key'] === null) { + $object->setSecretKey(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('secret_key', $data) && $data['secret_key'] !== null) { - $object->setSecretKey($data['secret_key']); - unset($data['secret_key']); - } - elseif (\array_key_exists('secret_key', $data) && $data['secret_key'] === null) { - $object->setSecretKey(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['secret_key'] = $object->getSecretKey(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateStripeInfoParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['secret_key'] = $object->getSecretKey(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('secret_key', $data) && $data['secret_key'] !== null) { + $object->setSecretKey($data['secret_key']); + unset($data['secret_key']); + } + elseif (\array_key_exists('secret_key', $data) && $data['secret_key'] === null) { + $object->setSecretKey(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['secret_key'] = $object->getSecretKey(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Billing\Model\UpdateStripeInfoParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Billing\\Model\\UpdateStripeInfoParam' => false); } } \ No newline at end of file diff --git a/generated/Billing/Runtime/Client/BaseEndpoint.php b/generated/Billing/Runtime/Client/BaseEndpoint.php index 8142282..4122050 100644 --- a/generated/Billing/Runtime/Client/BaseEndpoint.php +++ b/generated/Billing/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/Billing/Runtime/Client/Client.php b/generated/Billing/Runtime/Client/Client.php index 71f0868..81b86b8 100644 --- a/generated/Billing/Runtime/Client/Client.php +++ b/generated/Billing/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/Billing/Runtime/Client/Endpoint.php b/generated/Billing/Runtime/Client/Endpoint.php index 1ca4368..64fe874 100644 --- a/generated/Billing/Runtime/Client/Endpoint.php +++ b/generated/Billing/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/Billing/Runtime/Client/EndpointTrait.php b/generated/Billing/Runtime/Client/EndpointTrait.php index 0ed06ca..152863d 100644 --- a/generated/Billing/Runtime/Client/EndpointTrait.php +++ b/generated/Billing/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/Billing/Runtime/Normalizer/CheckArray.php b/generated/Billing/Runtime/Normalizer/CheckArray.php index 99504a5..efcac16 100644 --- a/generated/Billing/Runtime/Normalizer/CheckArray.php +++ b/generated/Billing/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/Billing/Runtime/Normalizer/ReferenceNormalizer.php b/generated/Billing/Runtime/Normalizer/ReferenceNormalizer.php index e8cd2bc..5faa1cd 100644 --- a/generated/Billing/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/Billing/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\Billing\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/Billing/Runtime/Normalizer/ValidationException.php b/generated/Billing/Runtime/Normalizer/ValidationException.php index 55ca355..89dbd9f 100644 --- a/generated/Billing/Runtime/Normalizer/ValidationException.php +++ b/generated/Billing/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\Billing\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/Billing/Runtime/Normalizer/ValidatorTrait.php b/generated/Billing/Runtime/Normalizer/ValidatorTrait.php index faef08e..45ee06e 100644 --- a/generated/Billing/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/Billing/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\Billing\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); diff --git a/generated/Communication/Authentication/BearerAuthentication.php b/generated/Communication/Authentication/BearerAuthentication.php index 95fc97c..fd14a49 100644 --- a/generated/Communication/Authentication/BearerAuthentication.php +++ b/generated/Communication/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/Communication/Client.php b/generated/Communication/Client.php index f34084c..620d144 100644 --- a/generated/Communication/Client.php +++ b/generated/Communication/Client.php @@ -15,7 +15,7 @@ public function getFeedbacks(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\GetFeedbacks(), $fetch); } /** - * フィードバックを起票します。 + * Create Feedback. * * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -28,7 +28,7 @@ public function createFeedback(?\AntiPatternInc\Saasus\Sdk\Communication\Model\C return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\CreateFeedback($requestBody), $fetch); } /** - * フィードバックを削除します。 + * Delete Feedback. * * @param string $feedbackId * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -42,7 +42,7 @@ public function deleteFeedback(string $feedbackId, string $fetch = self::FETCH_O return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\DeleteFeedback($feedbackId), $fetch); } /** - * フィードバックの取得をします。 + * Retrieve feedback. * * @param string $feedbackId * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -56,7 +56,7 @@ public function getFeedback(string $feedbackId, string $fetch = self::FETCH_OBJE return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\GetFeedback($feedbackId), $fetch); } /** - * フィードバックの編集をします。 + * Edit feedback. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam $requestBody @@ -71,7 +71,7 @@ public function updateFeedback(string $feedbackId, ?\AntiPatternInc\Saasus\Sdk\C return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\UpdateFeedback($feedbackId, $requestBody), $fetch); } /** - * フィードバックのステータスを更新します。 + * Update Feedback Status. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam $requestBody @@ -86,7 +86,7 @@ public function updateFeedbackStatus(string $feedbackId, ?\AntiPatternInc\Saasus return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\UpdateFeedbackStatus($feedbackId, $requestBody), $fetch); } /** - * フィードバックへの投票をします。 + * Vote for feedback. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam $requestBody @@ -101,7 +101,7 @@ public function createVoteUser(string $feedbackId, ?\AntiPatternInc\Saasus\Sdk\C return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\CreateVoteUser($feedbackId, $requestBody), $fetch); } /** - * フィードバックへの投票の取消をします。 + * Cancel vote for feedback. * * @param string $feedbackId * @param string $userId @@ -116,7 +116,7 @@ public function deleteVoteForFeedback(string $feedbackId, string $userId, string return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\DeleteVoteForFeedback($feedbackId, $userId), $fetch); } /** - * フィードバックへのコメントを投稿します。 + * Post comment to feedback. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam $requestBody @@ -131,7 +131,7 @@ public function createFeedbackComment(string $feedbackId, ?\AntiPatternInc\Saasu return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\CreateFeedbackComment($feedbackId, $requestBody), $fetch); } /** - * フィードバックへのコメントを削除します。 + * Delete comment for feedback. * * @param string $feedbackId * @param string $commentId @@ -146,7 +146,7 @@ public function deleteFeedbackComment(string $feedbackId, string $commentId, str return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\DeleteFeedbackComment($feedbackId, $commentId), $fetch); } /** - * フィードバックへのコメントを取得します。 + * Retrieve comment from feedback. * * @param string $feedbackId * @param string $commentId @@ -161,7 +161,7 @@ public function getFeedbackComment(string $feedbackId, string $commentId, string return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\GetFeedbackComment($feedbackId, $commentId), $fetch); } /** - * フィードバックへのコメントを編集します。 + * Edit comment for feedback. * * @param string $feedbackId * @param string $commentId @@ -186,11 +186,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Communication\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/communication'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -201,11 +201,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/CreateFeedback.php b/generated/Communication/Endpoint/CreateFeedback.php index 223152c..e67efeb 100644 --- a/generated/Communication/Endpoint/CreateFeedback.php +++ b/generated/Communication/Endpoint/CreateFeedback.php @@ -5,7 +5,7 @@ class CreateFeedback extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\Endpoint { /** - * フィードバックを起票します。 + * Create Feedback. * * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam $requestBody */ @@ -14,24 +14,24 @@ public function __construct(?\AntiPatternInc\Saasus\Sdk\Communication\Model\Crea $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/feedbacks'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -45,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/CreateFeedbackComment.php b/generated/Communication/Endpoint/CreateFeedbackComment.php index 34a788d..6cdde15 100644 --- a/generated/Communication/Endpoint/CreateFeedbackComment.php +++ b/generated/Communication/Endpoint/CreateFeedbackComment.php @@ -6,7 +6,7 @@ class CreateFeedbackComment extends \AntiPatternInc\Saasus\Sdk\Communication\Run { protected $feedback_id; /** - * フィードバックへのコメントを投稿します。 + * Post comment to feedback. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam $requestBody @@ -17,24 +17,24 @@ public function __construct(string $feedbackId, ?\AntiPatternInc\Saasus\Sdk\Comm $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}'), array($this->feedback_id), '/feedbacks/{feedback_id}/comments'); + return str_replace(['{feedback_id}'], [$this->feedback_id], '/feedbacks/{feedback_id}/comments'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/CreateVoteUser.php b/generated/Communication/Endpoint/CreateVoteUser.php index 9161efe..fea86e1 100644 --- a/generated/Communication/Endpoint/CreateVoteUser.php +++ b/generated/Communication/Endpoint/CreateVoteUser.php @@ -6,7 +6,7 @@ class CreateVoteUser extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Cl { protected $feedback_id; /** - * フィードバックへの投票をします。 + * Vote for feedback. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam $requestBody @@ -17,24 +17,24 @@ public function __construct(string $feedbackId, ?\AntiPatternInc\Saasus\Sdk\Comm $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}'), array($this->feedback_id), '/feedbacks/{feedback_id}/votes/users'); + return str_replace(['{feedback_id}'], [$this->feedback_id], '/feedbacks/{feedback_id}/votes/users'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,17 +49,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Votes', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Votes', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateVoteUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateVoteUserNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateVoteUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\CreateVoteUserInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/DeleteFeedback.php b/generated/Communication/Endpoint/DeleteFeedback.php index d477bb5..b593918 100644 --- a/generated/Communication/Endpoint/DeleteFeedback.php +++ b/generated/Communication/Endpoint/DeleteFeedback.php @@ -6,7 +6,7 @@ class DeleteFeedback extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Cl { protected $feedback_id; /** - * フィードバックを削除します。 + * Delete Feedback. * * @param string $feedbackId */ @@ -15,21 +15,21 @@ public function __construct(string $feedbackId) $this->feedback_id = $feedbackId; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}'), array($this->feedback_id), '/feedbacks/{feedback_id}'); + return str_replace(['{feedback_id}'], [$this->feedback_id], '/feedbacks/{feedback_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -47,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/DeleteFeedbackComment.php b/generated/Communication/Endpoint/DeleteFeedbackComment.php index ce57f9a..b0433a1 100644 --- a/generated/Communication/Endpoint/DeleteFeedbackComment.php +++ b/generated/Communication/Endpoint/DeleteFeedbackComment.php @@ -7,7 +7,7 @@ class DeleteFeedbackComment extends \AntiPatternInc\Saasus\Sdk\Communication\Run protected $feedback_id; protected $comment_id; /** - * フィードバックへのコメントを削除します。 + * Delete comment for feedback. * * @param string $feedbackId * @param string $commentId @@ -18,21 +18,21 @@ public function __construct(string $feedbackId, string $commentId) $this->comment_id = $commentId; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}', '{comment_id}'), array($this->feedback_id, $this->comment_id), '/feedbacks/{feedback_id}/comments/{comment_id}'); + return str_replace(['{feedback_id}', '{comment_id}'], [$this->feedback_id, $this->comment_id], '/feedbacks/{feedback_id}/comments/{comment_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +50,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/DeleteVoteForFeedback.php b/generated/Communication/Endpoint/DeleteVoteForFeedback.php index 0beef4a..3d1b1ee 100644 --- a/generated/Communication/Endpoint/DeleteVoteForFeedback.php +++ b/generated/Communication/Endpoint/DeleteVoteForFeedback.php @@ -7,7 +7,7 @@ class DeleteVoteForFeedback extends \AntiPatternInc\Saasus\Sdk\Communication\Run protected $feedback_id; protected $user_id; /** - * フィードバックへの投票の取消をします。 + * Cancel vote for feedback. * * @param string $feedbackId * @param string $userId @@ -18,21 +18,21 @@ public function __construct(string $feedbackId, string $userId) $this->user_id = $userId; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}', '{user_id}'), array($this->feedback_id, $this->user_id), '/feedbacks/{feedback_id}/votes/users/{user_id}'); + return str_replace(['{feedback_id}', '{user_id}'], [$this->feedback_id, $this->user_id], '/feedbacks/{feedback_id}/votes/users/{user_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +50,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteVoteForFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteVoteForFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteVoteForFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\DeleteVoteForFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/GetFeedback.php b/generated/Communication/Endpoint/GetFeedback.php index a6f01be..f6dd30c 100644 --- a/generated/Communication/Endpoint/GetFeedback.php +++ b/generated/Communication/Endpoint/GetFeedback.php @@ -6,7 +6,7 @@ class GetFeedback extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Clien { protected $feedback_id; /** - * フィードバックの取得をします。 + * Retrieve feedback. * * @param string $feedbackId */ @@ -15,21 +15,21 @@ public function __construct(string $feedbackId) $this->feedback_id = $feedbackId; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}'), array($this->feedback_id), '/feedbacks/{feedback_id}'); + return str_replace(['{feedback_id}'], [$this->feedback_id], '/feedbacks/{feedback_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -44,17 +44,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback', 'json'); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/GetFeedbackComment.php b/generated/Communication/Endpoint/GetFeedbackComment.php index 4e112db..704fbc3 100644 --- a/generated/Communication/Endpoint/GetFeedbackComment.php +++ b/generated/Communication/Endpoint/GetFeedbackComment.php @@ -7,7 +7,7 @@ class GetFeedbackComment extends \AntiPatternInc\Saasus\Sdk\Communication\Runtim protected $feedback_id; protected $comment_id; /** - * フィードバックへのコメントを取得します。 + * Retrieve comment from feedback. * * @param string $feedbackId * @param string $commentId @@ -18,21 +18,21 @@ public function __construct(string $feedbackId, string $commentId) $this->comment_id = $commentId; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}', '{comment_id}'), array($this->feedback_id, $this->comment_id), '/feedbacks/{feedback_id}/comments/{comment_id}'); + return str_replace(['{feedback_id}', '{comment_id}'], [$this->feedback_id, $this->comment_id], '/feedbacks/{feedback_id}/comments/{comment_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +50,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/GetFeedbacks.php b/generated/Communication/Endpoint/GetFeedbacks.php index f7c0784..3996b8c 100644 --- a/generated/Communication/Endpoint/GetFeedbacks.php +++ b/generated/Communication/Endpoint/GetFeedbacks.php @@ -5,21 +5,21 @@ class GetFeedbacks extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/feedbacks'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedbacks', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbacksInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\GetFeedbacksInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/ReturnInternalServerError.php b/generated/Communication/Endpoint/ReturnInternalServerError.php index 7bc8ce7..2723ccb 100644 --- a/generated/Communication/Endpoint/ReturnInternalServerError.php +++ b/generated/Communication/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/UpdateFeedback.php b/generated/Communication/Endpoint/UpdateFeedback.php index 2519c85..460820f 100644 --- a/generated/Communication/Endpoint/UpdateFeedback.php +++ b/generated/Communication/Endpoint/UpdateFeedback.php @@ -6,7 +6,7 @@ class UpdateFeedback extends \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Cl { protected $feedback_id; /** - * フィードバックの編集をします。 + * Edit feedback. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam $requestBody @@ -17,24 +17,24 @@ public function __construct(string $feedbackId, ?\AntiPatternInc\Saasus\Sdk\Comm $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}'), array($this->feedback_id), '/feedbacks/{feedback_id}'); + return str_replace(['{feedback_id}'], [$this->feedback_id], '/feedbacks/{feedback_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/UpdateFeedbackComment.php b/generated/Communication/Endpoint/UpdateFeedbackComment.php index 7006b00..b8c98a8 100644 --- a/generated/Communication/Endpoint/UpdateFeedbackComment.php +++ b/generated/Communication/Endpoint/UpdateFeedbackComment.php @@ -7,7 +7,7 @@ class UpdateFeedbackComment extends \AntiPatternInc\Saasus\Sdk\Communication\Run protected $feedback_id; protected $comment_id; /** - * フィードバックへのコメントを編集します。 + * Edit comment for feedback. * * @param string $feedbackId * @param string $commentId @@ -20,24 +20,24 @@ public function __construct(string $feedbackId, string $commentId, ?\AntiPattern $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}', '{comment_id}'), array($this->feedback_id, $this->comment_id), '/feedbacks/{feedback_id}/comments/{comment_id}'); + return str_replace(['{feedback_id}', '{comment_id}'], [$this->feedback_id, $this->comment_id], '/feedbacks/{feedback_id}/comments/{comment_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,14 +55,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackCommentNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackCommentInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Endpoint/UpdateFeedbackStatus.php b/generated/Communication/Endpoint/UpdateFeedbackStatus.php index 36cc886..46901a6 100644 --- a/generated/Communication/Endpoint/UpdateFeedbackStatus.php +++ b/generated/Communication/Endpoint/UpdateFeedbackStatus.php @@ -6,7 +6,7 @@ class UpdateFeedbackStatus extends \AntiPatternInc\Saasus\Sdk\Communication\Runt { protected $feedback_id; /** - * フィードバックのステータスを更新します。 + * Update Feedback Status. * * @param string $feedbackId * @param null|\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam $requestBody @@ -17,24 +17,24 @@ public function __construct(string $feedbackId, ?\AntiPatternInc\Saasus\Sdk\Comm $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{feedback_id}'), array($this->feedback_id), '/feedbacks/{feedback_id}/status'); + return str_replace(['{feedback_id}'], [$this->feedback_id], '/feedbacks/{feedback_id}/status'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackStatusNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackStatusNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackStatusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Communication\Exception\UpdateFeedbackStatusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Communication\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Communication/Exception/CreateFeedbackCommentInternalServerErrorException.php b/generated/Communication/Exception/CreateFeedbackCommentInternalServerErrorException.php index a6121cf..5b16a77 100644 --- a/generated/Communication/Exception/CreateFeedbackCommentInternalServerErrorException.php +++ b/generated/Communication/Exception/CreateFeedbackCommentInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/CreateFeedbackCommentNotFoundException.php b/generated/Communication/Exception/CreateFeedbackCommentNotFoundException.php index 68baeb6..c73812c 100644 --- a/generated/Communication/Exception/CreateFeedbackCommentNotFoundException.php +++ b/generated/Communication/Exception/CreateFeedbackCommentNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/CreateFeedbackInternalServerErrorException.php b/generated/Communication/Exception/CreateFeedbackInternalServerErrorException.php index 80b8f9d..b5c52c4 100644 --- a/generated/Communication/Exception/CreateFeedbackInternalServerErrorException.php +++ b/generated/Communication/Exception/CreateFeedbackInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/CreateVoteUserInternalServerErrorException.php b/generated/Communication/Exception/CreateVoteUserInternalServerErrorException.php index 7162425..fb99629 100644 --- a/generated/Communication/Exception/CreateVoteUserInternalServerErrorException.php +++ b/generated/Communication/Exception/CreateVoteUserInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/CreateVoteUserNotFoundException.php b/generated/Communication/Exception/CreateVoteUserNotFoundException.php index 172a76a..dbc0700 100644 --- a/generated/Communication/Exception/CreateVoteUserNotFoundException.php +++ b/generated/Communication/Exception/CreateVoteUserNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/DeleteFeedbackCommentInternalServerErrorException.php b/generated/Communication/Exception/DeleteFeedbackCommentInternalServerErrorException.php index 661b9a5..625d46b 100644 --- a/generated/Communication/Exception/DeleteFeedbackCommentInternalServerErrorException.php +++ b/generated/Communication/Exception/DeleteFeedbackCommentInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/DeleteFeedbackCommentNotFoundException.php b/generated/Communication/Exception/DeleteFeedbackCommentNotFoundException.php index bf75f1b..a52c19b 100644 --- a/generated/Communication/Exception/DeleteFeedbackCommentNotFoundException.php +++ b/generated/Communication/Exception/DeleteFeedbackCommentNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/DeleteFeedbackInternalServerErrorException.php b/generated/Communication/Exception/DeleteFeedbackInternalServerErrorException.php index bfe0e2b..f031ae9 100644 --- a/generated/Communication/Exception/DeleteFeedbackInternalServerErrorException.php +++ b/generated/Communication/Exception/DeleteFeedbackInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/DeleteFeedbackNotFoundException.php b/generated/Communication/Exception/DeleteFeedbackNotFoundException.php index 5289061..0109c7b 100644 --- a/generated/Communication/Exception/DeleteFeedbackNotFoundException.php +++ b/generated/Communication/Exception/DeleteFeedbackNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/DeleteVoteForFeedbackInternalServerErrorException.php b/generated/Communication/Exception/DeleteVoteForFeedbackInternalServerErrorException.php index 3aa0bf3..28915ed 100644 --- a/generated/Communication/Exception/DeleteVoteForFeedbackInternalServerErrorException.php +++ b/generated/Communication/Exception/DeleteVoteForFeedbackInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/DeleteVoteForFeedbackNotFoundException.php b/generated/Communication/Exception/DeleteVoteForFeedbackNotFoundException.php index 3267509..3e62bf4 100644 --- a/generated/Communication/Exception/DeleteVoteForFeedbackNotFoundException.php +++ b/generated/Communication/Exception/DeleteVoteForFeedbackNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/GetFeedbackCommentInternalServerErrorException.php b/generated/Communication/Exception/GetFeedbackCommentInternalServerErrorException.php index 55568d4..ee5e49d 100644 --- a/generated/Communication/Exception/GetFeedbackCommentInternalServerErrorException.php +++ b/generated/Communication/Exception/GetFeedbackCommentInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/GetFeedbackCommentNotFoundException.php b/generated/Communication/Exception/GetFeedbackCommentNotFoundException.php index 70d341b..b934fb2 100644 --- a/generated/Communication/Exception/GetFeedbackCommentNotFoundException.php +++ b/generated/Communication/Exception/GetFeedbackCommentNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/GetFeedbackInternalServerErrorException.php b/generated/Communication/Exception/GetFeedbackInternalServerErrorException.php index 0bc0590..8c5e989 100644 --- a/generated/Communication/Exception/GetFeedbackInternalServerErrorException.php +++ b/generated/Communication/Exception/GetFeedbackInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/GetFeedbackNotFoundException.php b/generated/Communication/Exception/GetFeedbackNotFoundException.php index 4b3579b..084db92 100644 --- a/generated/Communication/Exception/GetFeedbackNotFoundException.php +++ b/generated/Communication/Exception/GetFeedbackNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/GetFeedbacksInternalServerErrorException.php b/generated/Communication/Exception/GetFeedbacksInternalServerErrorException.php index e963495..470dcaa 100644 --- a/generated/Communication/Exception/GetFeedbacksInternalServerErrorException.php +++ b/generated/Communication/Exception/GetFeedbacksInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/Communication/Exception/ReturnInternalServerErrorInternalServerErrorException.php index 65c70d1..e2ab3fb 100644 --- a/generated/Communication/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/Communication/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/UpdateFeedbackCommentInternalServerErrorException.php b/generated/Communication/Exception/UpdateFeedbackCommentInternalServerErrorException.php index ea14c3a..8eb655c 100644 --- a/generated/Communication/Exception/UpdateFeedbackCommentInternalServerErrorException.php +++ b/generated/Communication/Exception/UpdateFeedbackCommentInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/UpdateFeedbackCommentNotFoundException.php b/generated/Communication/Exception/UpdateFeedbackCommentNotFoundException.php index 928cb99..38865ab 100644 --- a/generated/Communication/Exception/UpdateFeedbackCommentNotFoundException.php +++ b/generated/Communication/Exception/UpdateFeedbackCommentNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/UpdateFeedbackInternalServerErrorException.php b/generated/Communication/Exception/UpdateFeedbackInternalServerErrorException.php index a4e0fe8..1919fb8 100644 --- a/generated/Communication/Exception/UpdateFeedbackInternalServerErrorException.php +++ b/generated/Communication/Exception/UpdateFeedbackInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/UpdateFeedbackNotFoundException.php b/generated/Communication/Exception/UpdateFeedbackNotFoundException.php index 19f99af..4b0079e 100644 --- a/generated/Communication/Exception/UpdateFeedbackNotFoundException.php +++ b/generated/Communication/Exception/UpdateFeedbackNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/UpdateFeedbackStatusInternalServerErrorException.php b/generated/Communication/Exception/UpdateFeedbackStatusInternalServerErrorException.php index e4909fb..d46bfb6 100644 --- a/generated/Communication/Exception/UpdateFeedbackStatusInternalServerErrorException.php +++ b/generated/Communication/Exception/UpdateFeedbackStatusInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Exception/UpdateFeedbackStatusNotFoundException.php b/generated/Communication/Exception/UpdateFeedbackStatusNotFoundException.php index 0e45ad2..146fd41 100644 --- a/generated/Communication/Exception/UpdateFeedbackStatusNotFoundException.php +++ b/generated/Communication/Exception/UpdateFeedbackStatusNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Communication\Model\Error $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Communication\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Communication\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Communication/Model/Comments.php b/generated/Communication/Model/Comments.php index 015958f..ba84915 100644 --- a/generated/Communication/Model/Comments.php +++ b/generated/Communication/Model/Comments.php @@ -7,34 +7,34 @@ class Comments extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $comments; /** * * - * @return array[]|null + * @return list>|null */ - public function getComments() : ?array + public function getComments(): ?array { return $this->comments; } /** * * - * @param array[]|null $comments + * @param list>|null $comments * * @return self */ - public function setComments(?array $comments) : self + public function setComments(?array $comments): self { $this->initialized['comments'] = true; $this->comments = $comments; diff --git a/generated/Communication/Model/CreateFeedbackCommentParam.php b/generated/Communication/Model/CreateFeedbackCommentParam.php index 6108b0b..9dec013 100644 --- a/generated/Communication/Model/CreateFeedbackCommentParam.php +++ b/generated/Communication/Model/CreateFeedbackCommentParam.php @@ -7,17 +7,11 @@ class CreateFeedbackCommentParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } - /** - * - * - * @var string|null - */ - protected $userId; /** * * @@ -29,29 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getUserId() : ?string - { - return $this->userId; - } - /** - * - * - * @param string|null $userId - * - * @return self - */ - public function setUserId(?string $userId) : self - { - $this->initialized['userId'] = true; - $this->userId = $userId; - return $this; - } - /** - * - * - * @return string|null - */ - public function getBody() : ?string + public function getBody(): ?string { return $this->body; } @@ -62,7 +34,7 @@ public function getBody() : ?string * * @return self */ - public function setBody(?string $body) : self + public function setBody(?string $body): self { $this->initialized['body'] = true; $this->body = $body; diff --git a/generated/Communication/Model/CreateFeedbackParam.php b/generated/Communication/Model/CreateFeedbackParam.php index 4c15571..fce9670 100644 --- a/generated/Communication/Model/CreateFeedbackParam.php +++ b/generated/Communication/Model/CreateFeedbackParam.php @@ -7,8 +7,8 @@ class CreateFeedbackParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -35,7 +35,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getUserId() : ?string + public function getUserId(): ?string { return $this->userId; } @@ -46,7 +46,7 @@ public function getUserId() : ?string * * @return self */ - public function setUserId(?string $userId) : self + public function setUserId(?string $userId): self { $this->initialized['userId'] = true; $this->userId = $userId; @@ -57,7 +57,7 @@ public function setUserId(?string $userId) : self * * @return string|null */ - public function getFeedbackTitle() : ?string + public function getFeedbackTitle(): ?string { return $this->feedbackTitle; } @@ -68,7 +68,7 @@ public function getFeedbackTitle() : ?string * * @return self */ - public function setFeedbackTitle(?string $feedbackTitle) : self + public function setFeedbackTitle(?string $feedbackTitle): self { $this->initialized['feedbackTitle'] = true; $this->feedbackTitle = $feedbackTitle; @@ -79,7 +79,7 @@ public function setFeedbackTitle(?string $feedbackTitle) : self * * @return string|null */ - public function getFeedbackDescription() : ?string + public function getFeedbackDescription(): ?string { return $this->feedbackDescription; } @@ -90,7 +90,7 @@ public function getFeedbackDescription() : ?string * * @return self */ - public function setFeedbackDescription(?string $feedbackDescription) : self + public function setFeedbackDescription(?string $feedbackDescription): self { $this->initialized['feedbackDescription'] = true; $this->feedbackDescription = $feedbackDescription; diff --git a/generated/Communication/Model/CreateVoteUserParam.php b/generated/Communication/Model/CreateVoteUserParam.php index 97c4dd0..24c85e1 100644 --- a/generated/Communication/Model/CreateVoteUserParam.php +++ b/generated/Communication/Model/CreateVoteUserParam.php @@ -7,8 +7,8 @@ class CreateVoteUserParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getUserId() : ?string + public function getUserId(): ?string { return $this->userId; } @@ -34,7 +34,7 @@ public function getUserId() : ?string * * @return self */ - public function setUserId(?string $userId) : self + public function setUserId(?string $userId): self { $this->initialized['userId'] = true; $this->userId = $userId; diff --git a/generated/Communication/Model/Error.php b/generated/Communication/Model/Error.php index e77f397..4ed6ff1 100644 --- a/generated/Communication/Model/Error.php +++ b/generated/Communication/Model/Error.php @@ -7,8 +7,8 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } @@ -40,7 +40,7 @@ public function getType() : ?string * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -51,7 +51,7 @@ public function setType(?string $type) : self * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } @@ -62,7 +62,7 @@ public function getMessage() : ?string * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/Communication/Model/Feedback.php b/generated/Communication/Model/Feedback.php index 7073b99..396b0d5 100644 --- a/generated/Communication/Model/Feedback.php +++ b/generated/Communication/Model/Feedback.php @@ -7,8 +7,8 @@ class Feedback extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -51,7 +51,7 @@ public function isInitialized($property) : bool /** * * - * @var array[]|null + * @var list>|null */ protected $comments; /** @@ -63,7 +63,7 @@ public function isInitialized($property) : bool /** * * - * @var User[]|null + * @var list|null */ protected $users; /** @@ -71,7 +71,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } @@ -82,7 +82,7 @@ public function getId() : ?string * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; @@ -93,7 +93,7 @@ public function setId(?string $id) : self * * @return string|null */ - public function getUserId() : ?string + public function getUserId(): ?string { return $this->userId; } @@ -104,7 +104,7 @@ public function getUserId() : ?string * * @return self */ - public function setUserId(?string $userId) : self + public function setUserId(?string $userId): self { $this->initialized['userId'] = true; $this->userId = $userId; @@ -115,7 +115,7 @@ public function setUserId(?string $userId) : self * * @return int|null */ - public function getCreatedAt() : ?int + public function getCreatedAt(): ?int { return $this->createdAt; } @@ -126,7 +126,7 @@ public function getCreatedAt() : ?int * * @return self */ - public function setCreatedAt(?int $createdAt) : self + public function setCreatedAt(?int $createdAt): self { $this->initialized['createdAt'] = true; $this->createdAt = $createdAt; @@ -137,7 +137,7 @@ public function setCreatedAt(?int $createdAt) : self * * @return int|null */ - public function getStatus() : ?int + public function getStatus(): ?int { return $this->status; } @@ -148,7 +148,7 @@ public function getStatus() : ?int * * @return self */ - public function setStatus(?int $status) : self + public function setStatus(?int $status): self { $this->initialized['status'] = true; $this->status = $status; @@ -159,7 +159,7 @@ public function setStatus(?int $status) : self * * @return string|null */ - public function getFeedbackTitle() : ?string + public function getFeedbackTitle(): ?string { return $this->feedbackTitle; } @@ -170,7 +170,7 @@ public function getFeedbackTitle() : ?string * * @return self */ - public function setFeedbackTitle(?string $feedbackTitle) : self + public function setFeedbackTitle(?string $feedbackTitle): self { $this->initialized['feedbackTitle'] = true; $this->feedbackTitle = $feedbackTitle; @@ -181,7 +181,7 @@ public function setFeedbackTitle(?string $feedbackTitle) : self * * @return string|null */ - public function getFeedbackDescription() : ?string + public function getFeedbackDescription(): ?string { return $this->feedbackDescription; } @@ -192,7 +192,7 @@ public function getFeedbackDescription() : ?string * * @return self */ - public function setFeedbackDescription(?string $feedbackDescription) : self + public function setFeedbackDescription(?string $feedbackDescription): self { $this->initialized['feedbackDescription'] = true; $this->feedbackDescription = $feedbackDescription; @@ -201,20 +201,20 @@ public function setFeedbackDescription(?string $feedbackDescription) : self /** * * - * @return array[]|null + * @return list>|null */ - public function getComments() : ?array + public function getComments(): ?array { return $this->comments; } /** * * - * @param array[]|null $comments + * @param list>|null $comments * * @return self */ - public function setComments(?array $comments) : self + public function setComments(?array $comments): self { $this->initialized['comments'] = true; $this->comments = $comments; @@ -225,7 +225,7 @@ public function setComments(?array $comments) : self * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } @@ -236,7 +236,7 @@ public function getCount() : ?int * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; @@ -245,20 +245,20 @@ public function setCount(?int $count) : self /** * * - * @return User[]|null + * @return list|null */ - public function getUsers() : ?array + public function getUsers(): ?array { return $this->users; } /** * * - * @param User[]|null $users + * @param list|null $users * * @return self */ - public function setUsers(?array $users) : self + public function setUsers(?array $users): self { $this->initialized['users'] = true; $this->users = $users; diff --git a/generated/Communication/Model/FeedbackSaveProps.php b/generated/Communication/Model/FeedbackSaveProps.php index 1cd6e6c..763c07d 100644 --- a/generated/Communication/Model/FeedbackSaveProps.php +++ b/generated/Communication/Model/FeedbackSaveProps.php @@ -7,8 +7,8 @@ class FeedbackSaveProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getFeedbackTitle() : ?string + public function getFeedbackTitle(): ?string { return $this->feedbackTitle; } @@ -40,7 +40,7 @@ public function getFeedbackTitle() : ?string * * @return self */ - public function setFeedbackTitle(?string $feedbackTitle) : self + public function setFeedbackTitle(?string $feedbackTitle): self { $this->initialized['feedbackTitle'] = true; $this->feedbackTitle = $feedbackTitle; @@ -51,7 +51,7 @@ public function setFeedbackTitle(?string $feedbackTitle) : self * * @return string|null */ - public function getFeedbackDescription() : ?string + public function getFeedbackDescription(): ?string { return $this->feedbackDescription; } @@ -62,7 +62,7 @@ public function getFeedbackDescription() : ?string * * @return self */ - public function setFeedbackDescription(?string $feedbackDescription) : self + public function setFeedbackDescription(?string $feedbackDescription): self { $this->initialized['feedbackDescription'] = true; $this->feedbackDescription = $feedbackDescription; diff --git a/generated/Communication/Model/Feedbacks.php b/generated/Communication/Model/Feedbacks.php index 2034be4..d93b449 100644 --- a/generated/Communication/Model/Feedbacks.php +++ b/generated/Communication/Model/Feedbacks.php @@ -7,34 +7,34 @@ class Feedbacks extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $feedbacks; /** * * - * @return array[]|null + * @return list>|null */ - public function getFeedbacks() : ?array + public function getFeedbacks(): ?array { return $this->feedbacks; } /** * * - * @param array[]|null $feedbacks + * @param list>|null $feedbacks * * @return self */ - public function setFeedbacks(?array $feedbacks) : self + public function setFeedbacks(?array $feedbacks): self { $this->initialized['feedbacks'] = true; $this->feedbacks = $feedbacks; diff --git a/generated/Communication/Model/UpdateFeedbackCommentParam.php b/generated/Communication/Model/UpdateFeedbackCommentParam.php index f248600..bcd2b02 100644 --- a/generated/Communication/Model/UpdateFeedbackCommentParam.php +++ b/generated/Communication/Model/UpdateFeedbackCommentParam.php @@ -7,8 +7,8 @@ class UpdateFeedbackCommentParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getBody() : ?string + public function getBody(): ?string { return $this->body; } @@ -34,7 +34,7 @@ public function getBody() : ?string * * @return self */ - public function setBody(?string $body) : self + public function setBody(?string $body): self { $this->initialized['body'] = true; $this->body = $body; diff --git a/generated/Communication/Model/UpdateFeedbackParam.php b/generated/Communication/Model/UpdateFeedbackParam.php index dd964c5..e666fb5 100644 --- a/generated/Communication/Model/UpdateFeedbackParam.php +++ b/generated/Communication/Model/UpdateFeedbackParam.php @@ -7,8 +7,8 @@ class UpdateFeedbackParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getFeedbackTitle() : ?string + public function getFeedbackTitle(): ?string { return $this->feedbackTitle; } @@ -40,7 +40,7 @@ public function getFeedbackTitle() : ?string * * @return self */ - public function setFeedbackTitle(?string $feedbackTitle) : self + public function setFeedbackTitle(?string $feedbackTitle): self { $this->initialized['feedbackTitle'] = true; $this->feedbackTitle = $feedbackTitle; @@ -51,7 +51,7 @@ public function setFeedbackTitle(?string $feedbackTitle) : self * * @return string|null */ - public function getFeedbackDescription() : ?string + public function getFeedbackDescription(): ?string { return $this->feedbackDescription; } @@ -62,7 +62,7 @@ public function getFeedbackDescription() : ?string * * @return self */ - public function setFeedbackDescription(?string $feedbackDescription) : self + public function setFeedbackDescription(?string $feedbackDescription): self { $this->initialized['feedbackDescription'] = true; $this->feedbackDescription = $feedbackDescription; diff --git a/generated/Communication/Model/UpdateFeedbackStatusParam.php b/generated/Communication/Model/UpdateFeedbackStatusParam.php index 23044e1..d58e49a 100644 --- a/generated/Communication/Model/UpdateFeedbackStatusParam.php +++ b/generated/Communication/Model/UpdateFeedbackStatusParam.php @@ -7,8 +7,8 @@ class UpdateFeedbackStatusParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return int|null */ - public function getStatus() : ?int + public function getStatus(): ?int { return $this->status; } @@ -34,7 +34,7 @@ public function getStatus() : ?int * * @return self */ - public function setStatus(?int $status) : self + public function setStatus(?int $status): self { $this->initialized['status'] = true; $this->status = $status; diff --git a/generated/Communication/Model/User.php b/generated/Communication/Model/User.php index 6868618..a4faee7 100644 --- a/generated/Communication/Model/User.php +++ b/generated/Communication/Model/User.php @@ -7,8 +7,8 @@ class User extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -23,7 +23,7 @@ public function isInitialized($property) : bool * * @return string|null */ - public function getUserId() : ?string + public function getUserId(): ?string { return $this->userId; } @@ -34,7 +34,7 @@ public function getUserId() : ?string * * @return self */ - public function setUserId(?string $userId) : self + public function setUserId(?string $userId): self { $this->initialized['userId'] = true; $this->userId = $userId; diff --git a/generated/Communication/Model/Users.php b/generated/Communication/Model/Users.php index 8511ab8..9164831 100644 --- a/generated/Communication/Model/Users.php +++ b/generated/Communication/Model/Users.php @@ -7,34 +7,34 @@ class Users extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var User[]|null + * @var list|null */ protected $users; /** * * - * @return User[]|null + * @return list|null */ - public function getUsers() : ?array + public function getUsers(): ?array { return $this->users; } /** * * - * @param User[]|null $users + * @param list|null $users * * @return self */ - public function setUsers(?array $users) : self + public function setUsers(?array $users): self { $this->initialized['users'] = true; $this->users = $users; diff --git a/generated/Communication/Model/Votes.php b/generated/Communication/Model/Votes.php index 84105da..3b1eaed 100644 --- a/generated/Communication/Model/Votes.php +++ b/generated/Communication/Model/Votes.php @@ -7,8 +7,8 @@ class Votes extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } @@ -21,7 +21,7 @@ public function isInitialized($property) : bool /** * * - * @var User[]|null + * @var list|null */ protected $users; /** @@ -29,7 +29,7 @@ public function isInitialized($property) : bool * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } @@ -40,7 +40,7 @@ public function getCount() : ?int * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; @@ -49,20 +49,20 @@ public function setCount(?int $count) : self /** * * - * @return User[]|null + * @return list|null */ - public function getUsers() : ?array + public function getUsers(): ?array { return $this->users; } /** * * - * @param User[]|null $users + * @param list|null $users * * @return self */ - public function setUsers(?array $users) : self + public function setUsers(?array $users): self { $this->initialized['users'] = true; $this->users = $users; diff --git a/generated/Communication/Normalizer/CommentsNormalizer.php b/generated/Communication/Normalizer/CommentsNormalizer.php index 4fdac34..8d95b45 100644 --- a/generated/Communication/Normalizer/CommentsNormalizer.php +++ b/generated/Communication/Normalizer/CommentsNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CommentsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CommentsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Comments'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Comments'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('comments', $data) && $data['comments'] !== null) { + $values = []; + foreach ($data['comments'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setComments($values); + unset($data['comments']); + } + elseif (\array_key_exists('comments', $data) && $data['comments'] === null) { + $object->setComments(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('comments', $data) && $data['comments'] !== null) { - $values = array(); - foreach ($data['comments'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getComments() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setComments($values); - unset($data['comments']); - } - elseif (\array_key_exists('comments', $data) && $data['comments'] === null) { - $object->setComments(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['comments'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CommentsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getComments() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('comments', $data) && $data['comments'] !== null) { + $values = []; + foreach ($data['comments'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setComments($values); + unset($data['comments']); + } + elseif (\array_key_exists('comments', $data) && $data['comments'] === null) { + $object->setComments(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['comments'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getComments() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['comments'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Comments' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/CreateFeedbackCommentParamNormalizer.php b/generated/Communication/Normalizer/CreateFeedbackCommentParamNormalizer.php index 82019be..ad95703 100644 --- a/generated/Communication/Normalizer/CreateFeedbackCommentParamNormalizer.php +++ b/generated/Communication/Normalizer/CreateFeedbackCommentParamNormalizer.php @@ -12,73 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateFeedbackCommentParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateFeedbackCommentParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackCommentParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackCommentParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('body', $data) && $data['body'] !== null) { + $object->setBody($data['body']); + unset($data['body']); + } + elseif (\array_key_exists('body', $data) && $data['body'] === null) { + $object->setBody(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { - $object->setUserId($data['user_id']); - unset($data['user_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['body'] = $object->getBody(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { - $object->setUserId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class => false]; } - if (\array_key_exists('body', $data) && $data['body'] !== null) { - $object->setBody($data['body']); - unset($data['body']); + } +} else { + class CreateFeedbackCommentParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class; } - elseif (\array_key_exists('body', $data) && $data['body'] === null) { - $object->setBody(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('body', $data) && $data['body'] !== null) { + $object->setBody($data['body']); + unset($data['body']); + } + elseif (\array_key_exists('body', $data) && $data['body'] === null) { + $object->setBody(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['user_id'] = $object->getUserId(); - $data['body'] = $object->getBody(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['body'] = $object->getBody(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackCommentParam' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/CreateFeedbackParamNormalizer.php b/generated/Communication/Normalizer/CreateFeedbackParamNormalizer.php index e813f11..3088278 100644 --- a/generated/Communication/Normalizer/CreateFeedbackParamNormalizer.php +++ b/generated/Communication/Normalizer/CreateFeedbackParamNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateFeedbackParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateFeedbackParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { - $object->setUserId($data['user_id']); - unset($data['user_id']); - } - elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { - $object->setUserId(null); - } - if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { - $object->setFeedbackTitle($data['feedback_title']); - unset($data['feedback_title']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['user_id'] = $object->getUserId(); + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { - $object->setFeedbackTitle(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class => false]; } - if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { - $object->setFeedbackDescription($data['feedback_description']); - unset($data['feedback_description']); + } +} else { + class CreateFeedbackParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class; } - elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { - $object->setFeedbackDescription(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['user_id'] = $object->getUserId(); - $data['feedback_title'] = $object->getFeedbackTitle(); - $data['feedback_description'] = $object->getFeedbackDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['user_id'] = $object->getUserId(); + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackParam' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/CreateVoteUserParamNormalizer.php b/generated/Communication/Normalizer/CreateVoteUserParamNormalizer.php index 604b416..ac66c12 100644 --- a/generated/Communication/Normalizer/CreateVoteUserParamNormalizer.php +++ b/generated/Communication/Normalizer/CreateVoteUserParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateVoteUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateVoteUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateVoteUserParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateVoteUserParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { - $object->setUserId($data['user_id']); - unset($data['user_id']); - } - elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { - $object->setUserId(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['user_id'] = $object->getUserId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CreateVoteUserParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['user_id'] = $object->getUserId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['user_id'] = $object->getUserId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateVoteUserParam' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/ErrorNormalizer.php b/generated/Communication/Normalizer/ErrorNormalizer.php index d3f50f0..b0a9d44 100644 --- a/generated/Communication/Normalizer/ErrorNormalizer.php +++ b/generated/Communication/Normalizer/ErrorNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/FeedbackNormalizer.php b/generated/Communication/Normalizer/FeedbackNormalizer.php index 6c2e3b2..b905c59 100644 --- a/generated/Communication/Normalizer/FeedbackNormalizer.php +++ b/generated/Communication/Normalizer/FeedbackNormalizer.php @@ -12,153 +12,301 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class FeedbackNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class FeedbackNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + if (\array_key_exists('created_at', $data) && $data['created_at'] !== null) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + elseif (\array_key_exists('created_at', $data) && $data['created_at'] === null) { + $object->setCreatedAt(null); + } + if (\array_key_exists('status', $data) && $data['status'] !== null) { + $object->setStatus($data['status']); + unset($data['status']); + } + elseif (\array_key_exists('status', $data) && $data['status'] === null) { + $object->setStatus(null); + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); + } + if (\array_key_exists('comments', $data) && $data['comments'] !== null) { + $values = []; + foreach ($data['comments'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setComments($values); + unset($data['comments']); + } + elseif (\array_key_exists('comments', $data) && $data['comments'] === null) { + $object->setComments(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values_2 = []; + foreach ($data['users'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class, 'json', $context); + } + $object->setUsers($values_2); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key_1 => $value_3) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_3; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { - $object->setUserId($data['user_id']); - unset($data['user_id']); - } - elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { - $object->setUserId(null); - } - if (\array_key_exists('created_at', $data) && $data['created_at'] !== null) { - $object->setCreatedAt($data['created_at']); - unset($data['created_at']); - } - elseif (\array_key_exists('created_at', $data) && $data['created_at'] === null) { - $object->setCreatedAt(null); - } - if (\array_key_exists('status', $data) && $data['status'] !== null) { - $object->setStatus($data['status']); - unset($data['status']); - } - elseif (\array_key_exists('status', $data) && $data['status'] === null) { - $object->setStatus(null); - } - if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { - $object->setFeedbackTitle($data['feedback_title']); - unset($data['feedback_title']); - } - elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { - $object->setFeedbackTitle(null); - } - if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { - $object->setFeedbackDescription($data['feedback_description']); - unset($data['feedback_description']); - } - elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { - $object->setFeedbackDescription(null); - } - if (\array_key_exists('comments', $data) && $data['comments'] !== null) { - $values = array(); - foreach ($data['comments'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['user_id'] = $object->getUserId(); + $data['created_at'] = $object->getCreatedAt(); + $data['status'] = $object->getStatus(); + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + $values = []; + foreach ($object->getComments() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setComments($values); - unset($data['comments']); - } - elseif (\array_key_exists('comments', $data) && $data['comments'] === null) { - $object->setComments(null); - } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); - } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); - } - if (\array_key_exists('users', $data) && $data['users'] !== null) { - $values_2 = array(); - foreach ($data['users'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User', 'json', $context); + $data['comments'] = $values; + $data['count'] = $object->getCount(); + $values_2 = []; + foreach ($object->getUsers() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } - $object->setUsers($values_2); - unset($data['users']); - } - elseif (\array_key_exists('users', $data) && $data['users'] === null) { - $object->setUsers(null); - } - foreach ($data as $key_1 => $value_3) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_3; + $data['users'] = $values_2; + foreach ($object as $key_1 => $value_3) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_3; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class FeedbackNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['user_id'] = $object->getUserId(); - $data['created_at'] = $object->getCreatedAt(); - $data['status'] = $object->getStatus(); - $data['feedback_title'] = $object->getFeedbackTitle(); - $data['feedback_description'] = $object->getFeedbackDescription(); - $values = array(); - foreach ($object->getComments() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class; } - $data['comments'] = $values; - $data['count'] = $object->getCount(); - $values_2 = array(); - foreach ($object->getUsers() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class; } - $data['users'] = $values_2; - foreach ($object as $key_1 => $value_3) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_3; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + if (\array_key_exists('created_at', $data) && $data['created_at'] !== null) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + elseif (\array_key_exists('created_at', $data) && $data['created_at'] === null) { + $object->setCreatedAt(null); + } + if (\array_key_exists('status', $data) && $data['status'] !== null) { + $object->setStatus($data['status']); + unset($data['status']); + } + elseif (\array_key_exists('status', $data) && $data['status'] === null) { + $object->setStatus(null); + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); + } + if (\array_key_exists('comments', $data) && $data['comments'] !== null) { + $values = []; + foreach ($data['comments'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setComments($values); + unset($data['comments']); } + elseif (\array_key_exists('comments', $data) && $data['comments'] === null) { + $object->setComments(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values_2 = []; + foreach ($data['users'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class, 'json', $context); + } + $object->setUsers($values_2); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key_1 => $value_3) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_3; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['user_id'] = $object->getUserId(); + $data['created_at'] = $object->getCreatedAt(); + $data['status'] = $object->getStatus(); + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + $values = []; + foreach ($object->getComments() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['comments'] = $values; + $data['count'] = $object->getCount(); + $values_2 = []; + foreach ($object->getUsers() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['users'] = $values_2; + foreach ($object as $key_1 => $value_3) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_3; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/FeedbackSavePropsNormalizer.php b/generated/Communication/Normalizer/FeedbackSavePropsNormalizer.php index 176a779..2eaa885 100644 --- a/generated/Communication/Normalizer/FeedbackSavePropsNormalizer.php +++ b/generated/Communication/Normalizer/FeedbackSavePropsNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class FeedbackSavePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class FeedbackSavePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\FeedbackSaveProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\FeedbackSaveProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { - $object->setFeedbackTitle($data['feedback_title']); - unset($data['feedback_title']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { - $object->setFeedbackTitle(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class => false]; } - if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { - $object->setFeedbackDescription($data['feedback_description']); - unset($data['feedback_description']); + } +} else { + class FeedbackSavePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class; } - elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { - $object->setFeedbackDescription(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['feedback_title'] = $object->getFeedbackTitle(); - $data['feedback_description'] = $object->getFeedbackDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\FeedbackSaveProps' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/FeedbacksNormalizer.php b/generated/Communication/Normalizer/FeedbacksNormalizer.php index 7227f65..e8baa45 100644 --- a/generated/Communication/Normalizer/FeedbacksNormalizer.php +++ b/generated/Communication/Normalizer/FeedbacksNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class FeedbacksNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class FeedbacksNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedbacks'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedbacks'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('feedbacks', $data) && $data['feedbacks'] !== null) { + $values = []; + foreach ($data['feedbacks'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setFeedbacks($values); + unset($data['feedbacks']); + } + elseif (\array_key_exists('feedbacks', $data) && $data['feedbacks'] === null) { + $object->setFeedbacks(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('feedbacks', $data) && $data['feedbacks'] !== null) { - $values = array(); - foreach ($data['feedbacks'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getFeedbacks() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setFeedbacks($values); - unset($data['feedbacks']); - } - elseif (\array_key_exists('feedbacks', $data) && $data['feedbacks'] === null) { - $object->setFeedbacks(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['feedbacks'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class FeedbacksNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getFeedbacks() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('feedbacks', $data) && $data['feedbacks'] !== null) { + $values = []; + foreach ($data['feedbacks'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setFeedbacks($values); + unset($data['feedbacks']); + } + elseif (\array_key_exists('feedbacks', $data) && $data['feedbacks'] === null) { + $object->setFeedbacks(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['feedbacks'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getFeedbacks() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['feedbacks'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedbacks' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/JaneObjectNormalizer.php b/generated/Communication/Normalizer/JaneObjectNormalizer.php index 7559e71..8a911ad 100644 --- a/generated/Communication/Normalizer/JaneObjectNormalizer.php +++ b/generated/Communication/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,163 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\FeedbackSaveProps' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\FeedbackSavePropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackParam' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\CreateFeedbackParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackParam' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\UpdateFeedbackParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\FeedbackNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\UserNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Users' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\UsersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedbacks' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\FeedbacksNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Comments' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\CommentsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Votes' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\VotesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackStatusParam' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\UpdateFeedbackStatusParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackCommentParam' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\CreateFeedbackCommentParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackCommentParam' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\UpdateFeedbackCommentParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateVoteUserParam' => 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Normalizer\\CreateVoteUserParamNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\Communication\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\FeedbackSavePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CreateFeedbackParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UpdateFeedbackParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\FeedbackNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UserNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UsersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\FeedbacksNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CommentsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\VotesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UpdateFeedbackStatusParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CreateFeedbackCommentParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UpdateFeedbackCommentParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CreateVoteUserParamNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\FeedbackSaveProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedback' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Users' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Feedbacks' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Comments' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Votes' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackStatusParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateFeedbackCommentParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackCommentParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\CreateVoteUserParam' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\FeedbackSavePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CreateFeedbackParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UpdateFeedbackParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\FeedbackNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UserNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UsersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\FeedbacksNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CommentsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\VotesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UpdateFeedbackStatusParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CreateFeedbackCommentParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\UpdateFeedbackCommentParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class => \AntiPatternInc\Saasus\Sdk\Communication\Normalizer\CreateVoteUserParamNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Communication\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\FeedbackSaveProps::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedback::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Feedbacks::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Comments::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateFeedbackCommentParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class => false, \AntiPatternInc\Saasus\Sdk\Communication\Model\CreateVoteUserParam::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/UpdateFeedbackCommentParamNormalizer.php b/generated/Communication/Normalizer/UpdateFeedbackCommentParamNormalizer.php index 3901159..4e20eae 100644 --- a/generated/Communication/Normalizer/UpdateFeedbackCommentParamNormalizer.php +++ b/generated/Communication/Normalizer/UpdateFeedbackCommentParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateFeedbackCommentParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateFeedbackCommentParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackCommentParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackCommentParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('body', $data) && $data['body'] !== null) { + $object->setBody($data['body']); + unset($data['body']); + } + elseif (\array_key_exists('body', $data) && $data['body'] === null) { + $object->setBody(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('body', $data) && $data['body'] !== null) { - $object->setBody($data['body']); - unset($data['body']); - } - elseif (\array_key_exists('body', $data) && $data['body'] === null) { - $object->setBody(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['body'] = $object->getBody(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateFeedbackCommentParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['body'] = $object->getBody(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('body', $data) && $data['body'] !== null) { + $object->setBody($data['body']); + unset($data['body']); + } + elseif (\array_key_exists('body', $data) && $data['body'] === null) { + $object->setBody(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['body'] = $object->getBody(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackCommentParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackCommentParam' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/UpdateFeedbackParamNormalizer.php b/generated/Communication/Normalizer/UpdateFeedbackParamNormalizer.php index fb80348..702083d 100644 --- a/generated/Communication/Normalizer/UpdateFeedbackParamNormalizer.php +++ b/generated/Communication/Normalizer/UpdateFeedbackParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateFeedbackParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateFeedbackParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { - $object->setFeedbackTitle($data['feedback_title']); - unset($data['feedback_title']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { - $object->setFeedbackTitle(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class => false]; } - if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { - $object->setFeedbackDescription($data['feedback_description']); - unset($data['feedback_description']); + } +} else { + class UpdateFeedbackParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class; } - elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { - $object->setFeedbackDescription(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('feedback_title', $data) && $data['feedback_title'] !== null) { + $object->setFeedbackTitle($data['feedback_title']); + unset($data['feedback_title']); + } + elseif (\array_key_exists('feedback_title', $data) && $data['feedback_title'] === null) { + $object->setFeedbackTitle(null); + } + if (\array_key_exists('feedback_description', $data) && $data['feedback_description'] !== null) { + $object->setFeedbackDescription($data['feedback_description']); + unset($data['feedback_description']); + } + elseif (\array_key_exists('feedback_description', $data) && $data['feedback_description'] === null) { + $object->setFeedbackDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['feedback_title'] = $object->getFeedbackTitle(); - $data['feedback_description'] = $object->getFeedbackDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['feedback_title'] = $object->getFeedbackTitle(); + $data['feedback_description'] = $object->getFeedbackDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackParam' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/UpdateFeedbackStatusParamNormalizer.php b/generated/Communication/Normalizer/UpdateFeedbackStatusParamNormalizer.php index a71b040..4cd3bfb 100644 --- a/generated/Communication/Normalizer/UpdateFeedbackStatusParamNormalizer.php +++ b/generated/Communication/Normalizer/UpdateFeedbackStatusParamNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateFeedbackStatusParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateFeedbackStatusParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackStatusParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackStatusParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('status', $data) && $data['status'] !== null) { + $object->setStatus($data['status']); + unset($data['status']); + } + elseif (\array_key_exists('status', $data) && $data['status'] === null) { + $object->setStatus(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('status', $data) && $data['status'] !== null) { - $object->setStatus($data['status']); - unset($data['status']); - } - elseif (\array_key_exists('status', $data) && $data['status'] === null) { - $object->setStatus(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['status'] = $object->getStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdateFeedbackStatusParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['status'] = $object->getStatus(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('status', $data) && $data['status'] !== null) { + $object->setStatus($data['status']); + unset($data['status']); + } + elseif (\array_key_exists('status', $data) && $data['status'] === null) { + $object->setStatus(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['status'] = $object->getStatus(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\UpdateFeedbackStatusParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\UpdateFeedbackStatusParam' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/UserNormalizer.php b/generated/Communication/Normalizer/UserNormalizer.php index bd6a7f1..471b4df 100644 --- a/generated/Communication/Normalizer/UserNormalizer.php +++ b/generated/Communication/Normalizer/UserNormalizer.php @@ -12,65 +12,125 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\User::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\User(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\User(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { - $object->setUserId($data['user_id']); - unset($data['user_id']); - } - elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { - $object->setUserId(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['user_id'] = $object->getUserId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\User::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UserNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['user_id'] = $object->getUserId(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\User::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\User(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('user_id', $data) && $data['user_id'] !== null) { + $object->setUserId($data['user_id']); + unset($data['user_id']); + } + elseif (\array_key_exists('user_id', $data) && $data['user_id'] === null) { + $object->setUserId(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['user_id'] = $object->getUserId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\User::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/UsersNormalizer.php b/generated/Communication/Normalizer/UsersNormalizer.php index 55717eb..3311ed6 100644 --- a/generated/Communication/Normalizer/UsersNormalizer.php +++ b/generated/Communication/Normalizer/UsersNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Users'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Users'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Users(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Users(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('users', $data) && $data['users'] !== null) { - $values = array(); - foreach ($data['users'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setUsers($values); - unset($data['users']); - } - elseif (\array_key_exists('users', $data) && $data['users'] === null) { - $object->setUsers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getUsers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class; } - $data['users'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Users(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Users::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Users' => false); } } \ No newline at end of file diff --git a/generated/Communication/Normalizer/VotesNormalizer.php b/generated/Communication/Normalizer/VotesNormalizer.php index 71b481d..ed3052e 100644 --- a/generated/Communication/Normalizer/VotesNormalizer.php +++ b/generated/Communication/Normalizer/VotesNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class VotesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VotesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Votes'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Votes'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); - } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); - } - if (\array_key_exists('users', $data) && $data['users'] !== null) { - $values = array(); - foreach ($data['users'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\User', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['count'] = $object->getCount(); + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setUsers($values); - unset($data['users']); - } - elseif (\array_key_exists('users', $data) && $data['users'] === null) { - $object->setUsers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class VotesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['count'] = $object->getCount(); - $values = array(); - foreach ($object->getUsers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Communication\Model\Votes(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { + $values = []; + foreach ($data['users'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Communication\Model\User::class, 'json', $context); + } + $object->setUsers($values); + unset($data['users']); + } + elseif (\array_key_exists('users', $data) && $data['users'] === null) { + $object->setUsers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - $data['users'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['count'] = $object->getCount(); + $values = []; + foreach ($object->getUsers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } + $data['users'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Communication\Model\Votes::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Communication\\Model\\Votes' => false); } } \ No newline at end of file diff --git a/generated/Communication/Runtime/Client/BaseEndpoint.php b/generated/Communication/Runtime/Client/BaseEndpoint.php index 190501b..d2835ec 100644 --- a/generated/Communication/Runtime/Client/BaseEndpoint.php +++ b/generated/Communication/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/Communication/Runtime/Client/Client.php b/generated/Communication/Runtime/Client/Client.php index 71024a2..b56db8a 100644 --- a/generated/Communication/Runtime/Client/Client.php +++ b/generated/Communication/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/Communication/Runtime/Client/Endpoint.php b/generated/Communication/Runtime/Client/Endpoint.php index 9660a7e..620f74d 100644 --- a/generated/Communication/Runtime/Client/Endpoint.php +++ b/generated/Communication/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/Communication/Runtime/Client/EndpointTrait.php b/generated/Communication/Runtime/Client/EndpointTrait.php index 105e958..f90a8da 100644 --- a/generated/Communication/Runtime/Client/EndpointTrait.php +++ b/generated/Communication/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/Communication/Runtime/Normalizer/CheckArray.php b/generated/Communication/Runtime/Normalizer/CheckArray.php index b85b469..de10036 100644 --- a/generated/Communication/Runtime/Normalizer/CheckArray.php +++ b/generated/Communication/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/Communication/Runtime/Normalizer/ReferenceNormalizer.php b/generated/Communication/Runtime/Normalizer/ReferenceNormalizer.php index cee4356..d51b800 100644 --- a/generated/Communication/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/Communication/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\Communication\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/Communication/Runtime/Normalizer/ValidationException.php b/generated/Communication/Runtime/Normalizer/ValidationException.php index 79edfbd..b658d45 100644 --- a/generated/Communication/Runtime/Normalizer/ValidationException.php +++ b/generated/Communication/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\Communication\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/Communication/Runtime/Normalizer/ValidatorTrait.php b/generated/Communication/Runtime/Normalizer/ValidatorTrait.php index ede946c..5bc208f 100644 --- a/generated/Communication/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/Communication/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\Communication\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); diff --git a/generated/Integration/Authentication/BearerAuthentication.php b/generated/Integration/Authentication/BearerAuthentication.php index b4d5b9e..0ecec98 100644 --- a/generated/Integration/Authentication/BearerAuthentication.php +++ b/generated/Integration/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/Integration/Client.php b/generated/Integration/Client.php index 0d524f8..92a32ca 100644 --- a/generated/Integration/Client.php +++ b/generated/Integration/Client.php @@ -25,33 +25,27 @@ public function getEventBridgeSettings(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Integration\Endpoint\GetEventBridgeSettings(), $fetch); } /** - * ホストの状態を Amazon EventBridge 経由で提供するための設定を更新します。 - - Update configuration used to provide the host state via Amazon EventBridge. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Integration\Exception\SaveEventBridgeSettingsInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update configuration used to provide the host state via Amazon EventBridge. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Integration\Exception\SaveEventBridgeSettingsInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function saveEventBridgeSettings(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Integration\Endpoint\SaveEventBridgeSettings($requestBody), $fetch); } /** - * Amazon EventBridge へイベントを送信します。 - - Send events to Amazon EventBridge. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Integration\Exception\CreateEventBridgeEventInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Send events to Amazon EventBridge. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Integration\Exception\CreateEventBridgeEventInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function createEventBridgeEvent(?\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Integration\Endpoint\CreateEventBridgeEvent($requestBody), $fetch); @@ -76,11 +70,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Integration\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/integration'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -91,11 +85,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/Integration/Endpoint/CreateEventBridgeEvent.php b/generated/Integration/Endpoint/CreateEventBridgeEvent.php index db88b6a..bcab5fe 100644 --- a/generated/Integration/Endpoint/CreateEventBridgeEvent.php +++ b/generated/Integration/Endpoint/CreateEventBridgeEvent.php @@ -5,36 +5,33 @@ class CreateEventBridgeEvent extends \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\Endpoint { /** - * Amazon EventBridge へイベントを送信します。 - - Send events to Amazon EventBridge. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam $requestBody - */ + * Send events to Amazon EventBridge. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/eventbridge/event'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\CreateEventBridgeEventInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\CreateEventBridgeEventInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Integration/Endpoint/CreateEventBridgeTestEvent.php b/generated/Integration/Endpoint/CreateEventBridgeTestEvent.php index 698878e..a4ec099 100644 --- a/generated/Integration/Endpoint/CreateEventBridgeTestEvent.php +++ b/generated/Integration/Endpoint/CreateEventBridgeTestEvent.php @@ -5,21 +5,21 @@ class CreateEventBridgeTestEvent extends \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/eventbridge/test-event'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\CreateEventBridgeTestEventInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\CreateEventBridgeTestEventInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Integration/Endpoint/DeleteEventBridgeSettings.php b/generated/Integration/Endpoint/DeleteEventBridgeSettings.php index 57f9d89..8458785 100644 --- a/generated/Integration/Endpoint/DeleteEventBridgeSettings.php +++ b/generated/Integration/Endpoint/DeleteEventBridgeSettings.php @@ -5,21 +5,21 @@ class DeleteEventBridgeSettings extends \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { return '/eventbridge/info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\DeleteEventBridgeSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\DeleteEventBridgeSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Integration/Endpoint/GetEventBridgeSettings.php b/generated/Integration/Endpoint/GetEventBridgeSettings.php index a58791a..3ac07af 100644 --- a/generated/Integration/Endpoint/GetEventBridgeSettings.php +++ b/generated/Integration/Endpoint/GetEventBridgeSettings.php @@ -5,21 +5,21 @@ class GetEventBridgeSettings extends \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/eventbridge/info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventBridgeSettings', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\GetEventBridgeSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\GetEventBridgeSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Integration/Endpoint/ReturnInternalServerError.php b/generated/Integration/Endpoint/ReturnInternalServerError.php index 7326cd9..bee40a2 100644 --- a/generated/Integration/Endpoint/ReturnInternalServerError.php +++ b/generated/Integration/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Integration/Endpoint/SaveEventBridgeSettings.php b/generated/Integration/Endpoint/SaveEventBridgeSettings.php index 57eb2b0..980b897 100644 --- a/generated/Integration/Endpoint/SaveEventBridgeSettings.php +++ b/generated/Integration/Endpoint/SaveEventBridgeSettings.php @@ -5,36 +5,33 @@ class SaveEventBridgeSettings extends \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\Endpoint { /** - * ホストの状態を Amazon EventBridge 経由で提供するための設定を更新します。 - - Update configuration used to provide the host state via Amazon EventBridge. - - * - * @param null|\stdClass $requestBody - */ + * Update configuration used to provide the host state via Amazon EventBridge. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { return '/eventbridge/info'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\SaveEventBridgeSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Integration\Exception\SaveEventBridgeSettingsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Integration\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Integration/Exception/CreateEventBridgeEventInternalServerErrorException.php b/generated/Integration/Exception/CreateEventBridgeEventInternalServerErrorException.php index b66385e..4a1002c 100644 --- a/generated/Integration/Exception/CreateEventBridgeEventInternalServerErrorException.php +++ b/generated/Integration/Exception/CreateEventBridgeEventInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Integration\Model\Error $ $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Integration\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Integration\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Integration/Exception/CreateEventBridgeTestEventInternalServerErrorException.php b/generated/Integration/Exception/CreateEventBridgeTestEventInternalServerErrorException.php index 644dcb0..79695d2 100644 --- a/generated/Integration/Exception/CreateEventBridgeTestEventInternalServerErrorException.php +++ b/generated/Integration/Exception/CreateEventBridgeTestEventInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Integration\Model\Error $ $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Integration\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Integration\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Integration/Exception/DeleteEventBridgeSettingsInternalServerErrorException.php b/generated/Integration/Exception/DeleteEventBridgeSettingsInternalServerErrorException.php index cf91d0b..ca94d64 100644 --- a/generated/Integration/Exception/DeleteEventBridgeSettingsInternalServerErrorException.php +++ b/generated/Integration/Exception/DeleteEventBridgeSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Integration\Model\Error $ $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Integration\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Integration\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Integration/Exception/GetEventBridgeSettingsInternalServerErrorException.php b/generated/Integration/Exception/GetEventBridgeSettingsInternalServerErrorException.php index 9ed8d4e..c3f229e 100644 --- a/generated/Integration/Exception/GetEventBridgeSettingsInternalServerErrorException.php +++ b/generated/Integration/Exception/GetEventBridgeSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Integration\Model\Error $ $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Integration\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Integration\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Integration/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/Integration/Exception/ReturnInternalServerErrorInternalServerErrorException.php index 40e8e93..da32e6a 100644 --- a/generated/Integration/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/Integration/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Integration\Model\Error $ $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Integration\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Integration\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Integration/Exception/SaveEventBridgeSettingsInternalServerErrorException.php b/generated/Integration/Exception/SaveEventBridgeSettingsInternalServerErrorException.php index 1235fad..5424dbc 100644 --- a/generated/Integration/Exception/SaveEventBridgeSettingsInternalServerErrorException.php +++ b/generated/Integration/Exception/SaveEventBridgeSettingsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Integration\Model\Error $ $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Integration\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Integration\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Integration/Model/CreateEventBridgeEventParam.php b/generated/Integration/Model/CreateEventBridgeEventParam.php index b03e832..a2d0f28 100644 --- a/generated/Integration/Model/CreateEventBridgeEventParam.php +++ b/generated/Integration/Model/CreateEventBridgeEventParam.php @@ -7,34 +7,34 @@ class CreateEventBridgeEventParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * イベントメッセージ(event message) + * event message * - * @var EventMessage[]|null + * @var list */ protected $eventMessages; /** - * イベントメッセージ(event message) + * event message * - * @return EventMessage[]|null + * @return list */ - public function getEventMessages() : ?array + public function getEventMessages(): array { return $this->eventMessages; } /** - * イベントメッセージ(event message) + * event message * - * @param EventMessage[]|null $eventMessages + * @param list $eventMessages * * @return self */ - public function setEventMessages(?array $eventMessages) : self + public function setEventMessages(array $eventMessages): self { $this->initialized['eventMessages'] = true; $this->eventMessages = $eventMessages; diff --git a/generated/Integration/Model/Error.php b/generated/Integration/Model/Error.php index 6dd8cdc..b5bc09e 100644 --- a/generated/Integration/Model/Error.php +++ b/generated/Integration/Model/Error.php @@ -7,40 +7,40 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * permission_denied * - * @var string|null + * @var string */ protected $type; /** * Error message * - * @var string|null + * @var string */ protected $message; /** * permission_denied * - * @return string|null + * @return string */ - public function getType() : ?string + public function getType(): string { return $this->type; } /** * permission_denied * - * @param string|null $type + * @param string $type * * @return self */ - public function setType(?string $type) : self + public function setType(string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -49,20 +49,20 @@ public function setType(?string $type) : self /** * Error message * - * @return string|null + * @return string */ - public function getMessage() : ?string + public function getMessage(): string { return $this->message; } /** * Error message * - * @param string|null $message + * @param string $message * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/Integration/Model/EventBridgeSettings.php b/generated/Integration/Model/EventBridgeSettings.php index 1464846..dbc9322 100644 --- a/generated/Integration/Model/EventBridgeSettings.php +++ b/generated/Integration/Model/EventBridgeSettings.php @@ -7,71 +7,62 @@ class EventBridgeSettings extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * AWSアカウントID(AWS Account ID) + * AWS Account ID * - * @var string|null + * @var string */ protected $awsAccountId; /** - * 中国の寧夏、北京を除く全てのAWSリージョンが選択可能です。 - - All AWS regions except Ningxia and Beijing in China can be selected. - - * - * @var string|null - */ + * All AWS regions except Ningxia and Beijing in China can be selected. + * + * @var string + */ protected $awsRegion; /** - * AWSアカウントID(AWS Account ID) + * AWS Account ID * - * @return string|null + * @return string */ - public function getAwsAccountId() : ?string + public function getAwsAccountId(): string { return $this->awsAccountId; } /** - * AWSアカウントID(AWS Account ID) + * AWS Account ID * - * @param string|null $awsAccountId + * @param string $awsAccountId * * @return self */ - public function setAwsAccountId(?string $awsAccountId) : self + public function setAwsAccountId(string $awsAccountId): self { $this->initialized['awsAccountId'] = true; $this->awsAccountId = $awsAccountId; return $this; } /** - * 中国の寧夏、北京を除く全てのAWSリージョンが選択可能です。 - - All AWS regions except Ningxia and Beijing in China can be selected. - - * - * @return string|null - */ - public function getAwsRegion() : ?string + * All AWS regions except Ningxia and Beijing in China can be selected. + * + * @return string + */ + public function getAwsRegion(): string { return $this->awsRegion; } /** - * 中国の寧夏、北京を除く全てのAWSリージョンが選択可能です。 - - All AWS regions except Ningxia and Beijing in China can be selected. - - * - * @param string|null $awsRegion - * - * @return self - */ - public function setAwsRegion(?string $awsRegion) : self + * All AWS regions except Ningxia and Beijing in China can be selected. + * + * @param string $awsRegion + * + * @return self + */ + public function setAwsRegion(string $awsRegion): self { $this->initialized['awsRegion'] = true; $this->awsRegion = $awsRegion; diff --git a/generated/Integration/Model/EventMessage.php b/generated/Integration/Model/EventMessage.php index 7c30585..4f4b507 100644 --- a/generated/Integration/Model/EventMessage.php +++ b/generated/Integration/Model/EventMessage.php @@ -7,90 +7,90 @@ class EventMessage extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * イベントタイプ(event type) + * event type * - * @var string|null + * @var string */ protected $eventType; /** - * 詳細イベントタイプ(detailed event type) + * detailed event type * - * @var string|null + * @var string */ protected $eventDetailType; /** - * イベントメッセージ(event message) + * event message * - * @var string|null + * @var string */ protected $message; /** - * イベントタイプ(event type) + * event type * - * @return string|null + * @return string */ - public function getEventType() : ?string + public function getEventType(): string { return $this->eventType; } /** - * イベントタイプ(event type) + * event type * - * @param string|null $eventType + * @param string $eventType * * @return self */ - public function setEventType(?string $eventType) : self + public function setEventType(string $eventType): self { $this->initialized['eventType'] = true; $this->eventType = $eventType; return $this; } /** - * 詳細イベントタイプ(detailed event type) + * detailed event type * - * @return string|null + * @return string */ - public function getEventDetailType() : ?string + public function getEventDetailType(): string { return $this->eventDetailType; } /** - * 詳細イベントタイプ(detailed event type) + * detailed event type * - * @param string|null $eventDetailType + * @param string $eventDetailType * * @return self */ - public function setEventDetailType(?string $eventDetailType) : self + public function setEventDetailType(string $eventDetailType): self { $this->initialized['eventDetailType'] = true; $this->eventDetailType = $eventDetailType; return $this; } /** - * イベントメッセージ(event message) + * event message * - * @return string|null + * @return string */ - public function getMessage() : ?string + public function getMessage(): string { return $this->message; } /** - * イベントメッセージ(event message) + * event message * - * @param string|null $message + * @param string $message * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/Integration/Normalizer/CreateEventBridgeEventParamNormalizer.php b/generated/Integration/Normalizer/CreateEventBridgeEventParamNormalizer.php index 9eef8e7..afcab85 100644 --- a/generated/Integration/Normalizer/CreateEventBridgeEventParamNormalizer.php +++ b/generated/Integration/Normalizer/CreateEventBridgeEventParamNormalizer.php @@ -12,73 +12,135 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class CreateEventBridgeEventParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class CreateEventBridgeEventParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\CreateEventBridgeEventParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\CreateEventBridgeEventParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('event_messages', $data)) { + $values = []; + foreach ($data['event_messages'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class, 'json', $context); + } + $object->setEventMessages($values); + unset($data['event_messages']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('event_messages', $data) && $data['event_messages'] !== null) { - $values = array(); - foreach ($data['event_messages'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventMessage', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getEventMessages() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setEventMessages($values); - unset($data['event_messages']); - } - elseif (\array_key_exists('event_messages', $data) && $data['event_messages'] === null) { - $object->setEventMessages(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['event_messages'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class CreateEventBridgeEventParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getEventMessages() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class; } - $data['event_messages'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('event_messages', $data)) { + $values = []; + foreach ($data['event_messages'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class, 'json', $context); + } + $object->setEventMessages($values); + unset($data['event_messages']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getEventMessages() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['event_messages'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\CreateEventBridgeEventParam' => false); } } \ No newline at end of file diff --git a/generated/Integration/Normalizer/ErrorNormalizer.php b/generated/Integration/Normalizer/ErrorNormalizer.php index e55c321..8db963c 100644 --- a/generated/Integration/Normalizer/ErrorNormalizer.php +++ b/generated/Integration/Normalizer/ErrorNormalizer.php @@ -12,73 +12,129 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('message', $data)) { + $object->setMessage($data['message']); + unset($data['message']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data)) { + $object->setType($data['type']); + unset($data['type']); + } + if (\array_key_exists('message', $data)) { + $object->setMessage($data['message']); + unset($data['message']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/Integration/Normalizer/EventBridgeSettingsNormalizer.php b/generated/Integration/Normalizer/EventBridgeSettingsNormalizer.php index 8820cc4..6bdbe33 100644 --- a/generated/Integration/Normalizer/EventBridgeSettingsNormalizer.php +++ b/generated/Integration/Normalizer/EventBridgeSettingsNormalizer.php @@ -12,73 +12,129 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class EventBridgeSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class EventBridgeSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventBridgeSettings'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventBridgeSettings'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('aws_account_id', $data)) { + $object->setAwsAccountId($data['aws_account_id']); + unset($data['aws_account_id']); + } + if (\array_key_exists('aws_region', $data)) { + $object->setAwsRegion($data['aws_region']); + unset($data['aws_region']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('aws_account_id', $data) && $data['aws_account_id'] !== null) { - $object->setAwsAccountId($data['aws_account_id']); - unset($data['aws_account_id']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['aws_account_id'] = $object->getAwsAccountId(); + $data['aws_region'] = $object->getAwsRegion(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('aws_account_id', $data) && $data['aws_account_id'] === null) { - $object->setAwsAccountId(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class => false]; } - if (\array_key_exists('aws_region', $data) && $data['aws_region'] !== null) { - $object->setAwsRegion($data['aws_region']); - unset($data['aws_region']); + } +} else { + class EventBridgeSettingsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class; } - elseif (\array_key_exists('aws_region', $data) && $data['aws_region'] === null) { - $object->setAwsRegion(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('aws_account_id', $data)) { + $object->setAwsAccountId($data['aws_account_id']); + unset($data['aws_account_id']); + } + if (\array_key_exists('aws_region', $data)) { + $object->setAwsRegion($data['aws_region']); + unset($data['aws_region']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['aws_account_id'] = $object->getAwsAccountId(); - $data['aws_region'] = $object->getAwsRegion(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['aws_account_id'] = $object->getAwsAccountId(); + $data['aws_region'] = $object->getAwsRegion(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventBridgeSettings' => false); } } \ No newline at end of file diff --git a/generated/Integration/Normalizer/EventMessageNormalizer.php b/generated/Integration/Normalizer/EventMessageNormalizer.php index e173932..8978b9d 100644 --- a/generated/Integration/Normalizer/EventMessageNormalizer.php +++ b/generated/Integration/Normalizer/EventMessageNormalizer.php @@ -12,81 +12,139 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class EventMessageNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class EventMessageNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventMessage'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventMessage'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('event_type', $data)) { + $object->setEventType($data['event_type']); + unset($data['event_type']); + } + if (\array_key_exists('event_detail_type', $data)) { + $object->setEventDetailType($data['event_detail_type']); + unset($data['event_detail_type']); + } + if (\array_key_exists('message', $data)) { + $object->setMessage($data['message']); + unset($data['message']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('event_type', $data) && $data['event_type'] !== null) { - $object->setEventType($data['event_type']); - unset($data['event_type']); - } - elseif (\array_key_exists('event_type', $data) && $data['event_type'] === null) { - $object->setEventType(null); - } - if (\array_key_exists('event_detail_type', $data) && $data['event_detail_type'] !== null) { - $object->setEventDetailType($data['event_detail_type']); - unset($data['event_detail_type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['event_type'] = $object->getEventType(); + $data['event_detail_type'] = $object->getEventDetailType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('event_detail_type', $data) && $data['event_detail_type'] === null) { - $object->setEventDetailType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class EventMessageNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('event_type', $data)) { + $object->setEventType($data['event_type']); + unset($data['event_type']); + } + if (\array_key_exists('event_detail_type', $data)) { + $object->setEventDetailType($data['event_detail_type']); + unset($data['event_detail_type']); + } + if (\array_key_exists('message', $data)) { + $object->setMessage($data['message']); + unset($data['message']); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['event_type'] = $object->getEventType(); - $data['event_detail_type'] = $object->getEventDetailType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['event_type'] = $object->getEventType(); + $data['event_detail_type'] = $object->getEventDetailType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventMessage' => false); } } \ No newline at end of file diff --git a/generated/Integration/Normalizer/JaneObjectNormalizer.php b/generated/Integration/Normalizer/JaneObjectNormalizer.php index c72fb81..dd06a8b 100644 --- a/generated/Integration/Normalizer/JaneObjectNormalizer.php +++ b/generated/Integration/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,123 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventBridgeSettings' => 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Normalizer\\EventBridgeSettingsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\CreateEventBridgeEventParam' => 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Normalizer\\CreateEventBridgeEventParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventMessage' => 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Normalizer\\EventMessageNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\Integration\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\EventBridgeSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\CreateEventBridgeEventParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\EventMessageNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class => false, \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class => false, \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventBridgeSettings' => false, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\CreateEventBridgeEventParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Integration\\Model\\EventMessage' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\EventBridgeSettingsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\CreateEventBridgeEventParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class => \AntiPatternInc\Saasus\Sdk\Integration\Normalizer\EventMessageNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Integration\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Integration\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Integration\Model\EventBridgeSettings::class => false, \AntiPatternInc\Saasus\Sdk\Integration\Model\CreateEventBridgeEventParam::class => false, \AntiPatternInc\Saasus\Sdk\Integration\Model\EventMessage::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/Integration/Runtime/Client/BaseEndpoint.php b/generated/Integration/Runtime/Client/BaseEndpoint.php index 9a84f0a..c82ba50 100644 --- a/generated/Integration/Runtime/Client/BaseEndpoint.php +++ b/generated/Integration/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/Integration/Runtime/Client/Client.php b/generated/Integration/Runtime/Client/Client.php index 07d1f6b..ac6e8e6 100644 --- a/generated/Integration/Runtime/Client/Client.php +++ b/generated/Integration/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/Integration/Runtime/Client/Endpoint.php b/generated/Integration/Runtime/Client/Endpoint.php index 2ddf9b8..4d45ac6 100644 --- a/generated/Integration/Runtime/Client/Endpoint.php +++ b/generated/Integration/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/Integration/Runtime/Client/EndpointTrait.php b/generated/Integration/Runtime/Client/EndpointTrait.php index 81f3a29..444c028 100644 --- a/generated/Integration/Runtime/Client/EndpointTrait.php +++ b/generated/Integration/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/Integration/Runtime/Normalizer/CheckArray.php b/generated/Integration/Runtime/Normalizer/CheckArray.php index 233b2d8..d6ed9d9 100644 --- a/generated/Integration/Runtime/Normalizer/CheckArray.php +++ b/generated/Integration/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/Integration/Runtime/Normalizer/ReferenceNormalizer.php b/generated/Integration/Runtime/Normalizer/ReferenceNormalizer.php index 5f7f2a2..82269f8 100644 --- a/generated/Integration/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/Integration/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\Integration\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/Integration/Runtime/Normalizer/ValidationException.php b/generated/Integration/Runtime/Normalizer/ValidationException.php index 3c7d474..48386ba 100644 --- a/generated/Integration/Runtime/Normalizer/ValidationException.php +++ b/generated/Integration/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\Integration\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/Integration/Runtime/Normalizer/ValidatorTrait.php b/generated/Integration/Runtime/Normalizer/ValidatorTrait.php index e3700fe..76ae535 100644 --- a/generated/Integration/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/Integration/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\Integration\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); diff --git a/generated/Pricing/Authentication/BearerAuthentication.php b/generated/Pricing/Authentication/BearerAuthentication.php index bcc4fa1..1b88f45 100644 --- a/generated/Pricing/Authentication/BearerAuthentication.php +++ b/generated/Pricing/Authentication/BearerAuthentication.php @@ -9,13 +9,13 @@ public function __construct(string $token) { $this->{'token'} = $token; } - public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface + public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { $header = sprintf('Bearer %s', $this->{'token'}); $request = $request->withHeader('Authorization', $header); return $request; } - public function getScope() : string + public function getScope(): string { return 'Bearer'; } diff --git a/generated/Pricing/Client.php b/generated/Pricing/Client.php index 7b908de..73c4945 100644 --- a/generated/Pricing/Client.php +++ b/generated/Pricing/Client.php @@ -15,66 +15,54 @@ public function getPricingUnits(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetPricingUnits(), $fetch); } /** - * プライシングユニットを作成します。 - - Create a pricing unit. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingUnitInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Create a pricing unit. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingUnitInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function createPricingUnit(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\CreatePricingUnit($requestBody), $fetch); } /** - * プライシングユニットを削除します。 - - Delete a pricing unit. - - * - * @param string $pricingUnitId ユニットID(unit id) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingUnitInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete a pricing unit. + * + * @param string $pricingUnitId Unit ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingUnitInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deletePricingUnit(string $pricingUnitId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\DeletePricingUnit($pricingUnitId), $fetch); } /** - * プライシングユニットを取得します。 - - Get a pricing unit. - - * - * @param string $pricingUnitId ユニットID(unit id) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingUnitInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Get a pricing unit. + * + * @param string $pricingUnitId Unit ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingUnitInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function getPricingUnit(string $pricingUnitId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetPricingUnit($pricingUnitId), $fetch); } /** - * プライシングユニット情報を更新します。 - - Update pricing unit. - - * - * @param string $pricingUnitId ユニットID(unit id) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingUnitInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update pricing unit. + * + * @param string $pricingUnitId Unit ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingUnitInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updatePricingUnit(string $pricingUnitId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdatePricingUnit($pricingUnitId, $requestBody), $fetch); @@ -90,67 +78,55 @@ public function getPricingMenus(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetPricingMenus(), $fetch); } /** - * プライシング機能メニューを作成します。 - - Create a pricing feature menu. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingMenuInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu|\Psr\Http\Message\ResponseInterface - */ + * Create a pricing feature menu. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingMenuInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu|\Psr\Http\Message\ResponseInterface + */ public function createPricingMenu(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\CreatePricingMenu($requestBody), $fetch); } /** - * プライシング機能メニューを削除します。 - - Delete pricing feature menu. - - * - * @param string $menuId メニューID(menu ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete pricing feature menu. + * + * @param string $menuId Menu ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deletePricingMenu(string $menuId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\DeletePricingMenu($menuId), $fetch); } /** - * プライシング機能メニューを取得します。 - - Get a pricing feature menu. - - * - * @param string $menuId メニューID(menu ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingMenuInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu|\Psr\Http\Message\ResponseInterface - */ + * Get a pricing feature menu. + * + * @param string $menuId Menu ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingMenuInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu|\Psr\Http\Message\ResponseInterface + */ public function getPricingMenu(string $menuId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetPricingMenu($menuId), $fetch); } /** - * プライシング機能メニューを更新します。 - - Update pricing feature menu. - - * - * @param string $menuId メニューID(menu ID) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingMenuInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update pricing feature menu. + * + * @param string $menuId Menu ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingMenuInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updatePricingMenu(string $menuId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdatePricingMenu($menuId, $requestBody), $fetch); @@ -166,83 +142,68 @@ public function getPricingPlans(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetPricingPlans(), $fetch); } /** - * 料金プランを作成します。 - - Create pricing plan. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingPlanInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan|\Psr\Http\Message\ResponseInterface - */ + * Create a pricing plan. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingPlanInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan|\Psr\Http\Message\ResponseInterface + */ public function createPricingPlan(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\CreatePricingPlan($requestBody), $fetch); } /** - * 料金プランを削除します。 - - Delete pricing plan. - - * - * @param string $planId 料金プランID(price plan ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete a pricing plan. + * + * @param string $planId Pricing Plan ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deletePricingPlan(string $planId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\DeletePricingPlan($planId), $fetch); } /** - * 料金プランを取得します。 - - Get pricing plan. - - * - * @param string $planId 料金プランID(price plan ID) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingPlanInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan|\Psr\Http\Message\ResponseInterface - */ + * Get a pricing plan. + * + * @param string $planId Pricing Plan ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingPlanInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan|\Psr\Http\Message\ResponseInterface + */ public function getPricingPlan(string $planId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetPricingPlan($planId), $fetch); } /** - * 料金プランを更新します。 - - Update pricing plan. - - * - * @param string $planId 料金プランID(price plan ID) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlanInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update a pricing plan. + * + * @param string $planId Pricing Plan ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlanInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updatePricingPlan(string $planId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdatePricingPlan($planId, $requestBody), $fetch); } /** - * 料金プランと配下のメニュー・ユニットを使用済みに更新します。 - - Update price plan and feature menu/pricing unit to used. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlansUsedInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update price plan and feature menu/pricing unit to used. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlansUsedInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updatePricingPlansUsed(?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdatePricingPlansUsed($requestBody), $fetch); @@ -268,160 +229,133 @@ public function deleteStripePlan(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\DeleteStripePlan(), $fetch); } /** - * 指定した日付のメータリングユニットカウントを取得します。 - - Gets the metering unit count for specific date. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param string $date 日(date) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount|\Psr\Http\Message\ResponseInterface - */ + * Gets the metering unit count for a specific date. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param string $date Date + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount|\Psr\Http\Message\ResponseInterface + */ public function getMeteringUnitDateCountByTenantIdAndUnitNameAndDate(string $tenantId, string $meteringUnitName, string $date, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate($tenantId, $meteringUnitName, $date), $fetch); } /** - * 指定したタイムスタンプのメータリングユニットカウントを削除します。 - - Deletes metering unit count for the specified timestamp. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param int $timestamp タイムスタンプ(timestamp) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitTimestampCountInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Deletes metering unit count for the specified timestamp. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param int $timestamp Timestamp + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitTimestampCountInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteMeteringUnitTimestampCount(string $tenantId, string $meteringUnitName, int $timestamp, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\DeleteMeteringUnitTimestampCount($tenantId, $meteringUnitName, $timestamp), $fetch); } /** - * 指定したタイムスタンプのメータリングユニットカウントを更新します。 - - Update metering unit count for the specified timestamp. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param int $timestamp タイムスタンプ(timestamp) - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount|\Psr\Http\Message\ResponseInterface - */ + * Update metering unit count for the specified timestamp. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param int $timestamp Timestamp + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount|\Psr\Http\Message\ResponseInterface + */ public function updateMeteringUnitTimestampCount(string $tenantId, string $meteringUnitName, int $timestamp, ?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdateMeteringUnitTimestampCount($tenantId, $meteringUnitName, $timestamp, $requestBody), $fetch); } /** - * 当日のメータリングユニットカウントを取得します。 - - Get the metering unit count for the current day. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount|\Psr\Http\Message\ResponseInterface - */ + * Get the metering unit count for the current day. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount|\Psr\Http\Message\ResponseInterface + */ public function getMeteringUnitDateCountByTenantIdAndUnitNameToday(string $tenantId, string $meteringUnitName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitDateCountByTenantIdAndUnitNameToday($tenantId, $meteringUnitName), $fetch); } /** - * 現在時刻のメータリングユニットカウントを更新します。 - - Update the metering unit count for the current time. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountNowInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount|\Psr\Http\Message\ResponseInterface - */ + * Update the metering unit count for the current time. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountNowInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount|\Psr\Http\Message\ResponseInterface + */ public function updateMeteringUnitTimestampCountNow(string $tenantId, string $meteringUnitName, ?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdateMeteringUnitTimestampCountNow($tenantId, $meteringUnitName, $requestBody), $fetch); } /** - * 当月のメータリングユニットカウントを取得します。 - - Get the metering unit count for the current month. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount|\Psr\Http\Message\ResponseInterface - */ + * Get the metering unit count for the current month. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount|\Psr\Http\Message\ResponseInterface + */ public function getMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth(string $tenantId, string $meteringUnitName, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth($tenantId, $meteringUnitName), $fetch); } /** - * 指定した月のメータリングユニットカウントを取得します。 - - Gets the metering unit count for the specified month. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param string $month 月(month) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount|\Psr\Http\Message\ResponseInterface - */ + * Gets the metering unit count for the specified month. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param string $month Month + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount|\Psr\Http\Message\ResponseInterface + */ public function getMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth(string $tenantId, string $meteringUnitName, string $month, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth($tenantId, $meteringUnitName, $month), $fetch); } /** - * 指定した日の全メータリングユニットカウントを取得します。 - - Gets the total metering unit count for the specified date. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $date 日(date) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts|\Psr\Http\Message\ResponseInterface - */ + * Gets the total metering unit count for the specified date. + * + * @param string $tenantId Tenant ID + * @param string $date Date + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts|\Psr\Http\Message\ResponseInterface + */ public function getMeteringUnitDateCountsByTenantIdAndDate(string $tenantId, string $date, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitDateCountsByTenantIdAndDate($tenantId, $date), $fetch); } /** - * 指定した月の全メータリングユニットカウントを取得します。 - - Gets all metering unit counts for the specified month. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $month 月(month) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts|\Psr\Http\Message\ResponseInterface - */ + * Gets all metering unit counts for the specified month. + * + * @param string $tenantId Tenant ID + * @param string $month Month + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts|\Psr\Http\Message\ResponseInterface + */ public function getMeteringUnitMonthCountsByTenantIdAndMonth(string $tenantId, string $month, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitMonthCountsByTenantIdAndMonth($tenantId, $month), $fetch); @@ -447,58 +381,49 @@ public function getTaxRates(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetTaxRates(), $fetch); } /** - * 税率を作成します。 - - Creates a tax rate. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate|\Psr\Http\Message\ResponseInterface - */ + * Creates a tax rate. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate|\Psr\Http\Message\ResponseInterface + */ public function createTaxRate(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\CreateTaxRate($requestBody), $fetch); } /** - * 税率を更新します。 - - Update tax rate. - - * - * @param string $taxRateId 税率ID(tax rate ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update tax rate. + * + * @param string $taxRateId Tax Rate ID + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateTaxRate(string $taxRateId, ?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdateTaxRate($taxRateId, $requestBody), $fetch); } /** - * 指定した日時期間のメータリングユニットカウントを取得します。 - - Obtain metering unit counts for a specified date/time period. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param array $queryParameters { - * @var int $start_timestamp 開始日時(timestamp) - * @var int $end_timestamp 終了日時(timestamp) - * } - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts|\Psr\Http\Message\ResponseInterface - */ - public function getMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod(string $tenantId, string $meteringUnitName, array $queryParameters = array(), string $fetch = self::FETCH_OBJECT) + * Obtain metering unit counts for a specified date/time period. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param array $queryParameters { + * @var int $start_timestamp Start Date-Time + * @var int $end_timestamp End Date-Time + * } + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts|\Psr\Http\Message\ResponseInterface + */ + public function getMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod(string $tenantId, string $meteringUnitName, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod($tenantId, $meteringUnitName, $queryParameters), $fetch); } @@ -513,53 +438,44 @@ public function getMeteringUnits(string $fetch = self::FETCH_OBJECT) return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\GetMeteringUnits(), $fetch); } /** - * メータリングユニットを作成します。 - - Create a metering unit. - - * - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitInternalServerErrorException - * - * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit|\Psr\Http\Message\ResponseInterface - */ + * Create a metering unit. + * + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitInternalServerErrorException + * + * @return null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit|\Psr\Http\Message\ResponseInterface + */ public function createMeteringUnit(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\CreateMeteringUnit($requestBody), $fetch); } /** - * メータリングユニットを削除します。 - - Delete metering unit. - - * - * @param string $meteringUnitId メータリングユニットID(metering unit id) - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDNotFoundException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Delete metering unit. + * + * @param string $meteringUnitId Metering Unit ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDNotFoundException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function deleteMeteringUnitByID(string $meteringUnitId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\DeleteMeteringUnitByID($meteringUnitId), $fetch); } /** - * メータリングユニットを更新します。 - - Update metering unit. - - * - * @param string $meteringUnitId メータリングユニットID(metering unit id) - * @param null|\stdClass $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDBadRequestException - * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDInternalServerErrorException - * - * @return null|\Psr\Http\Message\ResponseInterface - */ + * Update metering unit. + * + * @param string $meteringUnitId Metering Unit ID + * @param null|\stdClass $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDBadRequestException + * @throws \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDInternalServerErrorException + * + * @return null|\Psr\Http\Message\ResponseInterface + */ public function updateMeteringUnitByID(string $meteringUnitId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\UpdateMeteringUnitByID($meteringUnitId, $requestBody), $fetch); @@ -574,11 +490,11 @@ public function returnInternalServerError(string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \AntiPatternInc\Saasus\Sdk\Pricing\Endpoint\ReturnInternalServerError(), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = array(), array $additionalNormalizers = array()) + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) { if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); - $plugins = array(); + $plugins = []; $uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('https://api.saasus.io/v1/pricing'); $plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); @@ -589,11 +505,11 @@ public static function create($httpClient = null, array $additionalPlugins = arr } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = array(new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\JaneObjectNormalizer()); + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, array(new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(array('json_decode_associative' => true))))); + $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/CreateMeteringUnit.php b/generated/Pricing/Endpoint/CreateMeteringUnit.php index e21f5a7..5becae1 100644 --- a/generated/Pricing/Endpoint/CreateMeteringUnit.php +++ b/generated/Pricing/Endpoint/CreateMeteringUnit.php @@ -5,36 +5,33 @@ class CreateMeteringUnit extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { /** - * メータリングユニットを作成します。 - - Create a metering unit. - - * - * @param null|\stdClass $requestBody - */ + * Create a metering unit. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/metering/units'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,17 +46,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnit', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit', 'json'); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateMeteringUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/CreatePricingMenu.php b/generated/Pricing/Endpoint/CreatePricingMenu.php index 8227526..66e9066 100644 --- a/generated/Pricing/Endpoint/CreatePricingMenu.php +++ b/generated/Pricing/Endpoint/CreatePricingMenu.php @@ -5,36 +5,33 @@ class CreatePricingMenu extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { /** - * プライシング機能メニューを作成します。 - - Create a pricing feature menu. - - * - * @param null|\stdClass $requestBody - */ + * Create a pricing feature menu. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/menus'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -48,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/CreatePricingPlan.php b/generated/Pricing/Endpoint/CreatePricingPlan.php index e8160bf..a4a320e 100644 --- a/generated/Pricing/Endpoint/CreatePricingPlan.php +++ b/generated/Pricing/Endpoint/CreatePricingPlan.php @@ -5,36 +5,33 @@ class CreatePricingPlan extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { /** - * 料金プランを作成します。 - - Create pricing plan. - - * - * @param null|\stdClass $requestBody - */ + * Create a pricing plan. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/plans'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -48,14 +45,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/CreatePricingUnit.php b/generated/Pricing/Endpoint/CreatePricingUnit.php index c296cd1..c8f6e24 100644 --- a/generated/Pricing/Endpoint/CreatePricingUnit.php +++ b/generated/Pricing/Endpoint/CreatePricingUnit.php @@ -5,36 +5,33 @@ class CreatePricingUnit extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { /** - * プライシングユニットを作成します。 - - Create a pricing unit. - - * - * @param null|\stdClass $requestBody - */ + * Create a pricing unit. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/units'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreatePricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/CreateTaxRate.php b/generated/Pricing/Endpoint/CreateTaxRate.php index 1629951..66061b5 100644 --- a/generated/Pricing/Endpoint/CreateTaxRate.php +++ b/generated/Pricing/Endpoint/CreateTaxRate.php @@ -5,36 +5,33 @@ class CreateTaxRate extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { /** - * 税率を作成します。 - - Creates a tax rate. - - * - * @param null|\stdClass $requestBody - */ + * Creates a tax rate. + * + * @param null|\stdClass $requestBody + */ public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'POST'; } - public function getUri() : string + public function getUri(): string { return '/tax-rates'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,17 +46,17 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRate', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate', 'json'); } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\CreateTaxRateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates.php b/generated/Pricing/Endpoint/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates.php index 34240d4..e651a68 100644 --- a/generated/Pricing/Endpoint/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates.php +++ b/generated/Pricing/Endpoint/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates.php @@ -5,21 +5,21 @@ class DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { return '/plans-initialization'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeleteMeteringUnitByID.php b/generated/Pricing/Endpoint/DeleteMeteringUnitByID.php index a82f599..b68162b 100644 --- a/generated/Pricing/Endpoint/DeleteMeteringUnitByID.php +++ b/generated/Pricing/Endpoint/DeleteMeteringUnitByID.php @@ -6,33 +6,30 @@ class DeleteMeteringUnitByID extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\ { protected $metering_unit_id; /** - * メータリングユニットを削除します。 - - Delete metering unit. - - * - * @param string $meteringUnitId メータリングユニットID(metering unit id) - */ + * Delete metering unit. + * + * @param string $meteringUnitId Metering Unit ID + */ public function __construct(string $meteringUnitId) { $this->metering_unit_id = $meteringUnitId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{metering_unit_id}'), array($this->metering_unit_id), '/metering/units/{metering_unit_id}'); + return str_replace(['{metering_unit_id}'], [$this->metering_unit_id], '/metering/units/{metering_unit_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitByIDInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeleteMeteringUnitTimestampCount.php b/generated/Pricing/Endpoint/DeleteMeteringUnitTimestampCount.php index 2bc5df0..a4eafd3 100644 --- a/generated/Pricing/Endpoint/DeleteMeteringUnitTimestampCount.php +++ b/generated/Pricing/Endpoint/DeleteMeteringUnitTimestampCount.php @@ -8,15 +8,12 @@ class DeleteMeteringUnitTimestampCount extends \AntiPatternInc\Saasus\Sdk\Pricin protected $metering_unit_name; protected $timestamp; /** - * 指定したタイムスタンプのメータリングユニットカウントを削除します。 - - Deletes metering unit count for the specified timestamp. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param int $timestamp タイムスタンプ(timestamp) - */ + * Deletes metering unit count for the specified timestamp. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param int $timestamp Timestamp + */ public function __construct(string $tenantId, string $meteringUnitName, int $timestamp) { $this->tenant_id = $tenantId; @@ -24,21 +21,21 @@ public function __construct(string $tenantId, string $meteringUnitName, int $tim $this->timestamp = $timestamp; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}', '{timestamp}'), array($this->tenant_id, $this->metering_unit_name, $this->timestamp), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/timestamp/{timestamp}'); + return str_replace(['{tenant_id}', '{metering_unit_name}', '{timestamp}'], [$this->tenant_id, $this->metering_unit_name, $this->timestamp], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/timestamp/{timestamp}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,11 +52,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitTimestampCountInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteMeteringUnitTimestampCountInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeletePricingMenu.php b/generated/Pricing/Endpoint/DeletePricingMenu.php index 0c1d158..2b373df 100644 --- a/generated/Pricing/Endpoint/DeletePricingMenu.php +++ b/generated/Pricing/Endpoint/DeletePricingMenu.php @@ -6,33 +6,30 @@ class DeletePricingMenu extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Clien { protected $menu_id; /** - * プライシング機能メニューを削除します。 - - Delete pricing feature menu. - - * - * @param string $menuId メニューID(menu ID) - */ + * Delete pricing feature menu. + * + * @param string $menuId Menu ID + */ public function __construct(string $menuId) { $this->menu_id = $menuId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{menu_id}'), array($this->menu_id), '/menus/{menu_id}'); + return str_replace(['{menu_id}'], [$this->menu_id], '/menus/{menu_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeletePricingPlan.php b/generated/Pricing/Endpoint/DeletePricingPlan.php index 95981df..9dcc912 100644 --- a/generated/Pricing/Endpoint/DeletePricingPlan.php +++ b/generated/Pricing/Endpoint/DeletePricingPlan.php @@ -6,33 +6,30 @@ class DeletePricingPlan extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Clien { protected $plan_id; /** - * 料金プランを削除します。 - - Delete pricing plan. - - * - * @param string $planId 料金プランID(price plan ID) - */ + * Delete a pricing plan. + * + * @param string $planId Pricing Plan ID + */ public function __construct(string $planId) { $this->plan_id = $planId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{plan_id}'), array($this->plan_id), '/plans/{plan_id}'); + return str_replace(['{plan_id}'], [$this->plan_id], '/plans/{plan_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -50,14 +47,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanNotFoundException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanNotFoundException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeletePricingUnit.php b/generated/Pricing/Endpoint/DeletePricingUnit.php index 4a4d6a2..740a78a 100644 --- a/generated/Pricing/Endpoint/DeletePricingUnit.php +++ b/generated/Pricing/Endpoint/DeletePricingUnit.php @@ -6,33 +6,30 @@ class DeletePricingUnit extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Clien { protected $pricing_unit_id; /** - * プライシングユニットを削除します。 - - Delete a pricing unit. - - * - * @param string $pricingUnitId ユニットID(unit id) - */ + * Delete a pricing unit. + * + * @param string $pricingUnitId Unit ID + */ public function __construct(string $pricingUnitId) { $this->pricing_unit_id = $pricingUnitId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{pricing_unit_id}'), array($this->pricing_unit_id), '/units/{pricing_unit_id}'); + return str_replace(['{pricing_unit_id}'], [$this->pricing_unit_id], '/units/{pricing_unit_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,11 +46,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeletePricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/DeleteStripePlan.php b/generated/Pricing/Endpoint/DeleteStripePlan.php index 85c4f01..86bdd13 100644 --- a/generated/Pricing/Endpoint/DeleteStripePlan.php +++ b/generated/Pricing/Endpoint/DeleteStripePlan.php @@ -5,21 +5,21 @@ class DeleteStripePlan extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'DELETE'; } - public function getUri() : string + public function getUri(): string { return '/stripe'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteStripePlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\DeleteStripePlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate.php b/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate.php index 32b21b1..ea7e354 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate.php @@ -8,15 +8,12 @@ class GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate extends \AntiPatternI protected $metering_unit_name; protected $date; /** - * 指定した日付のメータリングユニットカウントを取得します。 - - Gets the metering unit count for specific date. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param string $date 日(date) - */ + * Gets the metering unit count for a specific date. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param string $date Date + */ public function __construct(string $tenantId, string $meteringUnitName, string $date) { $this->tenant_id = $tenantId; @@ -24,21 +21,21 @@ public function __construct(string $tenantId, string $meteringUnitName, string $ $this->date = $date; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}', '{date}'), array($this->tenant_id, $this->metering_unit_name, $this->date), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/date/{date}'); + return str_replace(['{tenant_id}', '{metering_unit_name}', '{date}'], [$this->tenant_id, $this->metering_unit_name, $this->date], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/date/{date}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +49,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod.php b/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod.php index 58f1f57..6832dc3 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod.php @@ -7,49 +7,46 @@ class GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod extends \AntiPa protected $tenant_id; protected $metering_unit_name; /** - * 指定した日時期間のメータリングユニットカウントを取得します。 - - Obtain metering unit counts for a specified date/time period. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param array $queryParameters { - * @var int $start_timestamp 開始日時(timestamp) - * @var int $end_timestamp 終了日時(timestamp) - * } - */ - public function __construct(string $tenantId, string $meteringUnitName, array $queryParameters = array()) + * Obtain metering unit counts for a specified date/time period. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param array $queryParameters { + * @var int $start_timestamp Start Date-Time + * @var int $end_timestamp End Date-Time + * } + */ + public function __construct(string $tenantId, string $meteringUnitName, array $queryParameters = []) { $this->tenant_id = $tenantId; $this->metering_unit_name = $meteringUnitName; $this->queryParameters = $queryParameters; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}'), array($this->tenant_id, $this->metering_unit_name), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/date-period'); + return str_replace(['{tenant_id}', '{metering_unit_name}'], [$this->tenant_id, $this->metering_unit_name], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/date-period'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } - protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolver\OptionsResolver + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(array('start_timestamp', 'end_timestamp')); - $optionsResolver->setRequired(array()); - $optionsResolver->setDefaults(array()); - $optionsResolver->addAllowedTypes('start_timestamp', array('int')); - $optionsResolver->addAllowedTypes('end_timestamp', array('int')); + $optionsResolver->setDefined(['start_timestamp', 'end_timestamp']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('start_timestamp', ['int']); + $optionsResolver->addAllowedTypes('end_timestamp', ['int']); return $optionsResolver; } /** @@ -64,14 +61,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDatePeriodCounts', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameToday.php b/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameToday.php index 43b4b23..917bd59 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameToday.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitDateCountByTenantIdAndUnitNameToday.php @@ -7,35 +7,32 @@ class GetMeteringUnitDateCountByTenantIdAndUnitNameToday extends \AntiPatternInc protected $tenant_id; protected $metering_unit_name; /** - * 当日のメータリングユニットカウントを取得します。 - - Get the metering unit count for the current day. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - */ + * Get the metering unit count for the current day. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + */ public function __construct(string $tenantId, string $meteringUnitName) { $this->tenant_id = $tenantId; $this->metering_unit_name = $meteringUnitName; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}'), array($this->tenant_id, $this->metering_unit_name), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/today'); + return str_replace(['{tenant_id}', '{metering_unit_name}'], [$this->tenant_id, $this->metering_unit_name], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/today'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,14 +46,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitDateCountsByTenantIdAndDate.php b/generated/Pricing/Endpoint/GetMeteringUnitDateCountsByTenantIdAndDate.php index 9e119a0..679a269 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitDateCountsByTenantIdAndDate.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitDateCountsByTenantIdAndDate.php @@ -7,35 +7,32 @@ class GetMeteringUnitDateCountsByTenantIdAndDate extends \AntiPatternInc\Saasus\ protected $tenant_id; protected $date; /** - * 指定した日の全メータリングユニットカウントを取得します。 - - Gets the total metering unit count for the specified date. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $date 日(date) - */ + * Gets the total metering unit count for the specified date. + * + * @param string $tenantId Tenant ID + * @param string $date Date + */ public function __construct(string $tenantId, string $date) { $this->tenant_id = $tenantId; $this->date = $date; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{date}'), array($this->tenant_id, $this->date), '/metering/tenants/{tenant_id}/units/date/{date}'); + return str_replace(['{tenant_id}', '{date}'], [$this->tenant_id, $this->date], '/metering/tenants/{tenant_id}/units/date/{date}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,14 +46,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCounts', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth.php b/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth.php index a485437..3040096 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth.php @@ -8,15 +8,12 @@ class GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth extends \AntiPatter protected $metering_unit_name; protected $month; /** - * 指定した月のメータリングユニットカウントを取得します。 - - Gets the metering unit count for the specified month. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param string $month 月(month) - */ + * Gets the metering unit count for the specified month. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param string $month Month + */ public function __construct(string $tenantId, string $meteringUnitName, string $month) { $this->tenant_id = $tenantId; @@ -24,21 +21,21 @@ public function __construct(string $tenantId, string $meteringUnitName, string $ $this->month = $month; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}', '{month}'), array($this->tenant_id, $this->metering_unit_name, $this->month), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/month/{month}'); + return str_replace(['{tenant_id}', '{metering_unit_name}', '{month}'], [$this->tenant_id, $this->metering_unit_name, $this->month], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/month/{month}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -52,14 +49,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth.php b/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth.php index 3759e41..d359b20 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth.php @@ -7,35 +7,32 @@ class GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth extends \AntiPatte protected $tenant_id; protected $metering_unit_name; /** - * 当月のメータリングユニットカウントを取得します。 - - Get the metering unit count for the current month. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - */ + * Get the metering unit count for the current month. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + */ public function __construct(string $tenantId, string $meteringUnitName) { $this->tenant_id = $tenantId; $this->metering_unit_name = $meteringUnitName; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}'), array($this->tenant_id, $this->metering_unit_name), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/thismonth'); + return str_replace(['{tenant_id}', '{metering_unit_name}'], [$this->tenant_id, $this->metering_unit_name], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/thismonth'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,14 +46,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnitMonthCountsByTenantIdAndMonth.php b/generated/Pricing/Endpoint/GetMeteringUnitMonthCountsByTenantIdAndMonth.php index b6d0af3..a93e212 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnitMonthCountsByTenantIdAndMonth.php +++ b/generated/Pricing/Endpoint/GetMeteringUnitMonthCountsByTenantIdAndMonth.php @@ -7,35 +7,32 @@ class GetMeteringUnitMonthCountsByTenantIdAndMonth extends \AntiPatternInc\Saasu protected $tenant_id; protected $month; /** - * 指定した月の全メータリングユニットカウントを取得します。 - - Gets all metering unit counts for the specified month. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $month 月(month) - */ + * Gets all metering unit counts for the specified month. + * + * @param string $tenantId Tenant ID + * @param string $month Month + */ public function __construct(string $tenantId, string $month) { $this->tenant_id = $tenantId; $this->month = $month; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{month}'), array($this->tenant_id, $this->month), '/metering/tenants/{tenant_id}/units/month/{month}'); + return str_replace(['{tenant_id}', '{month}'], [$this->tenant_id, $this->month], '/metering/tenants/{tenant_id}/units/month/{month}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,14 +46,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCounts', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetMeteringUnits.php b/generated/Pricing/Endpoint/GetMeteringUnits.php index 3234f76..011cf76 100644 --- a/generated/Pricing/Endpoint/GetMeteringUnits.php +++ b/generated/Pricing/Endpoint/GetMeteringUnits.php @@ -5,21 +5,21 @@ class GetMeteringUnits extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/metering/units'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnits', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetMeteringUnitsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetPricingMenu.php b/generated/Pricing/Endpoint/GetPricingMenu.php index 89b94b3..e2dc9b1 100644 --- a/generated/Pricing/Endpoint/GetPricingMenu.php +++ b/generated/Pricing/Endpoint/GetPricingMenu.php @@ -6,33 +6,30 @@ class GetPricingMenu extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\B { protected $menu_id; /** - * プライシング機能メニューを取得します。 - - Get a pricing feature menu. - - * - * @param string $menuId メニューID(menu ID) - */ + * Get a pricing feature menu. + * + * @param string $menuId Menu ID + */ public function __construct(string $menuId) { $this->menu_id = $menuId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{menu_id}'), array($this->menu_id), '/menus/{menu_id}'); + return str_replace(['{menu_id}'], [$this->menu_id], '/menus/{menu_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetPricingMenus.php b/generated/Pricing/Endpoint/GetPricingMenus.php index d48c8d1..d1c3380 100644 --- a/generated/Pricing/Endpoint/GetPricingMenus.php +++ b/generated/Pricing/Endpoint/GetPricingMenus.php @@ -5,21 +5,21 @@ class GetPricingMenus extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/menus'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenus', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingMenusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingMenusInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetPricingPlan.php b/generated/Pricing/Endpoint/GetPricingPlan.php index d463ea2..895553b 100644 --- a/generated/Pricing/Endpoint/GetPricingPlan.php +++ b/generated/Pricing/Endpoint/GetPricingPlan.php @@ -6,33 +6,30 @@ class GetPricingPlan extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\B { protected $plan_id; /** - * 料金プランを取得します。 - - Get pricing plan. - - * - * @param string $planId 料金プランID(price plan ID) - */ + * Get a pricing plan. + * + * @param string $planId Pricing Plan ID + */ public function __construct(string $planId) { $this->plan_id = $planId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{plan_id}'), array($this->plan_id), '/plans/{plan_id}'); + return str_replace(['{plan_id}'], [$this->plan_id], '/plans/{plan_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -46,14 +43,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetPricingPlans.php b/generated/Pricing/Endpoint/GetPricingPlans.php index 3ad2ae4..ab7f3c5 100644 --- a/generated/Pricing/Endpoint/GetPricingPlans.php +++ b/generated/Pricing/Endpoint/GetPricingPlans.php @@ -5,21 +5,21 @@ class GetPricingPlans extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/plans'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlans', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingPlansInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingPlansInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetPricingUnit.php b/generated/Pricing/Endpoint/GetPricingUnit.php index c9711b3..13daac3 100644 --- a/generated/Pricing/Endpoint/GetPricingUnit.php +++ b/generated/Pricing/Endpoint/GetPricingUnit.php @@ -6,33 +6,30 @@ class GetPricingUnit extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\B { protected $pricing_unit_id; /** - * プライシングユニットを取得します。 - - Get a pricing unit. - - * - * @param string $pricingUnitId ユニットID(unit id) - */ + * Get a pricing unit. + * + * @param string $pricingUnitId Unit ID + */ public function __construct(string $pricingUnitId) { $this->pricing_unit_id = $pricingUnitId; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{pricing_unit_id}'), array($this->pricing_unit_id), '/units/{pricing_unit_id}'); + return str_replace(['{pricing_unit_id}'], [$this->pricing_unit_id], '/units/{pricing_unit_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -49,11 +46,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return json_decode($body); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetPricingUnits.php b/generated/Pricing/Endpoint/GetPricingUnits.php index bf51444..18bd1a9 100644 --- a/generated/Pricing/Endpoint/GetPricingUnits.php +++ b/generated/Pricing/Endpoint/GetPricingUnits.php @@ -5,21 +5,21 @@ class GetPricingUnits extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/units'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnits', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingUnitsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetPricingUnitsInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/GetTaxRates.php b/generated/Pricing/Endpoint/GetTaxRates.php index 2910d62..d31bc56 100644 --- a/generated/Pricing/Endpoint/GetTaxRates.php +++ b/generated/Pricing/Endpoint/GetTaxRates.php @@ -5,21 +5,21 @@ class GetTaxRates extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/tax-rates'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,14 +33,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRates', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetTaxRatesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\GetTaxRatesInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/LinkPlanToStripe.php b/generated/Pricing/Endpoint/LinkPlanToStripe.php index 84f2cf7..8dfff11 100644 --- a/generated/Pricing/Endpoint/LinkPlanToStripe.php +++ b/generated/Pricing/Endpoint/LinkPlanToStripe.php @@ -5,21 +5,21 @@ class LinkPlanToStripe extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { return '/stripe/init'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -36,11 +36,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\LinkPlanToStripeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\LinkPlanToStripeInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/ReturnInternalServerError.php b/generated/Pricing/Endpoint/ReturnInternalServerError.php index 81f8484..5cce922 100644 --- a/generated/Pricing/Endpoint/ReturnInternalServerError.php +++ b/generated/Pricing/Endpoint/ReturnInternalServerError.php @@ -5,21 +5,21 @@ class ReturnInternalServerError extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'GET'; } - public function getUri() : string + public function getUri(): string { return '/errors/internal-server-error'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -33,11 +33,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\ReturnInternalServerErrorInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdateMeteringUnitByID.php b/generated/Pricing/Endpoint/UpdateMeteringUnitByID.php index 94b6a86..48855bb 100644 --- a/generated/Pricing/Endpoint/UpdateMeteringUnitByID.php +++ b/generated/Pricing/Endpoint/UpdateMeteringUnitByID.php @@ -6,38 +6,35 @@ class UpdateMeteringUnitByID extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\ { protected $metering_unit_id; /** - * メータリングユニットを更新します。 - - Update metering unit. - - * - * @param string $meteringUnitId メータリングユニットID(metering unit id) - * @param null|\stdClass $requestBody - */ + * Update metering unit. + * + * @param string $meteringUnitId Metering Unit ID + * @param null|\stdClass $requestBody + */ public function __construct(string $meteringUnitId, ?\stdClass $requestBody = null) { $this->metering_unit_id = $meteringUnitId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{metering_unit_id}'), array($this->metering_unit_id), '/metering/units/{metering_unit_id}'); + return str_replace(['{metering_unit_id}'], [$this->metering_unit_id], '/metering/units/{metering_unit_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitByIDInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCount.php b/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCount.php index 44c6a0f..da73494 100644 --- a/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCount.php +++ b/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCount.php @@ -8,16 +8,13 @@ class UpdateMeteringUnitTimestampCount extends \AntiPatternInc\Saasus\Sdk\Pricin protected $metering_unit_name; protected $timestamp; /** - * 指定したタイムスタンプのメータリングユニットカウントを更新します。 - - Update metering unit count for the specified timestamp. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param int $timestamp タイムスタンプ(timestamp) - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam $requestBody - */ + * Update metering unit count for the specified timestamp. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param int $timestamp Timestamp + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam $requestBody + */ public function __construct(string $tenantId, string $meteringUnitName, int $timestamp, ?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam $requestBody = null) { $this->tenant_id = $tenantId; @@ -26,24 +23,24 @@ public function __construct(string $tenantId, string $meteringUnitName, int $tim $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}', '{timestamp}'), array($this->tenant_id, $this->metering_unit_name, $this->timestamp), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/timestamp/{timestamp}'); + return str_replace(['{tenant_id}', '{metering_unit_name}', '{timestamp}'], [$this->tenant_id, $this->metering_unit_name, $this->timestamp], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/timestamp/{timestamp}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -57,14 +54,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCountNow.php b/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCountNow.php index 5001ec8..ddc70a4 100644 --- a/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCountNow.php +++ b/generated/Pricing/Endpoint/UpdateMeteringUnitTimestampCountNow.php @@ -7,15 +7,12 @@ class UpdateMeteringUnitTimestampCountNow extends \AntiPatternInc\Saasus\Sdk\Pri protected $tenant_id; protected $metering_unit_name; /** - * 現在時刻のメータリングユニットカウントを更新します。 - - Update the metering unit count for the current time. - - * - * @param string $tenantId テナントID(tenant id) - * @param string $meteringUnitName 計測ユニット名(metering unit name) - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam $requestBody - */ + * Update the metering unit count for the current time. + * + * @param string $tenantId Tenant ID + * @param string $meteringUnitName Metering Unit Name + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam $requestBody + */ public function __construct(string $tenantId, string $meteringUnitName, ?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam $requestBody = null) { $this->tenant_id = $tenantId; @@ -23,24 +20,24 @@ public function __construct(string $tenantId, string $meteringUnitName, ?\AntiPa $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PUT'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tenant_id}', '{metering_unit_name}'), array($this->tenant_id, $this->metering_unit_name), '/metering/tenants/{tenant_id}/units/{metering_unit_name}/now'); + return str_replace(['{tenant_id}', '{metering_unit_name}'], [$this->tenant_id, $this->metering_unit_name], '/metering/tenants/{tenant_id}/units/{metering_unit_name}/now'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,14 +51,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { - return $serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount', 'json'); + return $serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount', 'json'); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountNowInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateMeteringUnitTimestampCountNowInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdatePricingMenu.php b/generated/Pricing/Endpoint/UpdatePricingMenu.php index be0b6b3..704f196 100644 --- a/generated/Pricing/Endpoint/UpdatePricingMenu.php +++ b/generated/Pricing/Endpoint/UpdatePricingMenu.php @@ -6,38 +6,35 @@ class UpdatePricingMenu extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Clien { protected $menu_id; /** - * プライシング機能メニューを更新します。 - - Update pricing feature menu. - - * - * @param string $menuId メニューID(menu ID) - * @param null|\stdClass $requestBody - */ + * Update pricing feature menu. + * + * @param string $menuId Menu ID + * @param null|\stdClass $requestBody + */ public function __construct(string $menuId, ?\stdClass $requestBody = null) { $this->menu_id = $menuId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{menu_id}'), array($this->menu_id), '/menus/{menu_id}'); + return str_replace(['{menu_id}'], [$this->menu_id], '/menus/{menu_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingMenuInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdatePricingPlan.php b/generated/Pricing/Endpoint/UpdatePricingPlan.php index ffbe2b2..003319e 100644 --- a/generated/Pricing/Endpoint/UpdatePricingPlan.php +++ b/generated/Pricing/Endpoint/UpdatePricingPlan.php @@ -6,38 +6,35 @@ class UpdatePricingPlan extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Clien { protected $plan_id; /** - * 料金プランを更新します。 - - Update pricing plan. - - * - * @param string $planId 料金プランID(price plan ID) - * @param null|\stdClass $requestBody - */ + * Update a pricing plan. + * + * @param string $planId Pricing Plan ID + * @param null|\stdClass $requestBody + */ public function __construct(string $planId, ?\stdClass $requestBody = null) { $this->plan_id = $planId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{plan_id}'), array($this->plan_id), '/plans/{plan_id}'); + return str_replace(['{plan_id}'], [$this->plan_id], '/plans/{plan_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlanInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdatePricingPlansUsed.php b/generated/Pricing/Endpoint/UpdatePricingPlansUsed.php index 65baded..dd38bdc 100644 --- a/generated/Pricing/Endpoint/UpdatePricingPlansUsed.php +++ b/generated/Pricing/Endpoint/UpdatePricingPlansUsed.php @@ -5,36 +5,33 @@ class UpdatePricingPlansUsed extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\BaseEndpoint implements \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Endpoint { /** - * 料金プランと配下のメニュー・ユニットを使用済みに更新します。 - - Update price plan and feature menu/pricing unit to used. - - * - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam $requestBody - */ + * Update price plan and feature menu/pricing unit to used. + * + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam $requestBody + */ public function __construct(?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam $requestBody = null) { $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { return '/plans/used'; } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -51,11 +48,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlansUsedInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingPlansUsedInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdatePricingUnit.php b/generated/Pricing/Endpoint/UpdatePricingUnit.php index 039c4ad..8cbfe6b 100644 --- a/generated/Pricing/Endpoint/UpdatePricingUnit.php +++ b/generated/Pricing/Endpoint/UpdatePricingUnit.php @@ -6,38 +6,35 @@ class UpdatePricingUnit extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Clien { protected $pricing_unit_id; /** - * プライシングユニット情報を更新します。 - - Update pricing unit. - - * - * @param string $pricingUnitId ユニットID(unit id) - * @param null|\stdClass $requestBody - */ + * Update pricing unit. + * + * @param string $pricingUnitId Unit ID + * @param null|\stdClass $requestBody + */ public function __construct(string $pricingUnitId, ?\stdClass $requestBody = null) { $this->pricing_unit_id = $pricingUnitId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{pricing_unit_id}'), array($this->pricing_unit_id), '/units/{pricing_unit_id}'); + return str_replace(['{pricing_unit_id}'], [$this->pricing_unit_id], '/units/{pricing_unit_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return array(array('Content-Type' => array('application/json')), json_encode($this->body)); + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -54,11 +51,11 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdatePricingUnitInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Endpoint/UpdateTaxRate.php b/generated/Pricing/Endpoint/UpdateTaxRate.php index e6da323..cfa5b4e 100644 --- a/generated/Pricing/Endpoint/UpdateTaxRate.php +++ b/generated/Pricing/Endpoint/UpdateTaxRate.php @@ -6,38 +6,35 @@ class UpdateTaxRate extends \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\Ba { protected $tax_rate_id; /** - * 税率を更新します。 - - Update tax rate. - - * - * @param string $taxRateId 税率ID(tax rate ID) - * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam $requestBody - */ + * Update tax rate. + * + * @param string $taxRateId Tax Rate ID + * @param null|\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam $requestBody + */ public function __construct(string $taxRateId, ?\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam $requestBody = null) { $this->tax_rate_id = $taxRateId; $this->body = $requestBody; } use \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Client\EndpointTrait; - public function getMethod() : string + public function getMethod(): string { return 'PATCH'; } - public function getUri() : string + public function getUri(): string { - return str_replace(array('{tax_rate_id}'), array($this->tax_rate_id), '/tax-rates/{tax_rate_id}'); + return str_replace(['{tax_rate_id}'], [$this->tax_rate_id], '/tax-rates/{tax_rate_id}'); } - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam) { - return array(array('Content-Type' => array('application/json')), $serializer->serialize($this->body, 'json')); + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - return array(array(), null); + return [[], null]; } - public function getExtraHeaders() : array + public function getExtraHeaders(): array { - return array('Accept' => array('application/json')); + return ['Accept' => ['application/json']]; } /** * {@inheritdoc} @@ -55,14 +52,14 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateBadRequestException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateBadRequestException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { - throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error', 'json'), $response); + throw new \AntiPatternInc\Saasus\Sdk\Pricing\Exception\UpdateTaxRateInternalServerErrorException($serializer->deserialize($body, 'AntiPatternInc\Saasus\Sdk\Pricing\Model\Error', 'json'), $response); } } - public function getAuthenticationScopes() : array + public function getAuthenticationScopes(): array { - return array('Bearer'); + return ['Bearer']; } } \ No newline at end of file diff --git a/generated/Pricing/Exception/CreateMeteringUnitBadRequestException.php b/generated/Pricing/Exception/CreateMeteringUnitBadRequestException.php index 4517f77..9bc5c57 100644 --- a/generated/Pricing/Exception/CreateMeteringUnitBadRequestException.php +++ b/generated/Pricing/Exception/CreateMeteringUnitBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/CreateMeteringUnitInternalServerErrorException.php b/generated/Pricing/Exception/CreateMeteringUnitInternalServerErrorException.php index 63c391b..4191c5f 100644 --- a/generated/Pricing/Exception/CreateMeteringUnitInternalServerErrorException.php +++ b/generated/Pricing/Exception/CreateMeteringUnitInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/CreatePricingMenuInternalServerErrorException.php b/generated/Pricing/Exception/CreatePricingMenuInternalServerErrorException.php index d865dd8..1f14c92 100644 --- a/generated/Pricing/Exception/CreatePricingMenuInternalServerErrorException.php +++ b/generated/Pricing/Exception/CreatePricingMenuInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/CreatePricingPlanInternalServerErrorException.php b/generated/Pricing/Exception/CreatePricingPlanInternalServerErrorException.php index a6c9173..6c09860 100644 --- a/generated/Pricing/Exception/CreatePricingPlanInternalServerErrorException.php +++ b/generated/Pricing/Exception/CreatePricingPlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/CreatePricingUnitInternalServerErrorException.php b/generated/Pricing/Exception/CreatePricingUnitInternalServerErrorException.php index 215ac1e..cfd4a9d 100644 --- a/generated/Pricing/Exception/CreatePricingUnitInternalServerErrorException.php +++ b/generated/Pricing/Exception/CreatePricingUnitInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/CreateTaxRateBadRequestException.php b/generated/Pricing/Exception/CreateTaxRateBadRequestException.php index 71425b8..7835d47 100644 --- a/generated/Pricing/Exception/CreateTaxRateBadRequestException.php +++ b/generated/Pricing/Exception/CreateTaxRateBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/CreateTaxRateInternalServerErrorException.php b/generated/Pricing/Exception/CreateTaxRateInternalServerErrorException.php index 0d1ef73..508c4ec 100644 --- a/generated/Pricing/Exception/CreateTaxRateInternalServerErrorException.php +++ b/generated/Pricing/Exception/CreateTaxRateInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesInternalServerErrorException.php b/generated/Pricing/Exception/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesInternalServerErrorException.php index 78fec96..7885647 100644 --- a/generated/Pricing/Exception/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeleteMeteringUnitByIDInternalServerErrorException.php b/generated/Pricing/Exception/DeleteMeteringUnitByIDInternalServerErrorException.php index debfc1d..1d534ae 100644 --- a/generated/Pricing/Exception/DeleteMeteringUnitByIDInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeleteMeteringUnitByIDInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeleteMeteringUnitByIDNotFoundException.php b/generated/Pricing/Exception/DeleteMeteringUnitByIDNotFoundException.php index e383a59..439b419 100644 --- a/generated/Pricing/Exception/DeleteMeteringUnitByIDNotFoundException.php +++ b/generated/Pricing/Exception/DeleteMeteringUnitByIDNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeleteMeteringUnitTimestampCountInternalServerErrorException.php b/generated/Pricing/Exception/DeleteMeteringUnitTimestampCountInternalServerErrorException.php index 4f7997c..824a4a8 100644 --- a/generated/Pricing/Exception/DeleteMeteringUnitTimestampCountInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeleteMeteringUnitTimestampCountInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeletePricingMenuInternalServerErrorException.php b/generated/Pricing/Exception/DeletePricingMenuInternalServerErrorException.php index 52085e0..39a19c0 100644 --- a/generated/Pricing/Exception/DeletePricingMenuInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeletePricingMenuInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeletePricingMenuNotFoundException.php b/generated/Pricing/Exception/DeletePricingMenuNotFoundException.php index ccd6c89..09ee197 100644 --- a/generated/Pricing/Exception/DeletePricingMenuNotFoundException.php +++ b/generated/Pricing/Exception/DeletePricingMenuNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeletePricingPlanInternalServerErrorException.php b/generated/Pricing/Exception/DeletePricingPlanInternalServerErrorException.php index a426dce..66f2ae7 100644 --- a/generated/Pricing/Exception/DeletePricingPlanInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeletePricingPlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeletePricingPlanNotFoundException.php b/generated/Pricing/Exception/DeletePricingPlanNotFoundException.php index 7273117..f3dacf5 100644 --- a/generated/Pricing/Exception/DeletePricingPlanNotFoundException.php +++ b/generated/Pricing/Exception/DeletePricingPlanNotFoundException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeletePricingUnitInternalServerErrorException.php b/generated/Pricing/Exception/DeletePricingUnitInternalServerErrorException.php index e237c95..c7b3a46 100644 --- a/generated/Pricing/Exception/DeletePricingUnitInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeletePricingUnitInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/DeleteStripePlanInternalServerErrorException.php b/generated/Pricing/Exception/DeleteStripePlanInternalServerErrorException.php index c188b64..7f1466f 100644 --- a/generated/Pricing/Exception/DeleteStripePlanInternalServerErrorException.php +++ b/generated/Pricing/Exception/DeleteStripePlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException.php index 486e200..253bdd2 100644 --- a/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException.php index b3818b8..cd73925 100644 --- a/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException.php index cd5c8c3..fbb2d6e 100644 --- a/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitDateCountByTenantIdAndUnitNameTodayInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException.php index 2ee9e69..a8101ad 100644 --- a/generated/Pricing/Exception/GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitDateCountsByTenantIdAndDateInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException.php index b035d2b..6fb0aab 100644 --- a/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException.php index 6ea73ca..9df7dbe 100644 --- a/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException.php index 41e2adf..d017826 100644 --- a/generated/Pricing/Exception/GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitMonthCountsByTenantIdAndMonthInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetMeteringUnitsInternalServerErrorException.php b/generated/Pricing/Exception/GetMeteringUnitsInternalServerErrorException.php index 9f02998..dac7340 100644 --- a/generated/Pricing/Exception/GetMeteringUnitsInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetMeteringUnitsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetPricingMenuInternalServerErrorException.php b/generated/Pricing/Exception/GetPricingMenuInternalServerErrorException.php index 08c8351..7b29f70 100644 --- a/generated/Pricing/Exception/GetPricingMenuInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetPricingMenuInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetPricingMenusInternalServerErrorException.php b/generated/Pricing/Exception/GetPricingMenusInternalServerErrorException.php index b661d3f..85db26f 100644 --- a/generated/Pricing/Exception/GetPricingMenusInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetPricingMenusInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetPricingPlanInternalServerErrorException.php b/generated/Pricing/Exception/GetPricingPlanInternalServerErrorException.php index e7922e4..43e3836 100644 --- a/generated/Pricing/Exception/GetPricingPlanInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetPricingPlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetPricingPlansInternalServerErrorException.php b/generated/Pricing/Exception/GetPricingPlansInternalServerErrorException.php index a84f324..c050a05 100644 --- a/generated/Pricing/Exception/GetPricingPlansInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetPricingPlansInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetPricingUnitInternalServerErrorException.php b/generated/Pricing/Exception/GetPricingUnitInternalServerErrorException.php index 7b8bf0f..825ffd7 100644 --- a/generated/Pricing/Exception/GetPricingUnitInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetPricingUnitInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetPricingUnitsInternalServerErrorException.php b/generated/Pricing/Exception/GetPricingUnitsInternalServerErrorException.php index b9dd134..de4d643 100644 --- a/generated/Pricing/Exception/GetPricingUnitsInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetPricingUnitsInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/GetTaxRatesInternalServerErrorException.php b/generated/Pricing/Exception/GetTaxRatesInternalServerErrorException.php index d002cd4..7dd3067 100644 --- a/generated/Pricing/Exception/GetTaxRatesInternalServerErrorException.php +++ b/generated/Pricing/Exception/GetTaxRatesInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/LinkPlanToStripeInternalServerErrorException.php b/generated/Pricing/Exception/LinkPlanToStripeInternalServerErrorException.php index bec0a27..e5a92bf 100644 --- a/generated/Pricing/Exception/LinkPlanToStripeInternalServerErrorException.php +++ b/generated/Pricing/Exception/LinkPlanToStripeInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/ReturnInternalServerErrorInternalServerErrorException.php b/generated/Pricing/Exception/ReturnInternalServerErrorInternalServerErrorException.php index 61cdafc..e39d212 100644 --- a/generated/Pricing/Exception/ReturnInternalServerErrorInternalServerErrorException.php +++ b/generated/Pricing/Exception/ReturnInternalServerErrorInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdateMeteringUnitByIDBadRequestException.php b/generated/Pricing/Exception/UpdateMeteringUnitByIDBadRequestException.php index 65ef541..f091ccc 100644 --- a/generated/Pricing/Exception/UpdateMeteringUnitByIDBadRequestException.php +++ b/generated/Pricing/Exception/UpdateMeteringUnitByIDBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdateMeteringUnitByIDInternalServerErrorException.php b/generated/Pricing/Exception/UpdateMeteringUnitByIDInternalServerErrorException.php index 395bb53..0923c6a 100644 --- a/generated/Pricing/Exception/UpdateMeteringUnitByIDInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdateMeteringUnitByIDInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountInternalServerErrorException.php b/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountInternalServerErrorException.php index ce1ab61..7234d38 100644 --- a/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountNowInternalServerErrorException.php b/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountNowInternalServerErrorException.php index 05065e6..cca72bc 100644 --- a/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountNowInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdateMeteringUnitTimestampCountNowInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdatePricingMenuInternalServerErrorException.php b/generated/Pricing/Exception/UpdatePricingMenuInternalServerErrorException.php index 24a1875..df9935a 100644 --- a/generated/Pricing/Exception/UpdatePricingMenuInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdatePricingMenuInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdatePricingPlanInternalServerErrorException.php b/generated/Pricing/Exception/UpdatePricingPlanInternalServerErrorException.php index e003d8c..97ea9b2 100644 --- a/generated/Pricing/Exception/UpdatePricingPlanInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdatePricingPlanInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdatePricingPlansUsedInternalServerErrorException.php b/generated/Pricing/Exception/UpdatePricingPlansUsedInternalServerErrorException.php index bdab1d4..06c7ee7 100644 --- a/generated/Pricing/Exception/UpdatePricingPlansUsedInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdatePricingPlansUsedInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdatePricingUnitInternalServerErrorException.php b/generated/Pricing/Exception/UpdatePricingUnitInternalServerErrorException.php index 2b06491..27c22e9 100644 --- a/generated/Pricing/Exception/UpdatePricingUnitInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdatePricingUnitInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdateTaxRateBadRequestException.php b/generated/Pricing/Exception/UpdateTaxRateBadRequestException.php index 20b702b..af7ff00 100644 --- a/generated/Pricing/Exception/UpdateTaxRateBadRequestException.php +++ b/generated/Pricing/Exception/UpdateTaxRateBadRequestException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Exception/UpdateTaxRateInternalServerErrorException.php b/generated/Pricing/Exception/UpdateTaxRateInternalServerErrorException.php index 73ac150..4ff2967 100644 --- a/generated/Pricing/Exception/UpdateTaxRateInternalServerErrorException.php +++ b/generated/Pricing/Exception/UpdateTaxRateInternalServerErrorException.php @@ -18,11 +18,11 @@ public function __construct(\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error $erro $this->error = $error; $this->response = $response; } - public function getError() : \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error + public function getError(): \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error { return $this->error; } - public function getResponse() : \Psr\Http\Message\ResponseInterface + public function getResponse(): \Psr\Http\Message\ResponseInterface { return $this->response; } diff --git a/generated/Pricing/Model/Error.php b/generated/Pricing/Model/Error.php index 60465bd..cf3cd8a 100644 --- a/generated/Pricing/Model/Error.php +++ b/generated/Pricing/Model/Error.php @@ -7,13 +7,13 @@ class Error extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * permission_denied + * Error type * * @var string|null */ @@ -25,22 +25,22 @@ public function isInitialized($property) : bool */ protected $message; /** - * permission_denied + * Error type * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * permission_denied + * Error type * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; @@ -51,7 +51,7 @@ public function setType(?string $type) : self * * @return string|null */ - public function getMessage() : ?string + public function getMessage(): ?string { return $this->message; } @@ -62,7 +62,7 @@ public function getMessage() : ?string * * @return self */ - public function setMessage(?string $message) : self + public function setMessage(?string $message): self { $this->initialized['message'] = true; $this->message = $message; diff --git a/generated/Pricing/Model/MeteringUnit.php b/generated/Pricing/Model/MeteringUnit.php index 17f694d..9e4b8f1 100644 --- a/generated/Pricing/Model/MeteringUnit.php +++ b/generated/Pricing/Model/MeteringUnit.php @@ -7,183 +7,183 @@ class MeteringUnit extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * メータリングユニットの使用済み設定(metering unit used settings) + * Metering unit used settings * * @var bool|null */ protected $used; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $unitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 表示名(display name) + * Display name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * メータリングユニットの使用済み設定(metering unit used settings) + * Metering unit used settings * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * メータリングユニットの使用済み設定(metering unit used settings) + * Metering unit used settings * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; return $this; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getUnitName() : ?string + public function getUnitName(): ?string { return $this->unitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $unitName * * @return self */ - public function setUnitName(?string $unitName) : self + public function setUnitName(?string $unitName): self { $this->initialized['unitName'] = true; $this->unitName = $unitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 表示名(display name) + * Display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; diff --git a/generated/Pricing/Model/MeteringUnitCount.php b/generated/Pricing/Model/MeteringUnitCount.php index 2e874f3..fe58215 100644 --- a/generated/Pricing/Model/MeteringUnitCount.php +++ b/generated/Pricing/Model/MeteringUnitCount.php @@ -7,62 +7,62 @@ class MeteringUnitCount extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 日時(timestamp) + * Timestamp * * @var int|null */ protected $timestamp; /** - * 件数(count) + * Count * * @var int|null */ protected $count; /** - * 日時(timestamp) + * Timestamp * * @return int|null */ - public function getTimestamp() : ?int + public function getTimestamp(): ?int { return $this->timestamp; } /** - * 日時(timestamp) + * Timestamp * * @param int|null $timestamp * * @return self */ - public function setTimestamp(?int $timestamp) : self + public function setTimestamp(?int $timestamp): self { $this->initialized['timestamp'] = true; $this->timestamp = $timestamp; return $this; } /** - * 件数(count) + * Count * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } /** - * 件数(count) + * Count * * @param int|null $count * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; diff --git a/generated/Pricing/Model/MeteringUnitDateCount.php b/generated/Pricing/Model/MeteringUnitDateCount.php index 1459454..42fafd6 100644 --- a/generated/Pricing/Model/MeteringUnitDateCount.php +++ b/generated/Pricing/Model/MeteringUnitDateCount.php @@ -7,90 +7,90 @@ class MeteringUnitDateCount extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 日(date) + * Date * * @var string|null */ protected $date; /** - * 件数(count) + * Count * * @var int|null */ protected $count; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 日(date) + * Date * * @return string|null */ - public function getDate() : ?string + public function getDate(): ?string { return $this->date; } /** - * 日(date) + * Date * * @param string|null $date * * @return self */ - public function setDate(?string $date) : self + public function setDate(?string $date): self { $this->initialized['date'] = true; $this->date = $date; return $this; } /** - * 件数(count) + * Count * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } /** - * 件数(count) + * Count * * @param int|null $count * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; diff --git a/generated/Pricing/Model/MeteringUnitDateCounts.php b/generated/Pricing/Model/MeteringUnitDateCounts.php index 131fe1f..72d14c7 100644 --- a/generated/Pricing/Model/MeteringUnitDateCounts.php +++ b/generated/Pricing/Model/MeteringUnitDateCounts.php @@ -7,34 +7,34 @@ class MeteringUnitDateCounts extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var MeteringUnitDateCount[]|null + * @var list|null */ protected $counts; /** * * - * @return MeteringUnitDateCount[]|null + * @return list|null */ - public function getCounts() : ?array + public function getCounts(): ?array { return $this->counts; } /** * * - * @param MeteringUnitDateCount[]|null $counts + * @param list|null $counts * * @return self */ - public function setCounts(?array $counts) : self + public function setCounts(?array $counts): self { $this->initialized['counts'] = true; $this->counts = $counts; diff --git a/generated/Pricing/Model/MeteringUnitDatePeriodCounts.php b/generated/Pricing/Model/MeteringUnitDatePeriodCounts.php index aef289c..a5e7a6c 100644 --- a/generated/Pricing/Model/MeteringUnitDatePeriodCounts.php +++ b/generated/Pricing/Model/MeteringUnitDatePeriodCounts.php @@ -7,13 +7,13 @@ class MeteringUnitDatePeriodCounts extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ @@ -21,26 +21,26 @@ public function isInitialized($property) : bool /** * * - * @var MeteringUnitCount[]|null + * @var list|null */ protected $counts; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; @@ -49,20 +49,20 @@ public function setMeteringUnitName(?string $meteringUnitName) : self /** * * - * @return MeteringUnitCount[]|null + * @return list|null */ - public function getCounts() : ?array + public function getCounts(): ?array { return $this->counts; } /** * * - * @param MeteringUnitCount[]|null $counts + * @param list|null $counts * * @return self */ - public function setCounts(?array $counts) : self + public function setCounts(?array $counts): self { $this->initialized['counts'] = true; $this->counts = $counts; diff --git a/generated/Pricing/Model/MeteringUnitMonthCount.php b/generated/Pricing/Model/MeteringUnitMonthCount.php index 1b4b582..eb6b938 100644 --- a/generated/Pricing/Model/MeteringUnitMonthCount.php +++ b/generated/Pricing/Model/MeteringUnitMonthCount.php @@ -7,90 +7,90 @@ class MeteringUnitMonthCount extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 月(month) + * Month * * @var string|null */ protected $month; /** - * 件数(count) + * Count * * @var int|null */ protected $count; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 月(month) + * Month * * @return string|null */ - public function getMonth() : ?string + public function getMonth(): ?string { return $this->month; } /** - * 月(month) + * Month * * @param string|null $month * * @return self */ - public function setMonth(?string $month) : self + public function setMonth(?string $month): self { $this->initialized['month'] = true; $this->month = $month; return $this; } /** - * 件数(count) + * Count * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } /** - * 件数(count) + * Count * * @param int|null $count * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; diff --git a/generated/Pricing/Model/MeteringUnitMonthCounts.php b/generated/Pricing/Model/MeteringUnitMonthCounts.php index 1ebc74b..02bbe02 100644 --- a/generated/Pricing/Model/MeteringUnitMonthCounts.php +++ b/generated/Pricing/Model/MeteringUnitMonthCounts.php @@ -7,34 +7,34 @@ class MeteringUnitMonthCounts extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var MeteringUnitMonthCount[]|null + * @var list|null */ protected $counts; /** * * - * @return MeteringUnitMonthCount[]|null + * @return list|null */ - public function getCounts() : ?array + public function getCounts(): ?array { return $this->counts; } /** * * - * @param MeteringUnitMonthCount[]|null $counts + * @param list|null $counts * * @return self */ - public function setCounts(?array $counts) : self + public function setCounts(?array $counts): self { $this->initialized['counts'] = true; $this->counts = $counts; diff --git a/generated/Pricing/Model/MeteringUnitProps.php b/generated/Pricing/Model/MeteringUnitProps.php index 8f6c37a..b900251 100644 --- a/generated/Pricing/Model/MeteringUnitProps.php +++ b/generated/Pricing/Model/MeteringUnitProps.php @@ -7,127 +7,127 @@ class MeteringUnitProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $unitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 表示名(display name) + * Display name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getUnitName() : ?string + public function getUnitName(): ?string { return $this->unitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $unitName * * @return self */ - public function setUnitName(?string $unitName) : self + public function setUnitName(?string $unitName): self { $this->initialized['unitName'] = true; $this->unitName = $unitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 表示名(display name) + * Display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; diff --git a/generated/Pricing/Model/MeteringUnitTimestampCount.php b/generated/Pricing/Model/MeteringUnitTimestampCount.php index d0a0a41..f0a5cff 100644 --- a/generated/Pricing/Model/MeteringUnitTimestampCount.php +++ b/generated/Pricing/Model/MeteringUnitTimestampCount.php @@ -7,90 +7,90 @@ class MeteringUnitTimestampCount extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * タイムスタンプ(timestamp) + * Timestamp * * @var int|null */ protected $timestamp; /** - * 件数(count) + * Count * * @var int|null */ protected $count; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * タイムスタンプ(timestamp) + * Timestamp * * @return int|null */ - public function getTimestamp() : ?int + public function getTimestamp(): ?int { return $this->timestamp; } /** - * タイムスタンプ(timestamp) + * Timestamp * * @param int|null $timestamp * * @return self */ - public function setTimestamp(?int $timestamp) : self + public function setTimestamp(?int $timestamp): self { $this->initialized['timestamp'] = true; $this->timestamp = $timestamp; return $this; } /** - * 件数(count) + * Count * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } /** - * 件数(count) + * Count * * @param int|null $count * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; diff --git a/generated/Pricing/Model/MeteringUnits.php b/generated/Pricing/Model/MeteringUnits.php index 2950918..f2c56c5 100644 --- a/generated/Pricing/Model/MeteringUnits.php +++ b/generated/Pricing/Model/MeteringUnits.php @@ -7,34 +7,34 @@ class MeteringUnits extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $units; /** * * - * @return array[]|null + * @return list>|null */ - public function getUnits() : ?array + public function getUnits(): ?array { return $this->units; } /** * * - * @param array[]|null $units + * @param list>|null $units * * @return self */ - public function setUnits(?array $units) : self + public function setUnits(?array $units): self { $this->initialized['units'] = true; $this->units = $units; diff --git a/generated/Pricing/Model/PricingFixedUnit.php b/generated/Pricing/Model/PricingFixedUnit.php index 5b1c607..780c895 100644 --- a/generated/Pricing/Model/PricingFixedUnit.php +++ b/generated/Pricing/Model/PricingFixedUnit.php @@ -7,13 +7,13 @@ class PricingFixedUnit extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ @@ -25,72 +25,72 @@ public function isInitialized($property) : bool */ protected $used; /** - * 料金(price) + * Price * * @var int|null */ protected $unitAmount; /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @var string|null */ protected $recurringInterval; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ protected $currency; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; @@ -101,7 +101,7 @@ public function setId(?string $id) : self * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } @@ -112,177 +112,177 @@ public function getUsed() : ?bool * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; return $this; } /** - * 料金(price) + * Price * * @return int|null */ - public function getUnitAmount() : ?int + public function getUnitAmount(): ?int { return $this->unitAmount; } /** - * 料金(price) + * Price * * @param int|null $unitAmount * * @return self */ - public function setUnitAmount(?int $unitAmount) : self + public function setUnitAmount(?int $unitAmount): self { $this->initialized['unitAmount'] = true; $this->unitAmount = $unitAmount; return $this; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @return string|null */ - public function getRecurringInterval() : ?string + public function getRecurringInterval(): ?string { return $this->recurringInterval; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @param string|null $recurringInterval * * @return self */ - public function setRecurringInterval(?string $recurringInterval) : self + public function setRecurringInterval(?string $recurringInterval): self { $this->initialized['recurringInterval'] = true; $this->recurringInterval = $recurringInterval; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; diff --git a/generated/Pricing/Model/PricingFixedUnitForSave.php b/generated/Pricing/Model/PricingFixedUnitForSave.php index 637e93e..baaadd5 100644 --- a/generated/Pricing/Model/PricingFixedUnitForSave.php +++ b/generated/Pricing/Model/PricingFixedUnitForSave.php @@ -7,226 +7,226 @@ class PricingFixedUnitForSave extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 料金(price) + * Price * * @var int|null */ protected $unitAmount; /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @var string|null */ protected $recurringInterval; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ protected $currency; /** - * 料金(price) + * Price * * @return int|null */ - public function getUnitAmount() : ?int + public function getUnitAmount(): ?int { return $this->unitAmount; } /** - * 料金(price) + * Price * * @param int|null $unitAmount * * @return self */ - public function setUnitAmount(?int $unitAmount) : self + public function setUnitAmount(?int $unitAmount): self { $this->initialized['unitAmount'] = true; $this->unitAmount = $unitAmount; return $this; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @return string|null */ - public function getRecurringInterval() : ?string + public function getRecurringInterval(): ?string { return $this->recurringInterval; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @param string|null $recurringInterval * * @return self */ - public function setRecurringInterval(?string $recurringInterval) : self + public function setRecurringInterval(?string $recurringInterval): self { $this->initialized['recurringInterval'] = true; $this->recurringInterval = $recurringInterval; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; diff --git a/generated/Pricing/Model/PricingMenu.php b/generated/Pricing/Model/PricingMenu.php index a87642a..0fedcaa 100644 --- a/generated/Pricing/Model/PricingMenu.php +++ b/generated/Pricing/Model/PricingMenu.php @@ -7,37 +7,37 @@ class PricingMenu extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * メニュー名(menu name) + * Menu name * * @var string|null */ protected $name; /** - * メニュー表示名(menu display name) + * Menu display name * * @var string|null */ protected $displayName; /** - * メニュー説明(menu description) + * Menu description * * @var string|null */ protected $description; /** - * メニューの使用済み設定(menu used settings) + * Menu used settings * * @var bool|null */ @@ -45,114 +45,114 @@ public function isInitialized($property) : bool /** * * - * @var array[]|null + * @var list>|null */ protected $units; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * メニュー名(menu name) + * Menu name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * メニュー名(menu name) + * Menu name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * メニュー表示名(menu display name) + * Menu display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * メニュー表示名(menu display name) + * Menu display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * メニュー説明(menu description) + * Menu description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * メニュー説明(menu description) + * Menu description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * メニューの使用済み設定(menu used settings) + * Menu used settings * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * メニューの使用済み設定(menu used settings) + * Menu used settings * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; @@ -161,20 +161,20 @@ public function setUsed(?bool $used) : self /** * * - * @return array[]|null + * @return list>|null */ - public function getUnits() : ?array + public function getUnits(): ?array { return $this->units; } /** * * - * @param array[]|null $units + * @param list>|null $units * * @return self */ - public function setUnits(?array $units) : self + public function setUnits(?array $units): self { $this->initialized['units'] = true; $this->units = $units; diff --git a/generated/Pricing/Model/PricingMenuProps.php b/generated/Pricing/Model/PricingMenuProps.php index 67c51ce..2769f2e 100644 --- a/generated/Pricing/Model/PricingMenuProps.php +++ b/generated/Pricing/Model/PricingMenuProps.php @@ -7,31 +7,31 @@ class PricingMenuProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メニュー名(menu name) + * Menu name * * @var string|null */ protected $name; /** - * メニュー表示名(menu display name) + * Menu display name * * @var string|null */ protected $displayName; /** - * メニュー説明(menu description) + * Menu description * * @var string|null */ protected $description; /** - * メニューの使用済み設定(menu used settings) + * Menu used settings * * @var bool|null */ @@ -39,92 +39,92 @@ public function isInitialized($property) : bool /** * * - * @var array[]|null + * @var list>|null */ protected $units; /** - * メニュー名(menu name) + * Menu name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * メニュー名(menu name) + * Menu name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * メニュー表示名(menu display name) + * Menu display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * メニュー表示名(menu display name) + * Menu display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * メニュー説明(menu description) + * Menu description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * メニュー説明(menu description) + * Menu description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * メニューの使用済み設定(menu used settings) + * Menu used settings * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * メニューの使用済み設定(menu used settings) + * Menu used settings * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; @@ -133,20 +133,20 @@ public function setUsed(?bool $used) : self /** * * - * @return array[]|null + * @return list>|null */ - public function getUnits() : ?array + public function getUnits(): ?array { return $this->units; } /** * * - * @param array[]|null $units + * @param list>|null $units * * @return self */ - public function setUnits(?array $units) : self + public function setUnits(?array $units): self { $this->initialized['units'] = true; $this->units = $units; diff --git a/generated/Pricing/Model/PricingMenus.php b/generated/Pricing/Model/PricingMenus.php index 194b488..43258ac 100644 --- a/generated/Pricing/Model/PricingMenus.php +++ b/generated/Pricing/Model/PricingMenus.php @@ -7,34 +7,34 @@ class PricingMenus extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $pricingMenus; /** * * - * @return array[]|null + * @return list>|null */ - public function getPricingMenus() : ?array + public function getPricingMenus(): ?array { return $this->pricingMenus; } /** * * - * @param array[]|null $pricingMenus + * @param list>|null $pricingMenus * * @return self */ - public function setPricingMenus(?array $pricingMenus) : self + public function setPricingMenus(?array $pricingMenus): self { $this->initialized['pricingMenus'] = true; $this->pricingMenus = $pricingMenus; diff --git a/generated/Pricing/Model/PricingPlan.php b/generated/Pricing/Model/PricingPlan.php index 0cc7b88..54b0f7b 100644 --- a/generated/Pricing/Model/PricingPlan.php +++ b/generated/Pricing/Model/PricingPlan.php @@ -7,37 +7,37 @@ class PricingPlan extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @var string|null */ protected $name; /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @var string|null */ protected $displayName; /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @var string|null */ protected $description; /** - * 料金プランの使用済み設定(pricing plan used settings) + * Pricing plan used settings * * @var bool|null */ @@ -45,114 +45,114 @@ public function isInitialized($property) : bool /** * * - * @var array[]|null + * @var list>|null */ protected $pricingMenus; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 料金プランの使用済み設定(pricing plan used settings) + * Pricing plan used settings * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * 料金プランの使用済み設定(pricing plan used settings) + * Pricing plan used settings * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; @@ -161,20 +161,20 @@ public function setUsed(?bool $used) : self /** * * - * @return array[]|null + * @return list>|null */ - public function getPricingMenus() : ?array + public function getPricingMenus(): ?array { return $this->pricingMenus; } /** * * - * @param array[]|null $pricingMenus + * @param list>|null $pricingMenus * * @return self */ - public function setPricingMenus(?array $pricingMenus) : self + public function setPricingMenus(?array $pricingMenus): self { $this->initialized['pricingMenus'] = true; $this->pricingMenus = $pricingMenus; diff --git a/generated/Pricing/Model/PricingPlanProps.php b/generated/Pricing/Model/PricingPlanProps.php index 2105319..b06e7c0 100644 --- a/generated/Pricing/Model/PricingPlanProps.php +++ b/generated/Pricing/Model/PricingPlanProps.php @@ -7,31 +7,31 @@ class PricingPlanProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @var string|null */ protected $name; /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @var string|null */ protected $displayName; /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @var string|null */ protected $description; /** - * 料金プランの使用済み設定(pricing plan used settings) + * Pricing plan used settings * * @var bool|null */ @@ -39,92 +39,92 @@ public function isInitialized($property) : bool /** * * - * @var array[]|null + * @var list>|null */ protected $pricingMenus; /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 料金プランの使用済み設定(pricing plan used settings) + * Pricing plan used settings * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * 料金プランの使用済み設定(pricing plan used settings) + * Pricing plan used settings * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; @@ -133,20 +133,20 @@ public function setUsed(?bool $used) : self /** * * - * @return array[]|null + * @return list>|null */ - public function getPricingMenus() : ?array + public function getPricingMenus(): ?array { return $this->pricingMenus; } /** * * - * @param array[]|null $pricingMenus + * @param list>|null $pricingMenus * * @return self */ - public function setPricingMenus(?array $pricingMenus) : self + public function setPricingMenus(?array $pricingMenus): self { $this->initialized['pricingMenus'] = true; $this->pricingMenus = $pricingMenus; diff --git a/generated/Pricing/Model/PricingPlans.php b/generated/Pricing/Model/PricingPlans.php index 1b1c43e..2a8f4d9 100644 --- a/generated/Pricing/Model/PricingPlans.php +++ b/generated/Pricing/Model/PricingPlans.php @@ -7,34 +7,34 @@ class PricingPlans extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $pricingPlans; /** * * - * @return array[]|null + * @return list>|null */ - public function getPricingPlans() : ?array + public function getPricingPlans(): ?array { return $this->pricingPlans; } /** * * - * @param array[]|null $pricingPlans + * @param list>|null $pricingPlans * * @return self */ - public function setPricingPlans(?array $pricingPlans) : self + public function setPricingPlans(?array $pricingPlans): self { $this->initialized['pricingPlans'] = true; $this->pricingPlans = $pricingPlans; diff --git a/generated/Pricing/Model/PricingTier.php b/generated/Pricing/Model/PricingTier.php index fe653ab..961e603 100644 --- a/generated/Pricing/Model/PricingTier.php +++ b/generated/Pricing/Model/PricingTier.php @@ -7,118 +7,118 @@ class PricingTier extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 上限(upper limit) + * Upper limit * * @var int|null */ protected $upTo; /** - * 単位金額(amount per unit) + * Amount per unit * * @var int|null */ protected $unitAmount; /** - * 固定金額(fixed Amount) + * Fixed amount * * @var int|null */ protected $flatAmount; /** - * inf + * Indefinite * * @var bool|null */ protected $inf; /** - * 上限(upper limit) + * Upper limit * * @return int|null */ - public function getUpTo() : ?int + public function getUpTo(): ?int { return $this->upTo; } /** - * 上限(upper limit) + * Upper limit * * @param int|null $upTo * * @return self */ - public function setUpTo(?int $upTo) : self + public function setUpTo(?int $upTo): self { $this->initialized['upTo'] = true; $this->upTo = $upTo; return $this; } /** - * 単位金額(amount per unit) + * Amount per unit * * @return int|null */ - public function getUnitAmount() : ?int + public function getUnitAmount(): ?int { return $this->unitAmount; } /** - * 単位金額(amount per unit) + * Amount per unit * * @param int|null $unitAmount * * @return self */ - public function setUnitAmount(?int $unitAmount) : self + public function setUnitAmount(?int $unitAmount): self { $this->initialized['unitAmount'] = true; $this->unitAmount = $unitAmount; return $this; } /** - * 固定金額(fixed Amount) + * Fixed amount * * @return int|null */ - public function getFlatAmount() : ?int + public function getFlatAmount(): ?int { return $this->flatAmount; } /** - * 固定金額(fixed Amount) + * Fixed amount * * @param int|null $flatAmount * * @return self */ - public function setFlatAmount(?int $flatAmount) : self + public function setFlatAmount(?int $flatAmount): self { $this->initialized['flatAmount'] = true; $this->flatAmount = $flatAmount; return $this; } /** - * inf + * Indefinite * * @return bool|null */ - public function getInf() : ?bool + public function getInf(): ?bool { return $this->inf; } /** - * inf + * Indefinite * * @param bool|null $inf * * @return self */ - public function setInf(?bool $inf) : self + public function setInf(?bool $inf): self { $this->initialized['inf'] = true; $this->inf = $inf; diff --git a/generated/Pricing/Model/PricingTieredUnit.php b/generated/Pricing/Model/PricingTieredUnit.php index 6db9cc3..87b71ef 100644 --- a/generated/Pricing/Model/PricingTieredUnit.php +++ b/generated/Pricing/Model/PricingTieredUnit.php @@ -7,90 +7,90 @@ class PricingTieredUnit extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * + * Universally Unique Identifier * * @var string|null */ protected $meteringUnitId; /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @var string|null */ protected $recurringInterval; /** - * + * Indicates if the unit is used * * @var bool|null */ protected $used; /** - * 上限値(upper limit) + * Upper limit * * @var int|null */ protected $upperCount; /** - * + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ @@ -98,290 +98,290 @@ public function isInitialized($property) : bool /** * * - * @var PricingTier[]|null + * @var list|null */ protected $tiers; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * + * Universally Unique Identifier * * @return string|null */ - public function getMeteringUnitId() : ?string + public function getMeteringUnitId(): ?string { return $this->meteringUnitId; } /** - * + * Universally Unique Identifier * * @param string|null $meteringUnitId * * @return self */ - public function setMeteringUnitId(?string $meteringUnitId) : self + public function setMeteringUnitId(?string $meteringUnitId): self { $this->initialized['meteringUnitId'] = true; $this->meteringUnitId = $meteringUnitId; return $this; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @return string|null */ - public function getRecurringInterval() : ?string + public function getRecurringInterval(): ?string { return $this->recurringInterval; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @param string|null $recurringInterval * * @return self */ - public function setRecurringInterval(?string $recurringInterval) : self + public function setRecurringInterval(?string $recurringInterval): self { $this->initialized['recurringInterval'] = true; $this->recurringInterval = $recurringInterval; return $this; } /** - * + * Indicates if the unit is used * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * + * Indicates if the unit is used * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; return $this; } /** - * 上限値(upper limit) + * Upper limit * * @return int|null */ - public function getUpperCount() : ?int + public function getUpperCount(): ?int { return $this->upperCount; } /** - * 上限値(upper limit) + * Upper limit * * @param int|null $upperCount * * @return self */ - public function setUpperCount(?int $upperCount) : self + public function setUpperCount(?int $upperCount): self { $this->initialized['upperCount'] = true; $this->upperCount = $upperCount; return $this; } /** - * + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; @@ -390,20 +390,20 @@ public function setCurrency(?string $currency) : self /** * * - * @return PricingTier[]|null + * @return list|null */ - public function getTiers() : ?array + public function getTiers(): ?array { return $this->tiers; } /** * * - * @param PricingTier[]|null $tiers + * @param list|null $tiers * * @return self */ - public function setTiers(?array $tiers) : self + public function setTiers(?array $tiers): self { $this->initialized['tiers'] = true; $this->tiers = $tiers; diff --git a/generated/Pricing/Model/PricingTieredUnitForSave.php b/generated/Pricing/Model/PricingTieredUnitForSave.php index 0beb24f..589e39c 100644 --- a/generated/Pricing/Model/PricingTieredUnitForSave.php +++ b/generated/Pricing/Model/PricingTieredUnitForSave.php @@ -7,63 +7,63 @@ class PricingTieredUnitForSave extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 上限値(upper limit) + * Upper limit * * @var int|null */ protected $upperCount; /** - * + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ @@ -71,196 +71,196 @@ public function isInitialized($property) : bool /** * * - * @var PricingTier[]|null + * @var list|null */ protected $tiers; /** - * 上限値(upper limit) + * Upper limit * * @return int|null */ - public function getUpperCount() : ?int + public function getUpperCount(): ?int { return $this->upperCount; } /** - * 上限値(upper limit) + * Upper limit * * @param int|null $upperCount * * @return self */ - public function setUpperCount(?int $upperCount) : self + public function setUpperCount(?int $upperCount): self { $this->initialized['upperCount'] = true; $this->upperCount = $upperCount; return $this; } /** - * + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; @@ -269,20 +269,20 @@ public function setCurrency(?string $currency) : self /** * * - * @return PricingTier[]|null + * @return list|null */ - public function getTiers() : ?array + public function getTiers(): ?array { return $this->tiers; } /** * * - * @param PricingTier[]|null $tiers + * @param list|null $tiers * * @return self */ - public function setTiers(?array $tiers) : self + public function setTiers(?array $tiers): self { $this->initialized['tiers'] = true; $this->tiers = $tiers; diff --git a/generated/Pricing/Model/PricingTieredUsageUnit.php b/generated/Pricing/Model/PricingTieredUsageUnit.php index a3e853e..d604b83 100644 --- a/generated/Pricing/Model/PricingTieredUsageUnit.php +++ b/generated/Pricing/Model/PricingTieredUsageUnit.php @@ -7,90 +7,90 @@ class PricingTieredUsageUnit extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * + * Universally Unique Identifier * * @var string|null */ protected $meteringUnitId; /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @var string|null */ protected $recurringInterval; /** - * + * Indicates if the unit is used * * @var bool|null */ protected $used; /** - * 上限値(upper limit) + * Upper limit * * @var int|null */ protected $upperCount; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ @@ -98,290 +98,290 @@ public function isInitialized($property) : bool /** * * - * @var PricingTier[]|null + * @var list|null */ protected $tiers; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * + * Universally Unique Identifier * * @return string|null */ - public function getMeteringUnitId() : ?string + public function getMeteringUnitId(): ?string { return $this->meteringUnitId; } /** - * + * Universally Unique Identifier * * @param string|null $meteringUnitId * * @return self */ - public function setMeteringUnitId(?string $meteringUnitId) : self + public function setMeteringUnitId(?string $meteringUnitId): self { $this->initialized['meteringUnitId'] = true; $this->meteringUnitId = $meteringUnitId; return $this; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @return string|null */ - public function getRecurringInterval() : ?string + public function getRecurringInterval(): ?string { return $this->recurringInterval; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @param string|null $recurringInterval * * @return self */ - public function setRecurringInterval(?string $recurringInterval) : self + public function setRecurringInterval(?string $recurringInterval): self { $this->initialized['recurringInterval'] = true; $this->recurringInterval = $recurringInterval; return $this; } /** - * + * Indicates if the unit is used * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } /** - * + * Indicates if the unit is used * * @param bool|null $used * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; return $this; } /** - * 上限値(upper limit) + * Upper limit * * @return int|null */ - public function getUpperCount() : ?int + public function getUpperCount(): ?int { return $this->upperCount; } /** - * 上限値(upper limit) + * Upper limit * * @param int|null $upperCount * * @return self */ - public function setUpperCount(?int $upperCount) : self + public function setUpperCount(?int $upperCount): self { $this->initialized['upperCount'] = true; $this->upperCount = $upperCount; return $this; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; @@ -390,20 +390,20 @@ public function setCurrency(?string $currency) : self /** * * - * @return PricingTier[]|null + * @return list|null */ - public function getTiers() : ?array + public function getTiers(): ?array { return $this->tiers; } /** * * - * @param PricingTier[]|null $tiers + * @param list|null $tiers * * @return self */ - public function setTiers(?array $tiers) : self + public function setTiers(?array $tiers): self { $this->initialized['tiers'] = true; $this->tiers = $tiers; diff --git a/generated/Pricing/Model/PricingTieredUsageUnitForSave.php b/generated/Pricing/Model/PricingTieredUsageUnitForSave.php index 6997912..c8e105f 100644 --- a/generated/Pricing/Model/PricingTieredUsageUnitForSave.php +++ b/generated/Pricing/Model/PricingTieredUsageUnitForSave.php @@ -7,63 +7,63 @@ class PricingTieredUsageUnitForSave extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 上限値(upper limit) + * Upper limit * * @var int|null */ protected $upperCount; /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ @@ -71,196 +71,196 @@ public function isInitialized($property) : bool /** * * - * @var PricingTier[]|null + * @var list|null */ protected $tiers; /** - * 上限値(upper limit) + * Upper limit * * @return int|null */ - public function getUpperCount() : ?int + public function getUpperCount(): ?int { return $this->upperCount; } /** - * 上限値(upper limit) + * Upper limit * * @param int|null $upperCount * * @return self */ - public function setUpperCount(?int $upperCount) : self + public function setUpperCount(?int $upperCount): self { $this->initialized['upperCount'] = true; $this->upperCount = $upperCount; return $this; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * 計測ユニット名(metering unit name) + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; @@ -269,20 +269,20 @@ public function setCurrency(?string $currency) : self /** * * - * @return PricingTier[]|null + * @return list|null */ - public function getTiers() : ?array + public function getTiers(): ?array { return $this->tiers; } /** * * - * @param PricingTier[]|null $tiers + * @param list|null $tiers * * @return self */ - public function setTiers(?array $tiers) : self + public function setTiers(?array $tiers): self { $this->initialized['tiers'] = true; $this->tiers = $tiers; diff --git a/generated/Pricing/Model/PricingTiers.php b/generated/Pricing/Model/PricingTiers.php index 542db1c..1d7b5d6 100644 --- a/generated/Pricing/Model/PricingTiers.php +++ b/generated/Pricing/Model/PricingTiers.php @@ -7,34 +7,34 @@ class PricingTiers extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var PricingTier[]|null + * @var list|null */ protected $tiers; /** * * - * @return PricingTier[]|null + * @return list|null */ - public function getTiers() : ?array + public function getTiers(): ?array { return $this->tiers; } /** * * - * @param PricingTier[]|null $tiers + * @param list|null $tiers * * @return self */ - public function setTiers(?array $tiers) : self + public function setTiers(?array $tiers): self { $this->initialized['tiers'] = true; $this->tiers = $tiers; diff --git a/generated/Pricing/Model/PricingUnitBaseProps.php b/generated/Pricing/Model/PricingUnitBaseProps.php index 282e55f..4d90879 100644 --- a/generated/Pricing/Model/PricingUnitBaseProps.php +++ b/generated/Pricing/Model/PricingUnitBaseProps.php @@ -7,161 +7,161 @@ class PricingUnitBaseProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ protected $currency; /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; diff --git a/generated/Pricing/Model/PricingUnits.php b/generated/Pricing/Model/PricingUnits.php index 55ffad7..0b4e3cf 100644 --- a/generated/Pricing/Model/PricingUnits.php +++ b/generated/Pricing/Model/PricingUnits.php @@ -7,34 +7,34 @@ class PricingUnits extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $units; /** * * - * @return array[]|null + * @return list>|null */ - public function getUnits() : ?array + public function getUnits(): ?array { return $this->units; } /** * * - * @param array[]|null $units + * @param list>|null $units * * @return self */ - public function setUnits(?array $units) : self + public function setUnits(?array $units): self { $this->initialized['units'] = true; $this->units = $units; diff --git a/generated/Pricing/Model/PricingUsageUnit.php b/generated/Pricing/Model/PricingUsageUnit.php index d5bcc11..4695651 100644 --- a/generated/Pricing/Model/PricingUsageUnit.php +++ b/generated/Pricing/Model/PricingUsageUnit.php @@ -7,27 +7,27 @@ class PricingUsageUnit extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * + * Universally Unique Identifier * * @var string|null */ protected $meteringUnitId; /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @var string|null @@ -40,134 +40,134 @@ public function isInitialized($property) : bool */ protected $used; /** - * 上限値(upper limit) + * Upper limit * * @var int|null */ protected $upperCount; /** - * 使用量あたりの金額(amount per usage) + * Amount per usage * * @var int|null */ protected $unitAmount; /** - * + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ protected $currency; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * + * Universally Unique Identifier * * @return string|null */ - public function getMeteringUnitId() : ?string + public function getMeteringUnitId(): ?string { return $this->meteringUnitId; } /** - * + * Universally Unique Identifier * * @param string|null $meteringUnitId * * @return self */ - public function setMeteringUnitId(?string $meteringUnitId) : self + public function setMeteringUnitId(?string $meteringUnitId): self { $this->initialized['meteringUnitId'] = true; $this->meteringUnitId = $meteringUnitId; return $this; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @return string|null */ - public function getRecurringInterval() : ?string + public function getRecurringInterval(): ?string { return $this->recurringInterval; } /** - * 繰り返し期間(cycle) - month: 月単位(monthly) - year: 年単位(yearly) + * Cycle + month: Monthly + year: Yearly * * @param string|null $recurringInterval * * @return self */ - public function setRecurringInterval(?string $recurringInterval) : self + public function setRecurringInterval(?string $recurringInterval): self { $this->initialized['recurringInterval'] = true; $this->recurringInterval = $recurringInterval; @@ -178,7 +178,7 @@ public function setRecurringInterval(?string $recurringInterval) : self * * @return bool|null */ - public function getUsed() : ?bool + public function getUsed(): ?bool { return $this->used; } @@ -189,221 +189,221 @@ public function getUsed() : ?bool * * @return self */ - public function setUsed(?bool $used) : self + public function setUsed(?bool $used): self { $this->initialized['used'] = true; $this->used = $used; return $this; } /** - * 上限値(upper limit) + * Upper limit * * @return int|null */ - public function getUpperCount() : ?int + public function getUpperCount(): ?int { return $this->upperCount; } /** - * 上限値(upper limit) + * Upper limit * * @param int|null $upperCount * * @return self */ - public function setUpperCount(?int $upperCount) : self + public function setUpperCount(?int $upperCount): self { $this->initialized['upperCount'] = true; $this->upperCount = $upperCount; return $this; } /** - * 使用量あたりの金額(amount per usage) + * Amount per usage * * @return int|null */ - public function getUnitAmount() : ?int + public function getUnitAmount(): ?int { return $this->unitAmount; } /** - * 使用量あたりの金額(amount per usage) + * Amount per usage * * @param int|null $unitAmount * * @return self */ - public function setUnitAmount(?int $unitAmount) : self + public function setUnitAmount(?int $unitAmount): self { $this->initialized['unitAmount'] = true; $this->unitAmount = $unitAmount; return $this; } /** - * + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; diff --git a/generated/Pricing/Model/PricingUsageUnitForSave.php b/generated/Pricing/Model/PricingUsageUnitForSave.php index 9746add..04878cb 100644 --- a/generated/Pricing/Model/PricingUsageUnitForSave.php +++ b/generated/Pricing/Model/PricingUsageUnitForSave.php @@ -7,282 +7,282 @@ class PricingUsageUnitForSave extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 上限値(upper limit) + * Upper limit * * @var int|null */ protected $upperCount; /** - * 使用量あたりの金額(amount per usage) + * Amount per usage * * @var int|null */ protected $unitAmount; /** - * + * Metering unit name * * @var string|null */ protected $meteringUnitName; /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @var string|null */ protected $aggregateUsage; /** - * 名前(name) + * Name * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display Name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @var string|null */ protected $type; /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @var string|null */ protected $currency; /** - * 上限値(upper limit) + * Upper limit * * @return int|null */ - public function getUpperCount() : ?int + public function getUpperCount(): ?int { return $this->upperCount; } /** - * 上限値(upper limit) + * Upper limit * * @param int|null $upperCount * * @return self */ - public function setUpperCount(?int $upperCount) : self + public function setUpperCount(?int $upperCount): self { $this->initialized['upperCount'] = true; $this->upperCount = $upperCount; return $this; } /** - * 使用量あたりの金額(amount per usage) + * Amount per usage * * @return int|null */ - public function getUnitAmount() : ?int + public function getUnitAmount(): ?int { return $this->unitAmount; } /** - * 使用量あたりの金額(amount per usage) + * Amount per usage * * @param int|null $unitAmount * * @return self */ - public function setUnitAmount(?int $unitAmount) : self + public function setUnitAmount(?int $unitAmount): self { $this->initialized['unitAmount'] = true; $this->unitAmount = $unitAmount; return $this; } /** - * + * Metering unit name * * @return string|null */ - public function getMeteringUnitName() : ?string + public function getMeteringUnitName(): ?string { return $this->meteringUnitName; } /** - * + * Metering unit name * * @param string|null $meteringUnitName * * @return self */ - public function setMeteringUnitName(?string $meteringUnitName) : self + public function setMeteringUnitName(?string $meteringUnitName): self { $this->initialized['meteringUnitName'] = true; $this->meteringUnitName = $meteringUnitName; return $this; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @return string|null */ - public function getAggregateUsage() : ?string + public function getAggregateUsage(): ?string { return $this->aggregateUsage; } /** - * 使用量の集計方法(aggregate usage) - sum: 期間内の使用量の合計(total usage during the period) - max: 期間内の使用量の最大値(maximum usage during the period) + * Aggregate usage + sum: Total usage during the period + max: Maximum usage during the period * * @param string|null $aggregateUsage * * @return self */ - public function setAggregateUsage(?string $aggregateUsage) : self + public function setAggregateUsage(?string $aggregateUsage): self { $this->initialized['aggregateUsage'] = true; $this->aggregateUsage = $aggregateUsage; return $this; } /** - * 名前(name) + * Name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 名前(name) + * Name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display Name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display Name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @return string|null */ - public function getType() : ?string + public function getType(): ?string { return $this->type; } /** - * 計測単位の種別(unit of measurement type) - fixed: 固定ユニット(fixed unit) - usage: 使用量ユニット(usage unit) - tiered: 段階ユニット(tiered unit) - tiered_usage: 段階的使用量ユニット(tiered usage unit) + * Unit of measurement type + fixed: Fixed unit + usage: Usage unit + tiered: Tiered unit + tiered_usage: Tiered usage unit * * @param string|null $type * * @return self */ - public function setType(?string $type) : self + public function setType(?string $type): self { $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @return string|null */ - public function getCurrency() : ?string + public function getCurrency(): ?string { return $this->currency; } /** - * 計測単位の通貨(unit of currency) + * Unit of currency * * @param string|null $currency * * @return self */ - public function setCurrency(?string $currency) : self + public function setCurrency(?string $currency): self { $this->initialized['currency'] = true; $this->currency = $currency; diff --git a/generated/Pricing/Model/SavePricingMenuParam.php b/generated/Pricing/Model/SavePricingMenuParam.php index 4ec7724..97aab5e 100644 --- a/generated/Pricing/Model/SavePricingMenuParam.php +++ b/generated/Pricing/Model/SavePricingMenuParam.php @@ -7,118 +7,118 @@ class SavePricingMenuParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * メニュー名(menu name) + * Menu name * * @var string|null */ protected $name; /** - * メニュー表示名(menu display name) + * Menu display name * * @var string|null */ protected $displayName; /** - * メニュー説明(menu description) + * Menu description * * @var string|null */ protected $description; /** - * 追加するユニットID(unit id to add) + * Unit IDs to add * - * @var string[]|null + * @var list|null */ protected $unitIds; /** - * メニュー名(menu name) + * Menu name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * メニュー名(menu name) + * Menu name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * メニュー表示名(menu display name) + * Menu display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * メニュー表示名(menu display name) + * Menu display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * メニュー説明(menu description) + * Menu description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * メニュー説明(menu description) + * Menu description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * 追加するユニットID(unit id to add) + * Unit IDs to add * - * @return string[]|null + * @return list|null */ - public function getUnitIds() : ?array + public function getUnitIds(): ?array { return $this->unitIds; } /** - * 追加するユニットID(unit id to add) + * Unit IDs to add * - * @param string[]|null $unitIds + * @param list|null $unitIds * * @return self */ - public function setUnitIds(?array $unitIds) : self + public function setUnitIds(?array $unitIds): self { $this->initialized['unitIds'] = true; $this->unitIds = $unitIds; diff --git a/generated/Pricing/Model/SavePricingPlanParam.php b/generated/Pricing/Model/SavePricingPlanParam.php index fc672f2..d5027ab 100644 --- a/generated/Pricing/Model/SavePricingPlanParam.php +++ b/generated/Pricing/Model/SavePricingPlanParam.php @@ -7,124 +7,118 @@ class SavePricingPlanParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @var string|null */ protected $name; /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @var string|null */ protected $displayName; /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @var string|null */ protected $description; /** - * メニューID(料金プランに追加するメニューIDを設定) - Menu ID (menu ID to be added to the pricing plan) - - * - * @var string[]|null - */ + * Menu ID to be added to the pricing plan + * + * @var list|null + */ protected $menuIds; /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 料金プラン名(pricing plan name) + * Pricing plan name * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 料金プラン表示名(pricing plan display name) + * Pricing plan display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 料金プラン説明(pricing plan description) + * Pricing plan description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; return $this; } /** - * メニューID(料金プランに追加するメニューIDを設定) - Menu ID (menu ID to be added to the pricing plan) - - * - * @return string[]|null - */ - public function getMenuIds() : ?array + * Menu ID to be added to the pricing plan + * + * @return list|null + */ + public function getMenuIds(): ?array { return $this->menuIds; } /** - * メニューID(料金プランに追加するメニューIDを設定) - Menu ID (menu ID to be added to the pricing plan) - - * - * @param string[]|null $menuIds - * - * @return self - */ - public function setMenuIds(?array $menuIds) : self + * Menu ID to be added to the pricing plan + * + * @param list|null $menuIds + * + * @return self + */ + public function setMenuIds(?array $menuIds): self { $this->initialized['menuIds'] = true; $this->menuIds = $menuIds; diff --git a/generated/Pricing/Model/TaxRate.php b/generated/Pricing/Model/TaxRate.php index 168cf96..d04d21f 100644 --- a/generated/Pricing/Model/TaxRate.php +++ b/generated/Pricing/Model/TaxRate.php @@ -7,202 +7,202 @@ class TaxRate extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * + * Universally Unique Identifier * * @var string|null */ protected $id; /** - * 税率の名前(name of tax rate) + * Name of tax rate * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display name * * @var string|null */ protected $displayName; /** - * 税率(percentage) + * Percentage * * @var float|null */ protected $percentage; /** - * 内税かどうか(inclusive or not) + * Inclusive or not * * @var bool|null */ protected $inclusive; /** - * ISO 3166-1 alpha-2 の国コード(Country code of ISO 3166-1 alpha-2) + * Country code of ISO 3166-1 alpha-2 * * @var string|null */ protected $country; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * + * Universally Unique Identifier * * @return string|null */ - public function getId() : ?string + public function getId(): ?string { return $this->id; } /** - * + * Universally Unique Identifier * * @param string|null $id * * @return self */ - public function setId(?string $id) : self + public function setId(?string $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; } /** - * 税率の名前(name of tax rate) + * Name of tax rate * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 税率の名前(name of tax rate) + * Name of tax rate * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 税率(percentage) + * Percentage * * @return float|null */ - public function getPercentage() : ?float + public function getPercentage(): ?float { return $this->percentage; } /** - * 税率(percentage) + * Percentage * * @param float|null $percentage * * @return self */ - public function setPercentage(?float $percentage) : self + public function setPercentage(?float $percentage): self { $this->initialized['percentage'] = true; $this->percentage = $percentage; return $this; } /** - * 内税かどうか(inclusive or not) + * Inclusive or not * * @return bool|null */ - public function getInclusive() : ?bool + public function getInclusive(): ?bool { return $this->inclusive; } /** - * 内税かどうか(inclusive or not) + * Inclusive or not * * @param bool|null $inclusive * * @return self */ - public function setInclusive(?bool $inclusive) : self + public function setInclusive(?bool $inclusive): self { $this->initialized['inclusive'] = true; $this->inclusive = $inclusive; return $this; } /** - * ISO 3166-1 alpha-2 の国コード(Country code of ISO 3166-1 alpha-2) + * Country code of ISO 3166-1 alpha-2 * * @return string|null */ - public function getCountry() : ?string + public function getCountry(): ?string { return $this->country; } /** - * ISO 3166-1 alpha-2 の国コード(Country code of ISO 3166-1 alpha-2) + * Country code of ISO 3166-1 alpha-2 * * @param string|null $country * * @return self */ - public function setCountry(?string $country) : self + public function setCountry(?string $country): self { $this->initialized['country'] = true; $this->country = $country; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; diff --git a/generated/Pricing/Model/TaxRateProps.php b/generated/Pricing/Model/TaxRateProps.php index 990b605..8eb8737 100644 --- a/generated/Pricing/Model/TaxRateProps.php +++ b/generated/Pricing/Model/TaxRateProps.php @@ -7,174 +7,174 @@ class TaxRateProps extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 税率の名前(name of tax rate) + * Name of tax rate * * @var string|null */ protected $name; /** - * 表示名(display name) + * Display name * * @var string|null */ protected $displayName; /** - * 税率(percentage) + * Percentage * * @var float|null */ protected $percentage; /** - * 内税かどうか(inclusive or not) + * Inclusive or not * * @var bool|null */ protected $inclusive; /** - * ISO 3166-1 alpha-2 の国コード(Country code of ISO 3166-1 alpha-2) + * Country code of ISO 3166-1 alpha-2 * * @var string|null */ protected $country; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 税率の名前(name of tax rate) + * Name of tax rate * * @return string|null */ - public function getName() : ?string + public function getName(): ?string { return $this->name; } /** - * 税率の名前(name of tax rate) + * Name of tax rate * * @param string|null $name * * @return self */ - public function setName(?string $name) : self + public function setName(?string $name): self { $this->initialized['name'] = true; $this->name = $name; return $this; } /** - * 表示名(display name) + * Display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 税率(percentage) + * Percentage * * @return float|null */ - public function getPercentage() : ?float + public function getPercentage(): ?float { return $this->percentage; } /** - * 税率(percentage) + * Percentage * * @param float|null $percentage * * @return self */ - public function setPercentage(?float $percentage) : self + public function setPercentage(?float $percentage): self { $this->initialized['percentage'] = true; $this->percentage = $percentage; return $this; } /** - * 内税かどうか(inclusive or not) + * Inclusive or not * * @return bool|null */ - public function getInclusive() : ?bool + public function getInclusive(): ?bool { return $this->inclusive; } /** - * 内税かどうか(inclusive or not) + * Inclusive or not * * @param bool|null $inclusive * * @return self */ - public function setInclusive(?bool $inclusive) : self + public function setInclusive(?bool $inclusive): self { $this->initialized['inclusive'] = true; $this->inclusive = $inclusive; return $this; } /** - * ISO 3166-1 alpha-2 の国コード(Country code of ISO 3166-1 alpha-2) + * Country code of ISO 3166-1 alpha-2 * * @return string|null */ - public function getCountry() : ?string + public function getCountry(): ?string { return $this->country; } /** - * ISO 3166-1 alpha-2 の国コード(Country code of ISO 3166-1 alpha-2) + * Country code of ISO 3166-1 alpha-2 * * @param string|null $country * * @return self */ - public function setCountry(?string $country) : self + public function setCountry(?string $country): self { $this->initialized['country'] = true; $this->country = $country; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; diff --git a/generated/Pricing/Model/TaxRates.php b/generated/Pricing/Model/TaxRates.php index f19c91e..7daa4bb 100644 --- a/generated/Pricing/Model/TaxRates.php +++ b/generated/Pricing/Model/TaxRates.php @@ -7,34 +7,34 @@ class TaxRates extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var array[]|null + * @var list>|null */ protected $taxRates; /** * * - * @return array[]|null + * @return list>|null */ - public function getTaxRates() : ?array + public function getTaxRates(): ?array { return $this->taxRates; } /** * * - * @param array[]|null $taxRates + * @param list>|null $taxRates * * @return self */ - public function setTaxRates(?array $taxRates) : self + public function setTaxRates(?array $taxRates): self { $this->initialized['taxRates'] = true; $this->taxRates = $taxRates; diff --git a/generated/Pricing/Model/UpdateMeteringUnitTimestampCountNowParam.php b/generated/Pricing/Model/UpdateMeteringUnitTimestampCountNowParam.php index c0a4d15..f1e2e9d 100644 --- a/generated/Pricing/Model/UpdateMeteringUnitTimestampCountNowParam.php +++ b/generated/Pricing/Model/UpdateMeteringUnitTimestampCountNowParam.php @@ -7,74 +7,74 @@ class UpdateMeteringUnitTimestampCountNowParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 更新方法(update method) - add: 加算(addition) - sub: 減算(subtraction) - direct: 上書き(overwrite) + * Update method + add: Addition + sub: Subtraction + direct: Overwrite * * @var string|null */ protected $method; /** - * 件数(count) + * Count * * @var int|null */ protected $count; /** - * 更新方法(update method) - add: 加算(addition) - sub: 減算(subtraction) - direct: 上書き(overwrite) + * Update method + add: Addition + sub: Subtraction + direct: Overwrite * * @return string|null */ - public function getMethod() : ?string + public function getMethod(): ?string { return $this->method; } /** - * 更新方法(update method) - add: 加算(addition) - sub: 減算(subtraction) - direct: 上書き(overwrite) + * Update method + add: Addition + sub: Subtraction + direct: Overwrite * * @param string|null $method * * @return self */ - public function setMethod(?string $method) : self + public function setMethod(?string $method): self { $this->initialized['method'] = true; $this->method = $method; return $this; } /** - * 件数(count) + * Count * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } /** - * 件数(count) + * Count * * @param int|null $count * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; diff --git a/generated/Pricing/Model/UpdateMeteringUnitTimestampCountParam.php b/generated/Pricing/Model/UpdateMeteringUnitTimestampCountParam.php index 0ca245b..5ca60c4 100644 --- a/generated/Pricing/Model/UpdateMeteringUnitTimestampCountParam.php +++ b/generated/Pricing/Model/UpdateMeteringUnitTimestampCountParam.php @@ -7,74 +7,74 @@ class UpdateMeteringUnitTimestampCountParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 更新方法(update method) - add: 加算(addition) - sub: 減算(subtraction) - direct: 上書き(overwrite) + * Update method + add: Addition + sub: Subtraction + direct: Overwrite * * @var string|null */ protected $method; /** - * 件数(count) + * Count * * @var int|null */ protected $count; /** - * 更新方法(update method) - add: 加算(addition) - sub: 減算(subtraction) - direct: 上書き(overwrite) + * Update method + add: Addition + sub: Subtraction + direct: Overwrite * * @return string|null */ - public function getMethod() : ?string + public function getMethod(): ?string { return $this->method; } /** - * 更新方法(update method) - add: 加算(addition) - sub: 減算(subtraction) - direct: 上書き(overwrite) + * Update method + add: Addition + sub: Subtraction + direct: Overwrite * * @param string|null $method * * @return self */ - public function setMethod(?string $method) : self + public function setMethod(?string $method): self { $this->initialized['method'] = true; $this->method = $method; return $this; } /** - * 件数(count) + * Count * * @return int|null */ - public function getCount() : ?int + public function getCount(): ?int { return $this->count; } /** - * 件数(count) + * Count * * @param int|null $count * * @return self */ - public function setCount(?int $count) : self + public function setCount(?int $count): self { $this->initialized['count'] = true; $this->count = $count; diff --git a/generated/Pricing/Model/UpdatePricingPlansUsedParam.php b/generated/Pricing/Model/UpdatePricingPlansUsedParam.php index bd6d564..80099ec 100644 --- a/generated/Pricing/Model/UpdatePricingPlansUsedParam.php +++ b/generated/Pricing/Model/UpdatePricingPlansUsedParam.php @@ -7,34 +7,34 @@ class UpdatePricingPlansUsedParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** * * - * @var string[]|null + * @var list|null */ protected $planIds; /** * * - * @return string[]|null + * @return list|null */ - public function getPlanIds() : ?array + public function getPlanIds(): ?array { return $this->planIds; } /** * * - * @param string[]|null $planIds + * @param list|null $planIds * * @return self */ - public function setPlanIds(?array $planIds) : self + public function setPlanIds(?array $planIds): self { $this->initialized['planIds'] = true; $this->planIds = $planIds; diff --git a/generated/Pricing/Model/UpdateTaxRateParam.php b/generated/Pricing/Model/UpdateTaxRateParam.php index e59ead2..f24e3e1 100644 --- a/generated/Pricing/Model/UpdateTaxRateParam.php +++ b/generated/Pricing/Model/UpdateTaxRateParam.php @@ -7,62 +7,62 @@ class UpdateTaxRateParam extends \ArrayObject /** * @var array */ - protected $initialized = array(); - public function isInitialized($property) : bool + protected $initialized = []; + public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } /** - * 表示名(display name) + * Display name * * @var string|null */ protected $displayName; /** - * 説明(description) + * Description * * @var string|null */ protected $description; /** - * 表示名(display name) + * Display name * * @return string|null */ - public function getDisplayName() : ?string + public function getDisplayName(): ?string { return $this->displayName; } /** - * 表示名(display name) + * Display name * * @param string|null $displayName * * @return self */ - public function setDisplayName(?string $displayName) : self + public function setDisplayName(?string $displayName): self { $this->initialized['displayName'] = true; $this->displayName = $displayName; return $this; } /** - * 説明(description) + * Description * * @return string|null */ - public function getDescription() : ?string + public function getDescription(): ?string { return $this->description; } /** - * 説明(description) + * Description * * @param string|null $description * * @return self */ - public function setDescription(?string $description) : self + public function setDescription(?string $description): self { $this->initialized['description'] = true; $this->description = $description; diff --git a/generated/Pricing/Normalizer/ErrorNormalizer.php b/generated/Pricing/Normalizer/ErrorNormalizer.php index fc1175c..bc358c0 100644 --- a/generated/Pricing/Normalizer/ErrorNormalizer.php +++ b/generated/Pricing/Normalizer/ErrorNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class => false]; } - if (\array_key_exists('message', $data) && $data['message'] !== null) { - $object->setMessage($data['message']); - unset($data['message']); + } +} else { + class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class; } - elseif (\array_key_exists('message', $data) && $data['message'] === null) { - $object->setMessage(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('message', $data) && $data['message'] !== null) { + $object->setMessage($data['message']); + unset($data['message']); + } + elseif (\array_key_exists('message', $data) && $data['message'] === null) { + $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['type'] = $object->getType(); - $data['message'] = $object->getMessage(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['type'] = $object->getType(); + $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/JaneObjectNormalizer.php b/generated/Pricing/Normalizer/JaneObjectNormalizer.php index f6b830f..4c6efeb 100644 --- a/generated/Pricing/Normalizer/JaneObjectNormalizer.php +++ b/generated/Pricing/Normalizer/JaneObjectNormalizer.php @@ -10,53 +10,259 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - protected $normalizers = array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\ErrorNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnit' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingTieredUsageUnitNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnit' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingTieredUnitNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnit' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingUsageUnitNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnit' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingFixedUnitNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnitBaseProps' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingUnitBasePropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnitForSave' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingTieredUsageUnitForSaveNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnitForSave' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingTieredUnitForSaveNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnitForSave' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingUsageUnitForSaveNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnitForSave' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingFixedUnitForSaveNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnits' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingUnitsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTiers' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingTiersNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingTierNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenuProps' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingMenuPropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingMenuParam' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\SavePricingMenuParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingMenuNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenus' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingMenusNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlanProps' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingPlanPropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingPlanParam' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\SavePricingPlanParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingPlanNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlans' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\PricingPlansNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdatePricingPlansUsedParam' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\UpdatePricingPlansUsedParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitTimestampCountNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitDateCountNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitMonthCountNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCounts' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitDateCountsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCounts' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitMonthCountsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDatePeriodCounts' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitDatePeriodCountsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountParam' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\UpdateMeteringUnitTimestampCountParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountNowParam' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\UpdateMeteringUnitTimestampCountNowParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRateProps' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\TaxRatePropsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRate' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\TaxRateNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateTaxRateParam' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\UpdateTaxRateParamNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRates' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\TaxRatesNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitCount' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitCountNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnits' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitsNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnit' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitNormalizer', 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitProps' => 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Normalizer\\MeteringUnitPropsNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\AntiPatternInc\\Saasus\\Sdk\\Pricing\\Runtime\\Normalizer\\ReferenceNormalizer'), $normalizersCache = array(); - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return array_key_exists($type, $this->normalizers); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUsageUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUsageUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingFixedUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUnitBasePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUsageUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUsageUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingFixedUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUnitsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTiersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTierNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingMenuPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\SavePricingMenuParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingMenuNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingMenusNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingPlanPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\SavePricingPlanParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingPlanNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingPlansNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdatePricingPlansUsedParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitTimestampCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitDateCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitMonthCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitDateCountsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitMonthCountsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitDatePeriodCountsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdateMeteringUnitTimestampCountParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdateMeteringUnitTimestampCountNowParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\TaxRatePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\TaxRateNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdateTaxRateParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\TaxRatesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitPropsNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } - public function supportsNormalization($data, $format = null, array $context = array()) : bool +} else { + class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return is_object($data) && array_key_exists(get_class($data), $this->normalizers); - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $normalizerClass = $this->normalizers[get_class($object)]; - $normalizer = $this->getNormalizer($normalizerClass); - return $normalizer->normalize($object, $format, $context); - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - $denormalizerClass = $this->normalizers[$class]; - $denormalizer = $this->getNormalizer($denormalizerClass); - return $denormalizer->denormalize($data, $class, $format, $context); - } - private function getNormalizer(string $normalizerClass) - { - return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); - } - private function initNormalizer(string $normalizerClass) - { - $normalizer = new $normalizerClass(); - $normalizer->setNormalizer($this->normalizer); - $normalizer->setDenormalizer($this->denormalizer); - $this->normalizersCache[$normalizerClass] = $normalizer; - return $normalizer; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\Error' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnit' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnit' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnit' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnit' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnitBaseProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnitForSave' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnitForSave' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnitForSave' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnitForSave' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnits' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTiers' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenuProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingMenuParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenus' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlanProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingPlanParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlans' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdatePricingPlansUsedParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCounts' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCounts' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDatePeriodCounts' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountNowParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRateProps' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRate' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateTaxRateParam' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRates' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitCount' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnits' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnit' => false, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitProps' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + protected $normalizers = [ + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\ErrorNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUsageUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUsageUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingFixedUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUnitBasePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUsageUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTieredUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUsageUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingFixedUnitForSaveNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingUnitsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTiersNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingTierNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingMenuPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\SavePricingMenuParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingMenuNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingMenusNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingPlanPropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\SavePricingPlanParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingPlanNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\PricingPlansNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdatePricingPlansUsedParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitTimestampCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitDateCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitMonthCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitDateCountsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitMonthCountsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitDatePeriodCountsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdateMeteringUnitTimestampCountParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdateMeteringUnitTimestampCountNowParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\TaxRatePropsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\TaxRateNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\UpdateTaxRateParamNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\TaxRatesNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitCountNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitsNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitNormalizer::class, + + \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class => \AntiPatternInc\Saasus\Sdk\Pricing\Normalizer\MeteringUnitPropsNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool + { + return array_key_exists($type, $this->normalizers); + } + public function supportsNormalization($data, $format = null, array $context = []): bool + { + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $normalizerClass = $this->normalizers[get_class($object)]; + $normalizer = $this->getNormalizer($normalizerClass); + return $normalizer->normalize($object, $format, $context); + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + $denormalizerClass = $this->normalizers[$type]; + $denormalizer = $this->getNormalizer($denormalizerClass); + return $denormalizer->denormalize($data, $type, $format, $context); + } + private function getNormalizer(string $normalizerClass) + { + return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); + } + private function initNormalizer(string $normalizerClass) + { + $normalizer = new $normalizerClass(); + $normalizer->setNormalizer($this->normalizer); + $normalizer->setDenormalizer($this->denormalizer); + $this->normalizersCache[$normalizerClass] = $normalizer; + return $normalizer; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\Error::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class => false, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false]; + } } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitCountNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitCountNormalizer.php index 9279915..b0af349 100644 --- a/generated/Pricing/Normalizer/MeteringUnitCountNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitCountNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitCount'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitCount'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('timestamp', $data) && $data['timestamp'] !== null) { + $object->setTimestamp($data['timestamp']); + unset($data['timestamp']); + } + elseif (\array_key_exists('timestamp', $data) && $data['timestamp'] === null) { + $object->setTimestamp(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('timestamp', $data) && $data['timestamp'] !== null) { - $object->setTimestamp($data['timestamp']); - unset($data['timestamp']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['timestamp'] = $object->getTimestamp(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('timestamp', $data) && $data['timestamp'] === null) { - $object->setTimestamp(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class => false]; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); + } +} else { + class MeteringUnitCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class; } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('timestamp', $data) && $data['timestamp'] !== null) { + $object->setTimestamp($data['timestamp']); + unset($data['timestamp']); + } + elseif (\array_key_exists('timestamp', $data) && $data['timestamp'] === null) { + $object->setTimestamp(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['timestamp'] = $object->getTimestamp(); - $data['count'] = $object->getCount(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['timestamp'] = $object->getTimestamp(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitCount' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitDateCountNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitDateCountNormalizer.php index 3b76f28..570d616 100644 --- a/generated/Pricing/Normalizer/MeteringUnitDateCountNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitDateCountNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitDateCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitDateCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate($data['date']); + unset($data['date']); + } + elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('date', $data) && $data['date'] !== null) { - $object->setDate($data['date']); - unset($data['date']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $data['date'] = $object->getDate(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('date', $data) && $data['date'] === null) { - $object->setDate(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class => false]; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); + } +} else { + class MeteringUnitDateCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class; } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate($data['date']); + unset($data['date']); + } + elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - $data['date'] = $object->getDate(); - $data['count'] = $object->getCount(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $data['date'] = $object->getDate(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitDateCountsNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitDateCountsNormalizer.php index b32c289..00ac502 100644 --- a/generated/Pricing/Normalizer/MeteringUnitDateCountsNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitDateCountsNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitDateCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitDateCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCounts'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCounts'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('counts', $data) && $data['counts'] !== null) { + $values = []; + foreach ($data['counts'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class, 'json', $context); + } + $object->setCounts($values); + unset($data['counts']); + } + elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { + $object->setCounts(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('counts', $data) && $data['counts'] !== null) { - $values = array(); - foreach ($data['counts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCount', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getCounts() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setCounts($values); - unset($data['counts']); - } - elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { - $object->setCounts(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['counts'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class MeteringUnitDateCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getCounts() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class; } - $data['counts'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('counts', $data) && $data['counts'] !== null) { + $values = []; + foreach ($data['counts'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCount::class, 'json', $context); + } + $object->setCounts($values); + unset($data['counts']); } + elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { + $object->setCounts(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getCounts() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['counts'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDateCounts::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDateCounts' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitDatePeriodCountsNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitDatePeriodCountsNormalizer.php index 83df17e..593850a 100644 --- a/generated/Pricing/Normalizer/MeteringUnitDatePeriodCountsNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitDatePeriodCountsNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitDatePeriodCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitDatePeriodCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDatePeriodCounts'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDatePeriodCounts'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('counts', $data) && $data['counts'] !== null) { + $values = []; + foreach ($data['counts'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class, 'json', $context); + } + $object->setCounts($values); + unset($data['counts']); + } + elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { + $object->setCounts(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('counts', $data) && $data['counts'] !== null) { - $values = array(); - foreach ($data['counts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitCount', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $values = []; + foreach ($object->getCounts() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setCounts($values); - unset($data['counts']); - } - elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { - $object->setCounts(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['counts'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class MeteringUnitDatePeriodCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - $values = array(); - foreach ($object->getCounts() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('counts', $data) && $data['counts'] !== null) { + $values = []; + foreach ($data['counts'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitCount::class, 'json', $context); + } + $object->setCounts($values); + unset($data['counts']); + } + elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { + $object->setCounts(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - $data['counts'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $values = []; + foreach ($object->getCounts() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } + $data['counts'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitDatePeriodCounts::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitDatePeriodCounts' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitMonthCountNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitMonthCountNormalizer.php index b028f6d..bbd201c 100644 --- a/generated/Pricing/Normalizer/MeteringUnitMonthCountNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitMonthCountNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitMonthCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitMonthCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('month', $data) && $data['month'] !== null) { + $object->setMonth($data['month']); + unset($data['month']); + } + elseif (\array_key_exists('month', $data) && $data['month'] === null) { + $object->setMonth(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('month', $data) && $data['month'] !== null) { - $object->setMonth($data['month']); - unset($data['month']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $data['month'] = $object->getMonth(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('month', $data) && $data['month'] === null) { - $object->setMonth(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class => false]; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); + } +} else { + class MeteringUnitMonthCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class; } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('month', $data) && $data['month'] !== null) { + $object->setMonth($data['month']); + unset($data['month']); + } + elseif (\array_key_exists('month', $data) && $data['month'] === null) { + $object->setMonth(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - $data['month'] = $object->getMonth(); - $data['count'] = $object->getCount(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $data['month'] = $object->getMonth(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitMonthCountsNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitMonthCountsNormalizer.php index c70480c..16ac4d8 100644 --- a/generated/Pricing/Normalizer/MeteringUnitMonthCountsNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitMonthCountsNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitMonthCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitMonthCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCounts'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCounts'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('counts', $data) && $data['counts'] !== null) { + $values = []; + foreach ($data['counts'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class, 'json', $context); + } + $object->setCounts($values); + unset($data['counts']); + } + elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { + $object->setCounts(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('counts', $data) && $data['counts'] !== null) { - $values = array(); - foreach ($data['counts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCount', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getCounts() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setCounts($values); - unset($data['counts']); - } - elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { - $object->setCounts(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['counts'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class MeteringUnitMonthCountsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getCounts() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class; } - $data['counts'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('counts', $data) && $data['counts'] !== null) { + $values = []; + foreach ($data['counts'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCount::class, 'json', $context); + } + $object->setCounts($values); + unset($data['counts']); } + elseif (\array_key_exists('counts', $data) && $data['counts'] === null) { + $object->setCounts(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getCounts() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['counts'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitMonthCounts::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitMonthCounts' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitNormalizer.php index f06e673..2d3524e 100644 --- a/generated/Pricing/Normalizer/MeteringUnitNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitNormalizer.php @@ -12,107 +12,209 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnit'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnit'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('unit_name', $data) && $data['unit_name'] !== null) { + $object->setUnitName($data['unit_name']); + unset($data['unit_name']); + } + elseif (\array_key_exists('unit_name', $data) && $data['unit_name'] === null) { + $object->setUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('unit_name', $data) && $data['unit_name'] !== null) { - $object->setUnitName($data['unit_name']); - unset($data['unit_name']); - } - elseif (\array_key_exists('unit_name', $data) && $data['unit_name'] === null) { - $object->setUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['used'] = $object->getUsed(); + $data['unit_name'] = $object->getUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class MeteringUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['used'] = $object->getUsed(); - $data['unit_name'] = $object->getUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('unit_name', $data) && $data['unit_name'] !== null) { + $object->setUnitName($data['unit_name']); + unset($data['unit_name']); + } + elseif (\array_key_exists('unit_name', $data) && $data['unit_name'] === null) { + $object->setUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['used'] = $object->getUsed(); + $data['unit_name'] = $object->getUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnit::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnit' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitPropsNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitPropsNormalizer.php index 146eed3..36da045 100644 --- a/generated/Pricing/Normalizer/MeteringUnitPropsNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitPropsNormalizer.php @@ -12,91 +12,177 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('unit_name', $data) && $data['unit_name'] !== null) { + $object->setUnitName($data['unit_name']); + unset($data['unit_name']); + } + elseif (\array_key_exists('unit_name', $data) && $data['unit_name'] === null) { + $object->setUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('unit_name', $data) && $data['unit_name'] !== null) { - $object->setUnitName($data['unit_name']); - unset($data['unit_name']); - } - elseif (\array_key_exists('unit_name', $data) && $data['unit_name'] === null) { - $object->setUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['unit_name'] = $object->getUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class => false]; } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); + } +} else { + class MeteringUnitPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class; } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('unit_name', $data) && $data['unit_name'] !== null) { + $object->setUnitName($data['unit_name']); + unset($data['unit_name']); + } + elseif (\array_key_exists('unit_name', $data) && $data['unit_name'] === null) { + $object->setUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['unit_name'] = $object->getUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); - } - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['unit_name'] = $object->getUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitProps' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitTimestampCountNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitTimestampCountNormalizer.php index 4d9a803..abc9e7e 100644 --- a/generated/Pricing/Normalizer/MeteringUnitTimestampCountNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitTimestampCountNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitTimestampCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitTimestampCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('timestamp', $data) && $data['timestamp'] !== null) { + $object->setTimestamp($data['timestamp']); + unset($data['timestamp']); + } + elseif (\array_key_exists('timestamp', $data) && $data['timestamp'] === null) { + $object->setTimestamp(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('timestamp', $data) && $data['timestamp'] !== null) { - $object->setTimestamp($data['timestamp']); - unset($data['timestamp']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $data['timestamp'] = $object->getTimestamp(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('timestamp', $data) && $data['timestamp'] === null) { - $object->setTimestamp(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class => false]; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); + } +} else { + class MeteringUnitTimestampCountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class; } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('timestamp', $data) && $data['timestamp'] !== null) { + $object->setTimestamp($data['timestamp']); + unset($data['timestamp']); + } + elseif (\array_key_exists('timestamp', $data) && $data['timestamp'] === null) { + $object->setTimestamp(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - $data['timestamp'] = $object->getTimestamp(); - $data['count'] = $object->getCount(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['metering_unit_name'] = $object->getMeteringUnitName(); + $data['timestamp'] = $object->getTimestamp(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnitTimestampCount::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnitTimestampCount' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/MeteringUnitsNormalizer.php b/generated/Pricing/Normalizer/MeteringUnitsNormalizer.php index 630a056..14a32fd 100644 --- a/generated/Pricing/Normalizer/MeteringUnitsNormalizer.php +++ b/generated/Pricing/Normalizer/MeteringUnitsNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class MeteringUnitsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class MeteringUnitsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnits'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnits'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('units', $data) && $data['units'] !== null) { - $values = array(); - foreach ($data['units'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setUnits($values); - unset($data['units']); - } - elseif (\array_key_exists('units', $data) && $data['units'] === null) { - $object->setUnits(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class MeteringUnitsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getUnits() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['units'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\MeteringUnits::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\MeteringUnits' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingFixedUnitForSaveNormalizer.php b/generated/Pricing/Normalizer/PricingFixedUnitForSaveNormalizer.php index 29fe988..fc6ce59 100644 --- a/generated/Pricing/Normalizer/PricingFixedUnitForSaveNormalizer.php +++ b/generated/Pricing/Normalizer/PricingFixedUnitForSaveNormalizer.php @@ -12,113 +12,221 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingFixedUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingFixedUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnitForSave'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnitForSave'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { - $object->setUnitAmount($data['unit_amount']); - unset($data['unit_amount']); - } - elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { - $object->setUnitAmount(null); - } - if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { - $object->setRecurringInterval($data['recurring_interval']); - unset($data['recurring_interval']); - } - elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { - $object->setRecurringInterval(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); - } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['unit_amount'] = $object->getUnitAmount(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingFixedUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['unit_amount'] = $object->getUnitAmount(); - $data['recurring_interval'] = $object->getRecurringInterval(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['unit_amount'] = $object->getUnitAmount(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnitForSave::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnitForSave' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingFixedUnitNormalizer.php b/generated/Pricing/Normalizer/PricingFixedUnitNormalizer.php index afc77cb..8363118 100644 --- a/generated/Pricing/Normalizer/PricingFixedUnitNormalizer.php +++ b/generated/Pricing/Normalizer/PricingFixedUnitNormalizer.php @@ -12,129 +12,253 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingFixedUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingFixedUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnit'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnit'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { - $object->setUnitAmount($data['unit_amount']); - unset($data['unit_amount']); - } - elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { - $object->setUnitAmount(null); - } - if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { - $object->setRecurringInterval($data['recurring_interval']); - unset($data['recurring_interval']); - } - elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { - $object->setRecurringInterval(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['used'] = $object->getUsed(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class => false]; } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); + } +} else { + class PricingFixedUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class; } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['id'] = $object->getId(); - $data['used'] = $object->getUsed(); - $data['unit_amount'] = $object->getUnitAmount(); - $data['recurring_interval'] = $object->getRecurringInterval(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['used'] = $object->getUsed(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingFixedUnit::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingFixedUnit' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingMenuNormalizer.php b/generated/Pricing/Normalizer/PricingMenuNormalizer.php index 18ea3ad..444c7ee 100644 --- a/generated/Pricing/Normalizer/PricingMenuNormalizer.php +++ b/generated/Pricing/Normalizer/PricingMenuNormalizer.php @@ -12,121 +12,237 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingMenuNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingMenuNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('units', $data) && $data['units'] !== null) { - $values = array(); - foreach ($data['units'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setUnits($values); - unset($data['units']); - } - elseif (\array_key_exists('units', $data) && $data['units'] === null) { - $object->setUnits(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingMenuNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['used'] = $object->getUsed(); - $values = array(); - foreach ($object->getUnits() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['units'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenu::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenu' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingMenuPropsNormalizer.php b/generated/Pricing/Normalizer/PricingMenuPropsNormalizer.php index 8c58223..1a0371c 100644 --- a/generated/Pricing/Normalizer/PricingMenuPropsNormalizer.php +++ b/generated/Pricing/Normalizer/PricingMenuPropsNormalizer.php @@ -12,113 +12,221 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingMenuPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingMenuPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenuProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenuProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('units', $data) && $data['units'] !== null) { - $values = array(); - foreach ($data['units'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setUnits($values); - unset($data['units']); - } - elseif (\array_key_exists('units', $data) && $data['units'] === null) { - $object->setUnits(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingMenuPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['used'] = $object->getUsed(); - $values = array(); - foreach ($object->getUnits() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['units'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenuProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenuProps' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingMenusNormalizer.php b/generated/Pricing/Normalizer/PricingMenusNormalizer.php index 3abd608..793e8bd 100644 --- a/generated/Pricing/Normalizer/PricingMenusNormalizer.php +++ b/generated/Pricing/Normalizer/PricingMenusNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingMenusNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingMenusNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenus'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenus'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { + $values = []; + foreach ($data['pricing_menus'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingMenus($values); + unset($data['pricing_menus']); + } + elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { + $object->setPricingMenus(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { - $values = array(); - foreach ($data['pricing_menus'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getPricingMenus() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setPricingMenus($values); - unset($data['pricing_menus']); - } - elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { - $object->setPricingMenus(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['pricing_menus'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingMenusNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getPricingMenus() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { + $values = []; + foreach ($data['pricing_menus'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingMenus($values); + unset($data['pricing_menus']); + } + elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { + $object->setPricingMenus(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['pricing_menus'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getPricingMenus() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['pricing_menus'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingMenus::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingMenus' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingPlanNormalizer.php b/generated/Pricing/Normalizer/PricingPlanNormalizer.php index 7870fb6..ab02e2f 100644 --- a/generated/Pricing/Normalizer/PricingPlanNormalizer.php +++ b/generated/Pricing/Normalizer/PricingPlanNormalizer.php @@ -12,121 +12,237 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingPlanNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingPlanNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { + $values = []; + foreach ($data['pricing_menus'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingMenus($values); + unset($data['pricing_menus']); + } + elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { + $object->setPricingMenus(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { - $values = array(); - foreach ($data['pricing_menus'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getPricingMenus() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setPricingMenus($values); - unset($data['pricing_menus']); - } - elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { - $object->setPricingMenus(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['pricing_menus'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingPlanNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['used'] = $object->getUsed(); - $values = array(); - foreach ($object->getPricingMenus() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { + $values = []; + foreach ($data['pricing_menus'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingMenus($values); + unset($data['pricing_menus']); + } + elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { + $object->setPricingMenus(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['pricing_menus'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getPricingMenus() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['pricing_menus'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlan::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlan' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingPlanPropsNormalizer.php b/generated/Pricing/Normalizer/PricingPlanPropsNormalizer.php index 50f8248..b158a11 100644 --- a/generated/Pricing/Normalizer/PricingPlanPropsNormalizer.php +++ b/generated/Pricing/Normalizer/PricingPlanPropsNormalizer.php @@ -12,113 +12,221 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingPlanPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingPlanPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlanProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlanProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { + $values = []; + foreach ($data['pricing_menus'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingMenus($values); + unset($data['pricing_menus']); + } + elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { + $object->setPricingMenus(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { - $values = array(); - foreach ($data['pricing_menus'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getPricingMenus() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setPricingMenus($values); - unset($data['pricing_menus']); - } - elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { - $object->setPricingMenus(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['pricing_menus'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingPlanPropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['used'] = $object->getUsed(); - $values = array(); - foreach ($object->getPricingMenus() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] !== null) { + $values = []; + foreach ($data['pricing_menus'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingMenus($values); + unset($data['pricing_menus']); + } + elseif (\array_key_exists('pricing_menus', $data) && $data['pricing_menus'] === null) { + $object->setPricingMenus(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['pricing_menus'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['used'] = $object->getUsed(); + $values = []; + foreach ($object->getPricingMenus() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $data['pricing_menus'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlanProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlanProps' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingPlansNormalizer.php b/generated/Pricing/Normalizer/PricingPlansNormalizer.php index 3fefcc8..12865d6 100644 --- a/generated/Pricing/Normalizer/PricingPlansNormalizer.php +++ b/generated/Pricing/Normalizer/PricingPlansNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingPlansNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingPlansNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlans'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlans'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('pricing_plans', $data) && $data['pricing_plans'] !== null) { + $values = []; + foreach ($data['pricing_plans'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingPlans($values); + unset($data['pricing_plans']); + } + elseif (\array_key_exists('pricing_plans', $data) && $data['pricing_plans'] === null) { + $object->setPricingPlans(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('pricing_plans', $data) && $data['pricing_plans'] !== null) { - $values = array(); - foreach ($data['pricing_plans'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getPricingPlans() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setPricingPlans($values); - unset($data['pricing_plans']); - } - elseif (\array_key_exists('pricing_plans', $data) && $data['pricing_plans'] === null) { - $object->setPricingPlans(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['pricing_plans'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingPlansNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getPricingPlans() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('pricing_plans', $data) && $data['pricing_plans'] !== null) { + $values = []; + foreach ($data['pricing_plans'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setPricingPlans($values); + unset($data['pricing_plans']); + } + elseif (\array_key_exists('pricing_plans', $data) && $data['pricing_plans'] === null) { + $object->setPricingPlans(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['pricing_plans'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getPricingPlans() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['pricing_plans'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingPlans::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingPlans' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingTierNormalizer.php b/generated/Pricing/Normalizer/PricingTierNormalizer.php index 10c5be7..5e978dc 100644 --- a/generated/Pricing/Normalizer/PricingTierNormalizer.php +++ b/generated/Pricing/Normalizer/PricingTierNormalizer.php @@ -12,89 +12,173 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingTierNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingTierNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('up_to', $data) && $data['up_to'] !== null) { + $object->setUpTo($data['up_to']); + unset($data['up_to']); + } + elseif (\array_key_exists('up_to', $data) && $data['up_to'] === null) { + $object->setUpTo(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('flat_amount', $data) && $data['flat_amount'] !== null) { + $object->setFlatAmount($data['flat_amount']); + unset($data['flat_amount']); + } + elseif (\array_key_exists('flat_amount', $data) && $data['flat_amount'] === null) { + $object->setFlatAmount(null); + } + if (\array_key_exists('inf', $data) && $data['inf'] !== null) { + $object->setInf($data['inf']); + unset($data['inf']); + } + elseif (\array_key_exists('inf', $data) && $data['inf'] === null) { + $object->setInf(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('up_to', $data) && $data['up_to'] !== null) { - $object->setUpTo($data['up_to']); - unset($data['up_to']); - } - elseif (\array_key_exists('up_to', $data) && $data['up_to'] === null) { - $object->setUpTo(null); - } - if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { - $object->setUnitAmount($data['unit_amount']); - unset($data['unit_amount']); - } - elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { - $object->setUnitAmount(null); - } - if (\array_key_exists('flat_amount', $data) && $data['flat_amount'] !== null) { - $object->setFlatAmount($data['flat_amount']); - unset($data['flat_amount']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['up_to'] = $object->getUpTo(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['flat_amount'] = $object->getFlatAmount(); + $data['inf'] = $object->getInf(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('flat_amount', $data) && $data['flat_amount'] === null) { - $object->setFlatAmount(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class => false]; } - if (\array_key_exists('inf', $data) && $data['inf'] !== null) { - $object->setInf($data['inf']); - unset($data['inf']); + } +} else { + class PricingTierNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class; } - elseif (\array_key_exists('inf', $data) && $data['inf'] === null) { - $object->setInf(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('up_to', $data) && $data['up_to'] !== null) { + $object->setUpTo($data['up_to']); + unset($data['up_to']); + } + elseif (\array_key_exists('up_to', $data) && $data['up_to'] === null) { + $object->setUpTo(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('flat_amount', $data) && $data['flat_amount'] !== null) { + $object->setFlatAmount($data['flat_amount']); + unset($data['flat_amount']); } + elseif (\array_key_exists('flat_amount', $data) && $data['flat_amount'] === null) { + $object->setFlatAmount(null); + } + if (\array_key_exists('inf', $data) && $data['inf'] !== null) { + $object->setInf($data['inf']); + unset($data['inf']); + } + elseif (\array_key_exists('inf', $data) && $data['inf'] === null) { + $object->setInf(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['up_to'] = $object->getUpTo(); - $data['unit_amount'] = $object->getUnitAmount(); - $data['flat_amount'] = $object->getFlatAmount(); - $data['inf'] = $object->getInf(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['up_to'] = $object->getUpTo(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['flat_amount'] = $object->getFlatAmount(); + $data['inf'] = $object->getInf(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingTieredUnitForSaveNormalizer.php b/generated/Pricing/Normalizer/PricingTieredUnitForSaveNormalizer.php index 5f96f62..02b54f7 100644 --- a/generated/Pricing/Normalizer/PricingTieredUnitForSaveNormalizer.php +++ b/generated/Pricing/Normalizer/PricingTieredUnitForSaveNormalizer.php @@ -12,139 +12,273 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingTieredUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingTieredUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnitForSave'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnitForSave'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { - $object->setUpperCount($data['upper_count']); - unset($data['upper_count']); - } - elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { - $object->setUpperCount(null); - } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); - } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); - } - if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { - $values = array(); - foreach ($data['tiers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); } - $object->setTiers($values); - unset($data['tiers']); - } - elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { - $object->setTiers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingTieredUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['upper_count'] = $object->getUpperCount(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class; } - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - $values = array(); - foreach ($object->getTiers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class; } - $data['tiers'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnitForSave::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnitForSave' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingTieredUnitNormalizer.php b/generated/Pricing/Normalizer/PricingTieredUnitNormalizer.php index 25e3f32..52d755e 100644 --- a/generated/Pricing/Normalizer/PricingTieredUnitNormalizer.php +++ b/generated/Pricing/Normalizer/PricingTieredUnitNormalizer.php @@ -12,171 +12,337 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingTieredUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingTieredUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnit'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnit'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { + $object->setMeteringUnitId($data['metering_unit_id']); + unset($data['metering_unit_id']); + } + elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { + $object->setMeteringUnitId(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { - $object->setMeteringUnitId($data['metering_unit_id']); - unset($data['metering_unit_id']); - } - elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { - $object->setMeteringUnitId(null); - } - if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { - $object->setRecurringInterval($data['recurring_interval']); - unset($data['recurring_interval']); - } - elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { - $object->setRecurringInterval(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { - $object->setUpperCount($data['upper_count']); - unset($data['upper_count']); - } - elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { - $object->setUpperCount(null); - } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); - } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); - } - if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { - $values = array(); - foreach ($data['tiers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['metering_unit_id'] = $object->getMeteringUnitId(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['used'] = $object->getUsed(); + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); } - $object->setTiers($values); - unset($data['tiers']); - } - elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { - $object->setTiers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingTieredUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['metering_unit_id'] = $object->getMeteringUnitId(); - $data['recurring_interval'] = $object->getRecurringInterval(); - $data['used'] = $object->getUsed(); - $data['upper_count'] = $object->getUpperCount(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); - } - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - $values = array(); - foreach ($object->getTiers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { + $object->setMeteringUnitId($data['metering_unit_id']); + unset($data['metering_unit_id']); + } + elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { + $object->setMeteringUnitId(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - $data['tiers'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['metering_unit_id'] = $object->getMeteringUnitId(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['used'] = $object->getUsed(); + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUnit::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUnit' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingTieredUsageUnitForSaveNormalizer.php b/generated/Pricing/Normalizer/PricingTieredUsageUnitForSaveNormalizer.php index 06717a1..30136d3 100644 --- a/generated/Pricing/Normalizer/PricingTieredUsageUnitForSaveNormalizer.php +++ b/generated/Pricing/Normalizer/PricingTieredUsageUnitForSaveNormalizer.php @@ -12,139 +12,273 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingTieredUsageUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingTieredUsageUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnitForSave'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnitForSave'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { - $object->setUpperCount($data['upper_count']); - unset($data['upper_count']); - } - elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { - $object->setUpperCount(null); - } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); - } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); - } - if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { - $values = array(); - foreach ($data['tiers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); } - $object->setTiers($values); - unset($data['tiers']); - } - elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { - $object->setTiers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingTieredUsageUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['upper_count'] = $object->getUpperCount(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class; } - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - $values = array(); - foreach ($object->getTiers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class; } - $data['tiers'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnitForSave::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnitForSave' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingTieredUsageUnitNormalizer.php b/generated/Pricing/Normalizer/PricingTieredUsageUnitNormalizer.php index 7e7dd0c..2d92faa 100644 --- a/generated/Pricing/Normalizer/PricingTieredUsageUnitNormalizer.php +++ b/generated/Pricing/Normalizer/PricingTieredUsageUnitNormalizer.php @@ -12,171 +12,337 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingTieredUsageUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingTieredUsageUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnit'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnit'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { + $object->setMeteringUnitId($data['metering_unit_id']); + unset($data['metering_unit_id']); + } + elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { + $object->setMeteringUnitId(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { - $object->setMeteringUnitId($data['metering_unit_id']); - unset($data['metering_unit_id']); - } - elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { - $object->setMeteringUnitId(null); - } - if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { - $object->setRecurringInterval($data['recurring_interval']); - unset($data['recurring_interval']); - } - elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { - $object->setRecurringInterval(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { - $object->setUpperCount($data['upper_count']); - unset($data['upper_count']); - } - elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { - $object->setUpperCount(null); - } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); - } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); - } - if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { - $values = array(); - foreach ($data['tiers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['metering_unit_id'] = $object->getMeteringUnitId(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['used'] = $object->getUsed(); + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); } - $object->setTiers($values); - unset($data['tiers']); - } - elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { - $object->setTiers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingTieredUsageUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['metering_unit_id'] = $object->getMeteringUnitId(); - $data['recurring_interval'] = $object->getRecurringInterval(); - $data['used'] = $object->getUsed(); - $data['upper_count'] = $object->getUpperCount(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); - } - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - $values = array(); - foreach ($object->getTiers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { + $object->setMeteringUnitId($data['metering_unit_id']); + unset($data['metering_unit_id']); + } + elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { + $object->setMeteringUnitId(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - $data['tiers'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['metering_unit_id'] = $object->getMeteringUnitId(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['used'] = $object->getUsed(); + $data['upper_count'] = $object->getUpperCount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTieredUsageUnit::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTieredUsageUnit' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingTiersNormalizer.php b/generated/Pricing/Normalizer/PricingTiersNormalizer.php index 2b585bf..7a81192 100644 --- a/generated/Pricing/Normalizer/PricingTiersNormalizer.php +++ b/generated/Pricing/Normalizer/PricingTiersNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingTiersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingTiersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTiers'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTiers'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); + } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { - $values = array(); - foreach ($data['tiers'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTier', 'json', $context); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); } - $object->setTiers($values); - unset($data['tiers']); - } - elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { - $object->setTiers(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingTiersNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getTiers() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class; } - $data['tiers'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tiers', $data) && $data['tiers'] !== null) { + $values = []; + foreach ($data['tiers'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTier::class, 'json', $context); + } + $object->setTiers($values); + unset($data['tiers']); } + elseif (\array_key_exists('tiers', $data) && $data['tiers'] === null) { + $object->setTiers(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getTiers() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['tiers'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingTiers::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingTiers' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingUnitBasePropsNormalizer.php b/generated/Pricing/Normalizer/PricingUnitBasePropsNormalizer.php index b232149..5d37bc2 100644 --- a/generated/Pricing/Normalizer/PricingUnitBasePropsNormalizer.php +++ b/generated/Pricing/Normalizer/PricingUnitBasePropsNormalizer.php @@ -12,97 +12,189 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingUnitBasePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingUnitBasePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnitBaseProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnitBaseProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class => false]; } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); + } +} else { + class PricingUnitBasePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class; } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnitBaseProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnitBaseProps' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingUnitsNormalizer.php b/generated/Pricing/Normalizer/PricingUnitsNormalizer.php index c5aa044..853354c 100644 --- a/generated/Pricing/Normalizer/PricingUnitsNormalizer.php +++ b/generated/Pricing/Normalizer/PricingUnitsNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingUnitsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingUnitsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnits'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnits'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('units', $data) && $data['units'] !== null) { - $values = array(); - foreach ($data['units'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setUnits($values); - unset($data['units']); - } - elseif (\array_key_exists('units', $data) && $data['units'] === null) { - $object->setUnits(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingUnitsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getUnits() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('units', $data) && $data['units'] !== null) { + $values = []; + foreach ($data['units'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setUnits($values); + unset($data['units']); + } + elseif (\array_key_exists('units', $data) && $data['units'] === null) { + $object->setUnits(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['units'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getUnits() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['units'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUnits::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUnits' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingUsageUnitForSaveNormalizer.php b/generated/Pricing/Normalizer/PricingUsageUnitForSaveNormalizer.php index 7d61583..0696d96 100644 --- a/generated/Pricing/Normalizer/PricingUsageUnitForSaveNormalizer.php +++ b/generated/Pricing/Normalizer/PricingUsageUnitForSaveNormalizer.php @@ -12,131 +12,257 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingUsageUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingUsageUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnitForSave'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnitForSave'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { - $object->setUpperCount($data['upper_count']); - unset($data['upper_count']); - } - elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { - $object->setUpperCount(null); - } - if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { - $object->setUnitAmount($data['unit_amount']); - unset($data['unit_amount']); - } - elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { - $object->setUnitAmount(null); - } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['upper_count'] = $object->getUpperCount(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class => false]; } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); + } +} else { + class PricingUsageUnitForSaveNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class; } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['upper_count'] = $object->getUpperCount(); - $data['unit_amount'] = $object->getUnitAmount(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); - } - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['upper_count'] = $object->getUpperCount(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnitForSave::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnitForSave' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/PricingUsageUnitNormalizer.php b/generated/Pricing/Normalizer/PricingUsageUnitNormalizer.php index 3a83607..b1a5433 100644 --- a/generated/Pricing/Normalizer/PricingUsageUnitNormalizer.php +++ b/generated/Pricing/Normalizer/PricingUsageUnitNormalizer.php @@ -12,163 +12,321 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class PricingUsageUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PricingUsageUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnit'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnit'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit(); - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { + $object->setMeteringUnitId($data['metering_unit_id']); + unset($data['metering_unit_id']); + } + elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { + $object->setMeteringUnitId(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { - $object->setMeteringUnitId($data['metering_unit_id']); - unset($data['metering_unit_id']); - } - elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { - $object->setMeteringUnitId(null); - } - if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { - $object->setRecurringInterval($data['recurring_interval']); - unset($data['recurring_interval']); - } - elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { - $object->setRecurringInterval(null); - } - if (\array_key_exists('used', $data) && $data['used'] !== null) { - $object->setUsed($data['used']); - unset($data['used']); - } - elseif (\array_key_exists('used', $data) && $data['used'] === null) { - $object->setUsed(null); - } - if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { - $object->setUpperCount($data['upper_count']); - unset($data['upper_count']); - } - elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { - $object->setUpperCount(null); - } - if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { - $object->setUnitAmount($data['unit_amount']); - unset($data['unit_amount']); - } - elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { - $object->setUnitAmount(null); - } - if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { - $object->setMeteringUnitName($data['metering_unit_name']); - unset($data['metering_unit_name']); - } - elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { - $object->setMeteringUnitName(null); - } - if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { - $object->setAggregateUsage($data['aggregate_usage']); - unset($data['aggregate_usage']); - } - elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { - $object->setAggregateUsage(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - if (\array_key_exists('type', $data) && $data['type'] !== null) { - $object->setType($data['type']); - unset($data['type']); - } - elseif (\array_key_exists('type', $data) && $data['type'] === null) { - $object->setType(null); - } - if (\array_key_exists('currency', $data) && $data['currency'] !== null) { - $object->setCurrency($data['currency']); - unset($data['currency']); - } - elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { - $object->setCurrency(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['metering_unit_id'] = $object->getMeteringUnitId(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['used'] = $object->getUsed(); + $data['upper_count'] = $object->getUpperCount(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class PricingUsageUnitNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['metering_unit_id'] = $object->getMeteringUnitId(); - $data['recurring_interval'] = $object->getRecurringInterval(); - $data['used'] = $object->getUsed(); - $data['upper_count'] = $object->getUpperCount(); - $data['unit_amount'] = $object->getUnitAmount(); - $data['metering_unit_name'] = $object->getMeteringUnitName(); - if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { - $data['aggregate_usage'] = $object->getAggregateUsage(); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] !== null) { + $object->setMeteringUnitId($data['metering_unit_id']); + unset($data['metering_unit_id']); + } + elseif (\array_key_exists('metering_unit_id', $data) && $data['metering_unit_id'] === null) { + $object->setMeteringUnitId(null); + } + if (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] !== null) { + $object->setRecurringInterval($data['recurring_interval']); + unset($data['recurring_interval']); + } + elseif (\array_key_exists('recurring_interval', $data) && $data['recurring_interval'] === null) { + $object->setRecurringInterval(null); + } + if (\array_key_exists('used', $data) && $data['used'] !== null) { + $object->setUsed($data['used']); + unset($data['used']); + } + elseif (\array_key_exists('used', $data) && $data['used'] === null) { + $object->setUsed(null); + } + if (\array_key_exists('upper_count', $data) && $data['upper_count'] !== null) { + $object->setUpperCount($data['upper_count']); + unset($data['upper_count']); + } + elseif (\array_key_exists('upper_count', $data) && $data['upper_count'] === null) { + $object->setUpperCount(null); + } + if (\array_key_exists('unit_amount', $data) && $data['unit_amount'] !== null) { + $object->setUnitAmount($data['unit_amount']); + unset($data['unit_amount']); + } + elseif (\array_key_exists('unit_amount', $data) && $data['unit_amount'] === null) { + $object->setUnitAmount(null); + } + if (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] !== null) { + $object->setMeteringUnitName($data['metering_unit_name']); + unset($data['metering_unit_name']); + } + elseif (\array_key_exists('metering_unit_name', $data) && $data['metering_unit_name'] === null) { + $object->setMeteringUnitName(null); + } + if (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] !== null) { + $object->setAggregateUsage($data['aggregate_usage']); + unset($data['aggregate_usage']); + } + elseif (\array_key_exists('aggregate_usage', $data) && $data['aggregate_usage'] === null) { + $object->setAggregateUsage(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } + elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } + elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $data['type'] = $object->getType(); - $data['currency'] = $object->getCurrency(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['metering_unit_id'] = $object->getMeteringUnitId(); + $data['recurring_interval'] = $object->getRecurringInterval(); + $data['used'] = $object->getUsed(); + $data['upper_count'] = $object->getUpperCount(); + $data['unit_amount'] = $object->getUnitAmount(); + $data['metering_unit_name'] = $object->getMeteringUnitName(); + if ($object->isInitialized('aggregateUsage') && null !== $object->getAggregateUsage()) { + $data['aggregate_usage'] = $object->getAggregateUsage(); + } + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $data['type'] = $object->getType(); + $data['currency'] = $object->getCurrency(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\PricingUsageUnit::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\PricingUsageUnit' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/SavePricingMenuParamNormalizer.php b/generated/Pricing/Normalizer/SavePricingMenuParamNormalizer.php index 5820488..f33b015 100644 --- a/generated/Pricing/Normalizer/SavePricingMenuParamNormalizer.php +++ b/generated/Pricing/Normalizer/SavePricingMenuParamNormalizer.php @@ -12,97 +12,189 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SavePricingMenuParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SavePricingMenuParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingMenuParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingMenuParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('unit_ids', $data) && $data['unit_ids'] !== null) { + $values = []; + foreach ($data['unit_ids'] as $value) { + $values[] = $value; + } + $object->setUnitIds($values); + unset($data['unit_ids']); + } + elseif (\array_key_exists('unit_ids', $data) && $data['unit_ids'] === null) { + $object->setUnitIds(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getUnitIds() as $value) { + $values[] = $value; + } + $data['unit_ids'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class => false]; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + } +} else { + class SavePricingMenuParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class; } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class; } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('unit_ids', $data) && $data['unit_ids'] !== null) { + $values = []; + foreach ($data['unit_ids'] as $value) { + $values[] = $value; + } + $object->setUnitIds($values); + unset($data['unit_ids']); + } + elseif (\array_key_exists('unit_ids', $data) && $data['unit_ids'] === null) { + $object->setUnitIds(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - if (\array_key_exists('unit_ids', $data) && $data['unit_ids'] !== null) { - $values = array(); - foreach ($data['unit_ids'] as $value) { + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getUnitIds() as $value) { $values[] = $value; } - $object->setUnitIds($values); - unset($data['unit_ids']); - } - elseif (\array_key_exists('unit_ids', $data) && $data['unit_ids'] === null) { - $object->setUnitIds(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['unit_ids'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $values = array(); - foreach ($object->getUnitIds() as $value) { - $values[] = $value; - } - $data['unit_ids'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; - } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingMenuParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingMenuParam' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/SavePricingPlanParamNormalizer.php b/generated/Pricing/Normalizer/SavePricingPlanParamNormalizer.php index 63cd607..d2b8412 100644 --- a/generated/Pricing/Normalizer/SavePricingPlanParamNormalizer.php +++ b/generated/Pricing/Normalizer/SavePricingPlanParamNormalizer.php @@ -12,97 +12,189 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class SavePricingPlanParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class SavePricingPlanParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingPlanParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingPlanParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('menu_ids', $data) && $data['menu_ids'] !== null) { + $values = []; + foreach ($data['menu_ids'] as $value) { + $values[] = $value; + } + $object->setMenuIds($values); + unset($data['menu_ids']); + } + elseif (\array_key_exists('menu_ids', $data) && $data['menu_ids'] === null) { + $object->setMenuIds(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getMenuIds() as $value) { + $values[] = $value; + } + $data['menu_ids'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class => false]; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + } +} else { + class SavePricingPlanParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class; } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class; } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('menu_ids', $data) && $data['menu_ids'] !== null) { + $values = []; + foreach ($data['menu_ids'] as $value) { + $values[] = $value; + } + $object->setMenuIds($values); + unset($data['menu_ids']); + } + elseif (\array_key_exists('menu_ids', $data) && $data['menu_ids'] === null) { + $object->setMenuIds(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; } - if (\array_key_exists('menu_ids', $data) && $data['menu_ids'] !== null) { - $values = array(); - foreach ($data['menu_ids'] as $value) { + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getMenuIds() as $value) { $values[] = $value; } - $object->setMenuIds($values); - unset($data['menu_ids']); - } - elseif (\array_key_exists('menu_ids', $data) && $data['menu_ids'] === null) { - $object->setMenuIds(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['menu_ids'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - $values = array(); - foreach ($object->getMenuIds() as $value) { - $values[] = $value; - } - $data['menu_ids'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; - } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\SavePricingPlanParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\SavePricingPlanParam' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/TaxRateNormalizer.php b/generated/Pricing/Normalizer/TaxRateNormalizer.php index cb894b9..66cb56a 100644 --- a/generated/Pricing/Normalizer/TaxRateNormalizer.php +++ b/generated/Pricing/Normalizer/TaxRateNormalizer.php @@ -12,116 +12,227 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TaxRateNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TaxRateNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRate'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRate'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate(); - if (\array_key_exists('percentage', $data) && \is_int($data['percentage'])) { - $data['percentage'] = (double) $data['percentage']; - } - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate(); + if (\array_key_exists('percentage', $data) && \is_int($data['percentage'])) { + $data['percentage'] = (double) $data['percentage']; + } + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('percentage', $data) && $data['percentage'] !== null) { + $object->setPercentage($data['percentage']); + unset($data['percentage']); + } + elseif (\array_key_exists('percentage', $data) && $data['percentage'] === null) { + $object->setPercentage(null); + } + if (\array_key_exists('inclusive', $data) && $data['inclusive'] !== null) { + $object->setInclusive($data['inclusive']); + unset($data['inclusive']); + } + elseif (\array_key_exists('inclusive', $data) && $data['inclusive'] === null) { + $object->setInclusive(null); + } + if (\array_key_exists('country', $data) && $data['country'] !== null) { + $object->setCountry($data['country']); + unset($data['country']); + } + elseif (\array_key_exists('country', $data) && $data['country'] === null) { + $object->setCountry(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('id', $data) && $data['id'] !== null) { - $object->setId($data['id']); - unset($data['id']); - } - elseif (\array_key_exists('id', $data) && $data['id'] === null) { - $object->setId(null); - } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('percentage', $data) && $data['percentage'] !== null) { - $object->setPercentage($data['percentage']); - unset($data['percentage']); - } - elseif (\array_key_exists('percentage', $data) && $data['percentage'] === null) { - $object->setPercentage(null); - } - if (\array_key_exists('inclusive', $data) && $data['inclusive'] !== null) { - $object->setInclusive($data['inclusive']); - unset($data['inclusive']); - } - elseif (\array_key_exists('inclusive', $data) && $data['inclusive'] === null) { - $object->setInclusive(null); - } - if (\array_key_exists('country', $data) && $data['country'] !== null) { - $object->setCountry($data['country']); - unset($data['country']); - } - elseif (\array_key_exists('country', $data) && $data['country'] === null) { - $object->setCountry(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['percentage'] = $object->getPercentage(); + $data['inclusive'] = $object->getInclusive(); + $data['country'] = $object->getCountry(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TaxRateNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['id'] = $object->getId(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['percentage'] = $object->getPercentage(); - $data['inclusive'] = $object->getInclusive(); - $data['country'] = $object->getCountry(); - $data['description'] = $object->getDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate(); + if (\array_key_exists('percentage', $data) && \is_int($data['percentage'])) { + $data['percentage'] = (double) $data['percentage']; + } + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } + elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('percentage', $data) && $data['percentage'] !== null) { + $object->setPercentage($data['percentage']); + unset($data['percentage']); + } + elseif (\array_key_exists('percentage', $data) && $data['percentage'] === null) { + $object->setPercentage(null); + } + if (\array_key_exists('inclusive', $data) && $data['inclusive'] !== null) { + $object->setInclusive($data['inclusive']); + unset($data['inclusive']); + } + elseif (\array_key_exists('inclusive', $data) && $data['inclusive'] === null) { + $object->setInclusive(null); + } + if (\array_key_exists('country', $data) && $data['country'] !== null) { + $object->setCountry($data['country']); + unset($data['country']); + } + elseif (\array_key_exists('country', $data) && $data['country'] === null) { + $object->setCountry(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['id'] = $object->getId(); + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['percentage'] = $object->getPercentage(); + $data['inclusive'] = $object->getInclusive(); + $data['country'] = $object->getCountry(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRate::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRate' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/TaxRatePropsNormalizer.php b/generated/Pricing/Normalizer/TaxRatePropsNormalizer.php index a7f18d5..8c929bc 100644 --- a/generated/Pricing/Normalizer/TaxRatePropsNormalizer.php +++ b/generated/Pricing/Normalizer/TaxRatePropsNormalizer.php @@ -12,108 +12,211 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TaxRatePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TaxRatePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRateProps'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRateProps'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps(); - if (\array_key_exists('percentage', $data) && \is_int($data['percentage'])) { - $data['percentage'] = (double) $data['percentage']; - } - if (null === $data || false === \is_array($data)) { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class; + } + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps(); + if (\array_key_exists('percentage', $data) && \is_int($data['percentage'])) { + $data['percentage'] = (double) $data['percentage']; + } + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('percentage', $data) && $data['percentage'] !== null) { + $object->setPercentage($data['percentage']); + unset($data['percentage']); + } + elseif (\array_key_exists('percentage', $data) && $data['percentage'] === null) { + $object->setPercentage(null); + } + if (\array_key_exists('inclusive', $data) && $data['inclusive'] !== null) { + $object->setInclusive($data['inclusive']); + unset($data['inclusive']); + } + elseif (\array_key_exists('inclusive', $data) && $data['inclusive'] === null) { + $object->setInclusive(null); + } + if (\array_key_exists('country', $data) && $data['country'] !== null) { + $object->setCountry($data['country']); + unset($data['country']); + } + elseif (\array_key_exists('country', $data) && $data['country'] === null) { + $object->setCountry(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('name', $data) && $data['name'] !== null) { - $object->setName($data['name']); - unset($data['name']); - } - elseif (\array_key_exists('name', $data) && $data['name'] === null) { - $object->setName(null); - } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); - } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); - } - if (\array_key_exists('percentage', $data) && $data['percentage'] !== null) { - $object->setPercentage($data['percentage']); - unset($data['percentage']); - } - elseif (\array_key_exists('percentage', $data) && $data['percentage'] === null) { - $object->setPercentage(null); - } - if (\array_key_exists('inclusive', $data) && $data['inclusive'] !== null) { - $object->setInclusive($data['inclusive']); - unset($data['inclusive']); - } - elseif (\array_key_exists('inclusive', $data) && $data['inclusive'] === null) { - $object->setInclusive(null); - } - if (\array_key_exists('country', $data) && $data['country'] !== null) { - $object->setCountry($data['country']); - unset($data['country']); - } - elseif (\array_key_exists('country', $data) && $data['country'] === null) { - $object->setCountry(null); - } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); - } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); - } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['percentage'] = $object->getPercentage(); + $data['inclusive'] = $object->getInclusive(); + $data['country'] = $object->getCountry(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TaxRatePropsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $data['name'] = $object->getName(); - $data['display_name'] = $object->getDisplayName(); - $data['percentage'] = $object->getPercentage(); - $data['inclusive'] = $object->getInclusive(); - $data['country'] = $object->getCountry(); - $data['description'] = $object->getDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps(); + if (\array_key_exists('percentage', $data) && \is_int($data['percentage'])) { + $data['percentage'] = (double) $data['percentage']; + } + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } + elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('percentage', $data) && $data['percentage'] !== null) { + $object->setPercentage($data['percentage']); + unset($data['percentage']); } + elseif (\array_key_exists('percentage', $data) && $data['percentage'] === null) { + $object->setPercentage(null); + } + if (\array_key_exists('inclusive', $data) && $data['inclusive'] !== null) { + $object->setInclusive($data['inclusive']); + unset($data['inclusive']); + } + elseif (\array_key_exists('inclusive', $data) && $data['inclusive'] === null) { + $object->setInclusive(null); + } + if (\array_key_exists('country', $data) && $data['country'] !== null) { + $object->setCountry($data['country']); + unset($data['country']); + } + elseif (\array_key_exists('country', $data) && $data['country'] === null) { + $object->setCountry(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + $data['display_name'] = $object->getDisplayName(); + $data['percentage'] = $object->getPercentage(); + $data['inclusive'] = $object->getInclusive(); + $data['country'] = $object->getCountry(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRateProps::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRateProps' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/TaxRatesNormalizer.php b/generated/Pricing/Normalizer/TaxRatesNormalizer.php index 4206b59..ee06bd3 100644 --- a/generated/Pricing/Normalizer/TaxRatesNormalizer.php +++ b/generated/Pricing/Normalizer/TaxRatesNormalizer.php @@ -12,81 +12,157 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class TaxRatesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class TaxRatesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRates'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRates'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tax_rates', $data) && $data['tax_rates'] !== null) { + $values = []; + foreach ($data['tax_rates'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setTaxRates($values); + unset($data['tax_rates']); + } + elseif (\array_key_exists('tax_rates', $data) && $data['tax_rates'] === null) { + $object->setTaxRates(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } - if (\array_key_exists('tax_rates', $data) && $data['tax_rates'] !== null) { - $values = array(); - foreach ($data['tax_rates'] as $value) { - $values_1 = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getTaxRates() as $value) { + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } $values[] = $values_1; } - $object->setTaxRates($values); - unset($data['tax_rates']); - } - elseif (\array_key_exists('tax_rates', $data) && $data['tax_rates'] === null) { - $object->setTaxRates(null); - } - foreach ($data as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $object[$key_1] = $value_2; + $data['tax_rates'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class TaxRatesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getTaxRates() as $value) { - $values_1 = array(); - foreach ($value as $key => $value_1) { - $values_1[$key] = $value_1; - } - $values[] = $values_1; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class; + } + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('tax_rates', $data) && $data['tax_rates'] !== null) { + $values = []; + foreach ($data['tax_rates'] as $value) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; + } + $object->setTaxRates($values); + unset($data['tax_rates']); + } + elseif (\array_key_exists('tax_rates', $data) && $data['tax_rates'] === null) { + $object->setTaxRates(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + return $object; } - $data['tax_rates'] = $values; - foreach ($object as $key_1 => $value_2) { - if (preg_match('/.*/', (string) $key_1)) { - $data[$key_1] = $value_2; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getTaxRates() as $value) { + $values_1 = []; + foreach ($value as $key => $value_1) { + $values_1[$key] = $value_1; + } + $values[] = $values_1; } + $data['tax_rates'] = $values; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\TaxRates::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\TaxRates' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountNowParamNormalizer.php b/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountNowParamNormalizer.php index 6c4cc1c..e6535f2 100644 --- a/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountNowParamNormalizer.php +++ b/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountNowParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateMeteringUnitTimestampCountNowParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateMeteringUnitTimestampCountNowParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountNowParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountNowParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('method', $data) && $data['method'] !== null) { + $object->setMethod($data['method']); + unset($data['method']); + } + elseif (\array_key_exists('method', $data) && $data['method'] === null) { + $object->setMethod(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('method', $data) && $data['method'] !== null) { - $object->setMethod($data['method']); - unset($data['method']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['method'] = $object->getMethod(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('method', $data) && $data['method'] === null) { - $object->setMethod(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class => false]; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); + } +} else { + class UpdateMeteringUnitTimestampCountNowParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class; } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('method', $data) && $data['method'] !== null) { + $object->setMethod($data['method']); + unset($data['method']); + } + elseif (\array_key_exists('method', $data) && $data['method'] === null) { + $object->setMethod(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['method'] = $object->getMethod(); - $data['count'] = $object->getCount(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['method'] = $object->getMethod(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountNowParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountNowParam' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountParamNormalizer.php b/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountParamNormalizer.php index 2b0c115..dbd1c4d 100644 --- a/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountParamNormalizer.php +++ b/generated/Pricing/Normalizer/UpdateMeteringUnitTimestampCountParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateMeteringUnitTimestampCountParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateMeteringUnitTimestampCountParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('method', $data) && $data['method'] !== null) { + $object->setMethod($data['method']); + unset($data['method']); + } + elseif (\array_key_exists('method', $data) && $data['method'] === null) { + $object->setMethod(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('method', $data) && $data['method'] !== null) { - $object->setMethod($data['method']); - unset($data['method']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['method'] = $object->getMethod(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('method', $data) && $data['method'] === null) { - $object->setMethod(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class => false]; } - if (\array_key_exists('count', $data) && $data['count'] !== null) { - $object->setCount($data['count']); - unset($data['count']); + } +} else { + class UpdateMeteringUnitTimestampCountParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class; } - elseif (\array_key_exists('count', $data) && $data['count'] === null) { - $object->setCount(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('method', $data) && $data['method'] !== null) { + $object->setMethod($data['method']); + unset($data['method']); + } + elseif (\array_key_exists('method', $data) && $data['method'] === null) { + $object->setMethod(null); + } + if (\array_key_exists('count', $data) && $data['count'] !== null) { + $object->setCount($data['count']); + unset($data['count']); + } + elseif (\array_key_exists('count', $data) && $data['count'] === null) { + $object->setCount(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['method'] = $object->getMethod(); - $data['count'] = $object->getCount(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['method'] = $object->getMethod(); + $data['count'] = $object->getCount(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateMeteringUnitTimestampCountParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateMeteringUnitTimestampCountParam' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/UpdatePricingPlansUsedParamNormalizer.php b/generated/Pricing/Normalizer/UpdatePricingPlansUsedParamNormalizer.php index 670c44a..5c2c08c 100644 --- a/generated/Pricing/Normalizer/UpdatePricingPlansUsedParamNormalizer.php +++ b/generated/Pricing/Normalizer/UpdatePricingPlansUsedParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdatePricingPlansUsedParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdatePricingPlansUsedParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdatePricingPlansUsedParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdatePricingPlansUsedParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_ids', $data) && $data['plan_ids'] !== null) { + $values = []; + foreach ($data['plan_ids'] as $value) { + $values[] = $value; + } + $object->setPlanIds($values); + unset($data['plan_ids']); + } + elseif (\array_key_exists('plan_ids', $data) && $data['plan_ids'] === null) { + $object->setPlanIds(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } - if (\array_key_exists('plan_ids', $data) && $data['plan_ids'] !== null) { - $values = array(); - foreach ($data['plan_ids'] as $value) { + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getPlanIds() as $value) { $values[] = $value; } - $object->setPlanIds($values); - unset($data['plan_ids']); - } - elseif (\array_key_exists('plan_ids', $data) && $data['plan_ids'] === null) { - $object->setPlanIds(null); - } - foreach ($data as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $data['plan_ids'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class => false]; } - return $object; } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) +} else { + class UpdatePricingPlansUsedParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - $data = array(); - $values = array(); - foreach ($object->getPlanIds() as $value) { - $values[] = $value; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class; + } + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class; } - $data['plan_ids'] = $values; - foreach ($object as $key => $value_1) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('plan_ids', $data) && $data['plan_ids'] !== null) { + $values = []; + foreach ($data['plan_ids'] as $value) { + $values[] = $value; + } + $object->setPlanIds($values); + unset($data['plan_ids']); + } + elseif (\array_key_exists('plan_ids', $data) && $data['plan_ids'] === null) { + $object->setPlanIds(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + return $object; + } + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getPlanIds() as $value) { + $values[] = $value; + } + $data['plan_ids'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdatePricingPlansUsedParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdatePricingPlansUsedParam' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Normalizer/UpdateTaxRateParamNormalizer.php b/generated/Pricing/Normalizer/UpdateTaxRateParamNormalizer.php index 32b312c..0d6e9f0 100644 --- a/generated/Pricing/Normalizer/UpdateTaxRateParamNormalizer.php +++ b/generated/Pricing/Normalizer/UpdateTaxRateParamNormalizer.php @@ -12,73 +12,141 @@ use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class UpdateTaxRateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface -{ - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null, array $context = array()) : bool +use Symfony\Component\HttpKernel\Kernel; +if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class UpdateTaxRateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { - return $type === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateTaxRateParam'; - } - public function supportsNormalization($data, $format = null, array $context = array()) : bool - { - return is_object($data) && get_class($data) === 'AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateTaxRateParam'; - } - /** - * @return mixed - */ - public function denormalize($data, $class, $format = null, array $context = array()) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class; } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class; } - $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam(); - if (null === $data || false === \is_array($data)) { + public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } - if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { - $object->setDisplayName($data['display_name']); - unset($data['display_name']); + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + return $data; } - elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { - $object->setDisplayName(null); + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class => false]; } - if (\array_key_exists('description', $data) && $data['description'] !== null) { - $object->setDescription($data['description']); - unset($data['description']); + } +} else { + class UpdateTaxRateParamNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + public function supportsDenormalization($data, $type, string $format = null, array $context = []): bool + { + return $type === \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class; } - elseif (\array_key_exists('description', $data) && $data['description'] === null) { - $object->setDescription(null); + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class; } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + /** + * @return mixed + */ + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('display_name', $data) && $data['display_name'] !== null) { + $object->setDisplayName($data['display_name']); + unset($data['display_name']); + } + elseif (\array_key_exists('display_name', $data) && $data['display_name'] === null) { + $object->setDisplayName(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } + elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + return $object; } - return $object; - } - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = array()) - { - $data = array(); - $data['display_name'] = $object->getDisplayName(); - $data['description'] = $object->getDescription(); - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['display_name'] = $object->getDisplayName(); + $data['description'] = $object->getDescription(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } + return $data; + } + public function getSupportedTypes(?string $format = null): array + { + return [\AntiPatternInc\Saasus\Sdk\Pricing\Model\UpdateTaxRateParam::class => false]; } - return $data; - } - public function getSupportedTypes(?string $format = null) : array - { - return array('AntiPatternInc\\Saasus\\Sdk\\Pricing\\Model\\UpdateTaxRateParam' => false); } } \ No newline at end of file diff --git a/generated/Pricing/Runtime/Client/BaseEndpoint.php b/generated/Pricing/Runtime/Client/BaseEndpoint.php index c97bb13..2073aee 100644 --- a/generated/Pricing/Runtime/Client/BaseEndpoint.php +++ b/generated/Pricing/Runtime/Client/BaseEndpoint.php @@ -8,19 +8,20 @@ use Symfony\Component\Serializer\SerializerInterface; abstract class BaseEndpoint implements Endpoint { + protected $formParameters = []; protected $queryParameters = []; protected $headerParameters = []; protected $body; - public abstract function getMethod() : string; - public abstract function getBody(SerializerInterface $serializer, $streamFactory = null) : array; - public abstract function getUri() : string; - public abstract function getAuthenticationScopes() : array; - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); - protected function getExtraHeaders() : array + abstract public function getMethod(): string; + abstract public function getBody(SerializerInterface $serializer, $streamFactory = null): array; + abstract public function getUri(): string; + abstract public function getAuthenticationScopes(): array; + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + protected function getExtraHeaders(): array { return []; } - public function getQueryString() : string + public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); $optionsResolved = array_map(function ($value) { @@ -28,25 +29,25 @@ public function getQueryString() : string }, $optionsResolved); return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } - public function getHeaders(array $baseHeaders = []) : array + public function getHeaders(array $baseHeaders = []): array { return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - protected function getQueryOptionsResolver() : OptionsResolver + protected function getQueryOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getHeadersOptionsResolver() : OptionsResolver + protected function getHeadersOptionsResolver(): OptionsResolver { return new OptionsResolver(); } // ---------------------------------------------------------------------------------------------------- // Used for OpenApi2 compatibility - protected function getFormBody() : array + protected function getFormBody(): array { return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($this->getFormOptionsResolver()->resolve($this->formParameters))]; } - protected function getMultipartBody($streamFactory = null) : array + protected function getMultipartBody($streamFactory = null): array { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $this->getFormOptionsResolver()->resolve($this->formParameters); @@ -55,11 +56,11 @@ protected function getMultipartBody($streamFactory = null) : array } return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } - protected function getFormOptionsResolver() : OptionsResolver + protected function getFormOptionsResolver(): OptionsResolver { return new OptionsResolver(); } - protected function getSerializedBody(SerializerInterface $serializer) : array + protected function getSerializedBody(SerializerInterface $serializer): array { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } diff --git a/generated/Pricing/Runtime/Client/Client.php b/generated/Pricing/Runtime/Client/Client.php index fd41c0a..5a34ae7 100644 --- a/generated/Pricing/Runtime/Client/Client.php +++ b/generated/Pricing/Runtime/Client/Client.php @@ -44,11 +44,11 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_ } return $endpoint->parseResponse($this->processEndpoint($endpoint), $this->serializer, $fetch); } - public function executeRawEndpoint(Endpoint $endpoint) : ResponseInterface + public function executeRawEndpoint(Endpoint $endpoint): ResponseInterface { return $this->processEndpoint($endpoint); } - private function processEndpoint(Endpoint $endpoint) : ResponseInterface + private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint) : ResponseInterface } } foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { - $request = $request->withHeader($name, $value); + $request = $request->withHeader($name, !is_bool($value) ? $value : ($value ? 'true' : 'false')); } if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; diff --git a/generated/Pricing/Runtime/Client/Endpoint.php b/generated/Pricing/Runtime/Client/Endpoint.php index daae710..bedf55e 100644 --- a/generated/Pricing/Runtime/Client/Endpoint.php +++ b/generated/Pricing/Runtime/Client/Endpoint.php @@ -12,27 +12,27 @@ interface Endpoint * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. */ - public function getBody(SerializerInterface $serializer, $streamFactory = null) : array; + public function getBody(SerializerInterface $serializer, $streamFactory = null): array; /** * Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar). */ - public function getQueryString() : string; + public function getQueryString(): string; /** * Get the URI of an endpoint (like /foo-uri). */ - public function getUri() : string; + public function getUri(): string; /** * Get the HTTP method of an endpoint (like GET, POST, ...). */ - public function getMethod() : string; + public function getMethod(): string; /** * Get the headers of an endpoint. */ - public function getHeaders(array $baseHeaders = []) : array; + public function getHeaders(array $baseHeaders = []): array; /** * Get security scopes of an endpoint. */ - public function getAuthenticationScopes() : array; + public function getAuthenticationScopes(): array; /** * Parse and transform a PSR7 Response into a different object. * diff --git a/generated/Pricing/Runtime/Client/EndpointTrait.php b/generated/Pricing/Runtime/Client/EndpointTrait.php index 11bca7f..adb49c4 100644 --- a/generated/Pricing/Runtime/Client/EndpointTrait.php +++ b/generated/Pricing/Runtime/Client/EndpointTrait.php @@ -6,7 +6,7 @@ use Symfony\Component\Serializer\SerializerInterface; trait EndpointTrait { - protected abstract function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; diff --git a/generated/Pricing/Runtime/Normalizer/CheckArray.php b/generated/Pricing/Runtime/Normalizer/CheckArray.php index 8aff481..f155bdc 100644 --- a/generated/Pricing/Runtime/Normalizer/CheckArray.php +++ b/generated/Pricing/Runtime/Normalizer/CheckArray.php @@ -4,7 +4,7 @@ trait CheckArray { - public function isOnlyNumericKeys(array $array) : bool + public function isOnlyNumericKeys(array $array): bool { return count(array_filter($array, function ($key) { return is_numeric($key); diff --git a/generated/Pricing/Runtime/Normalizer/ReferenceNormalizer.php b/generated/Pricing/Runtime/Normalizer/ReferenceNormalizer.php index f7039e1..9827c2f 100644 --- a/generated/Pricing/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/Pricing/Runtime/Normalizer/ReferenceNormalizer.php @@ -3,23 +3,46 @@ namespace AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -class ReferenceNormalizer implements NormalizerInterface -{ - /** - * {@inheritdoc} - */ - public function normalize($object, $format = null, array $context = []) +if (Kernel::MAJOR_VERSION >= 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4) { + class ReferenceNormalizer implements NormalizerInterface { - $ref = []; - $ref['$ref'] = (string) $object->getReferenceUri(); - return $ref; + /** + * {@inheritdoc} + */ + public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } - /** - * {@inheritdoc} - */ - public function supportsNormalization($data, $format = null) : bool +} else { + class ReferenceNormalizer implements NormalizerInterface { - return $data instanceof Reference; + /** + * {@inheritdoc} + */ + public function normalize($object, $format = null, array $context = []) + { + $ref = []; + $ref['$ref'] = (string) $object->getReferenceUri(); + return $ref; + } + /** + * {@inheritdoc} + */ + public function supportsNormalization($data, $format = null): bool + { + return $data instanceof Reference; + } } } \ No newline at end of file diff --git a/generated/Pricing/Runtime/Normalizer/ValidationException.php b/generated/Pricing/Runtime/Normalizer/ValidationException.php index d958430..07a1451 100644 --- a/generated/Pricing/Runtime/Normalizer/ValidationException.php +++ b/generated/Pricing/Runtime/Normalizer/ValidationException.php @@ -2,8 +2,9 @@ namespace AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Normalizer; +use RuntimeException; use Symfony\Component\Validator\ConstraintViolationListInterface; -class ValidationException extends \RuntimeException +class ValidationException extends RuntimeException { /** @var ConstraintViolationListInterface */ private $violationList; @@ -12,7 +13,7 @@ public function __construct(ConstraintViolationListInterface $violationList) $this->violationList = $violationList; parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } - public function getViolationList() : ConstraintViolationListInterface + public function getViolationList(): ConstraintViolationListInterface { return $this->violationList; } diff --git a/generated/Pricing/Runtime/Normalizer/ValidatorTrait.php b/generated/Pricing/Runtime/Normalizer/ValidatorTrait.php index 15a9d45..d6c0a4e 100644 --- a/generated/Pricing/Runtime/Normalizer/ValidatorTrait.php +++ b/generated/Pricing/Runtime/Normalizer/ValidatorTrait.php @@ -3,11 +3,12 @@ namespace AntiPatternInc\Saasus\Sdk\Pricing\Runtime\Normalizer; use Symfony\Component\Validator\Constraint; +use Symfony\Component\Validator\Validation; trait ValidatorTrait { - protected function validate(array $data, Constraint $constraint) : void + protected function validate(array $data, Constraint $constraint): void { - $validator = \Symfony\Component\Validator\Validation::createValidator(); + $validator = Validation::createValidator(); $violations = $validator->validate($data, $constraint); if ($violations->count() > 0) { throw new ValidationException($violations); From b86eb9d92f8239b00c6e8424086c327a4dd8229e Mon Sep 17 00:00:00 2001 From: Yasuhiro Takahashi Date: Wed, 10 Jul 2024 14:46:22 +0900 Subject: [PATCH 2/2] modify composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9e3cff4..e317694 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ ], "require": { "php": ">=8.0.2", - "laravel/framework": ">=6.20 <10", + "laravel/framework": ">=9 <12", "guzzlehttp/guzzle": "^7.4", "guzzlehttp/psr7": "^1.7.0|^2.0", "guzzlehttp/promises": "^1.4.0",