From feb9cdc2fe851e97abc33b815372886ff2754b06 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 9 Jul 2026 00:31:30 +0000 Subject: [PATCH] =?UTF-8?q?##=20Java=20SDK=20Changes:=20*=20`clerk.webhook?= =?UTF-8?q?s.generateSvixAuthUrl()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.jwtTemplates.delete()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.clients.get()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.create()`:?= =?UTF-8?q?=20=20=20*=20=20`response.verification`=20**Changed**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.?= =?UTF-8?q?get()`:=20=20=20*=20=20`response.verification`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Chan?= =?UTF-8?q?ged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.r?= =?UTF-8?q?eplaceRole()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.addRoles()`:=20=20`er?= =?UTF-8?q?ror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cle?= =?UTF-8?q?rk.roleSets.replace()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.update()`:=20=20`e?= =?UTF-8?q?rror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cl?= =?UTF-8?q?erk.roleSets.get()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.create()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.emailAddresses.delete()`:=20=20`error`=20**Changed**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.update()`:?= =?UTF-8?q?=20=20=20*=20=20`response.verification`=20**Changed**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.?= =?UTF-8?q?prepareVerification()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.attemptVerif?= =?UTF-8?q?ication()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.emailAddresses.replaceForUser()`:=20=20?= =?UTF-8?q?=20*=20=20`response.verification`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.create()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.phoneNumbers.get()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.de?= =?UTF-8?q?lete()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.phoneNumbers.update()`:=20=20`error`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phon?= =?UTF-8?q?eNumbers.prepareVerification()`:=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.attemp?= =?UTF-8?q?tVerification()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.replaceForUser()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.sessions.list()`:=20=20`error`=20**Changed**=20(B?= =?UTF-8?q?reaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.create()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.sessions.get()`:=20=20`error`=20**Changed**=20(Br?= =?UTF-8?q?eaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.refresh()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.sessions.revoke()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.createTok?= =?UTF-8?q?en()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.sessions.createTokenFromTemplate()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.emailSmsTemplates.list()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailSmsTemplat?= =?UTF-8?q?es.get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.emailSmsTemplates.revert()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.emailSmsTemplates.toggleTemplateDelivery()`:=20=20`error`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailA?= =?UTF-8?q?ndSmsTemplates.upsert()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.templates.preview()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.users.list()`:=20=20=20*=20=20`response.[]`=20**Chang?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.u?= =?UTF-8?q?sers.create()`:=20=20=20*=20=20`response`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.count()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.users.get()`:=20=20=20*=20=20`response`=20**Chang?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.u?= =?UTF-8?q?sers.update()`:=20=20=20*=20=20`response`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.delete()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.users.ban()`:=20=20=20*=20=20`response`=20**Chang?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.u?= =?UTF-8?q?sers.unban()`:=20=20=20*=20=20`response`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.bulkBan()?= =?UTF-8?q?`:=20=20=20*=20=20`response.[]`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.bulkUnban()`:=20?= =?UTF-8?q?=20=20*=20=20`response.[]`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.lock()`:=20=20?= =?UTF-8?q?=20*=20=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.unlock()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.setProfileImage()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.deleteProfileImage()`:=20=20=20*?= =?UTF-8?q?=20=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F?= =?UTF-8?q?)=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.updateMetadata()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.replaceMetadata()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.getBillingSubscription()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.users.getBillingCreditBalance()`:=20=20`error`=20**Changed?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.adjustB?= =?UTF-8?q?illingCreditBalance()`:=20=20=20*=20=20`response`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.g?= =?UTF-8?q?etOAuthAccessToken()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.getOrganizationMember?= =?UTF-8?q?ships()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.getOrganizationInvitations()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.users.verifyPassword()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.verifyTot?= =?UTF-8?q?p()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.disableMfa()`:=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.d?= =?UTF-8?q?eleteBackupCodes()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.deletePasskey()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.users.deleteWeb3Wallet()`:=20=20`error`=20**Changed**=20(B?= =?UTF-8?q?reaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.deleteTotp()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.users.deleteExternalAccount()`:=20=20`error`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.?= =?UTF-8?q?setPasswordCompromised()`:=20=20=20*=20=20`response`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.user?= =?UTF-8?q?s.unsetPasswordCompromised()`:=20=20=20*=20=20`response`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.?= =?UTF-8?q?users.getInstanceOrganizationMemberships()`:=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.invitat?= =?UTF-8?q?ions.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.invitations.bulkCreate()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.invitations.revoke()`:=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationInvitat?= =?UTF-8?q?ions.getAll()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationInvitations.create?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationInvitations.list()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.organizationInvitations.bulkCreate()`:=20=20`error`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organiza?= =?UTF-8?q?tionInvitations.listPending()`:=20=20`error`=20**Changed**=20(B?= =?UTF-8?q?reaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationInvitati?= =?UTF-8?q?ons.get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationInvitations.revoke()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.allowlistIdentifiers.list()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.clients.list?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.allowlistIdentifiers.delete()`:=20=20`e?= =?UTF-8?q?rror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cl?= =?UTF-8?q?erk.blocklistIdentifiers.list()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.blocklistIdentifie?= =?UTF-8?q?rs.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.blocklistIdentifiers.delete()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.betaFeatures.updateInstanceSettings()`:=20=20`err?= =?UTF-8?q?or`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cler?= =?UTF-8?q?k.betaFeatures.updateProductionInstanceDomain()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.a?= =?UTF-8?q?ctorTokens.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.actorTokens.revoke()`:=20=20`e?= =?UTF-8?q?rror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cl?= =?UTF-8?q?erk.domains.add()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.domains.delete()`:=20=20`error?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.?= =?UTF-8?q?domains.update()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.update()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.instanceSettings.updateRestrictions()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.i?= =?UTF-8?q?nstanceSettings.updateCommunication()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSett?= =?UTF-8?q?ings.updateOAuthApplicationSettings()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSett?= =?UTF-8?q?ings.changeDomain()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.getOrganizati?= =?UTF-8?q?onSettings()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.updateOrganiz?= =?UTF-8?q?ationSettings()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.updateInstanc?= =?UTF-8?q?eProtect()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.webhooks.createSvixApp()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.w?= =?UTF-8?q?ebhooks.deleteSvixApp()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.allowlistIdentifiers.creat?= =?UTF-8?q?e()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.clients.verify()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.c?= =?UTF-8?q?ancelSubscriptionItem()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.jwtTemplates.update()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.jwtTemplates.create()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.list()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.machines.create()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.get()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.machines.update()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.delete()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.machines.getSecretKey()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.rot?= =?UTF-8?q?ateSecretKey()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.createScope()`:=20=20?= =?UTF-8?q?`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?clerk.machines.deleteScope()`:=20=20`error`=20**Changed**=20(Br?= =?UTF-8?q?eaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.list()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizations.create()`:=20=20`error`=20**Changed?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations?= =?UTF-8?q?.get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizations.update()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.o?= =?UTF-8?q?rganizations.delete()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.mergeMetadata?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizations.replaceMetadata()`:=20=20?= =?UTF-8?q?`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?clerk.organizations.uploadLogo()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.d?= =?UTF-8?q?eleteLogo()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.getBillingSubscr?= =?UTF-8?q?iption()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizations.getBillingCreditBalance()?= =?UTF-8?q?`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizations.adjustBillingCreditBalance()`:=20?= =?UTF-8?q?=20=20*=20=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationRoles.list()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.organizationRoles.create()`:=20=20`error`=20**Changed?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationR?= =?UTF-8?q?oles.get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationRoles.update()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.organizationRoles.delete()`:=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationRoles.assi?= =?UTF-8?q?gnPermission()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationRoles.removePermis?= =?UTF-8?q?sion()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationMemberships.create()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.organizationMemberships.list()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizat?= =?UTF-8?q?ionMemberships.update()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationMemberships.de?= =?UTF-8?q?lete()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationMemberships.updateMetadata(?= =?UTF-8?q?)`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F?= =?UTF-8?q?)=20*=20`clerk.organizationDomains.create()`:=20=20=20*=20=20`r?= =?UTF-8?q?esponse.enrollmentMode.enum(enterpriseSso)`=20**Added**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationDom?= =?UTF-8?q?ains.list()`:=20=20=20*=20=20`response.data[].enrollmentMode.en?= =?UTF-8?q?um(enterpriseSso)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F?= =?UTF-8?q?)=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationDomains.update()`:=20=20=20?= =?UTF-8?q?*=20=20`response.enrollmentMode.enum(enterpriseSso)`=20**Added*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organi?= =?UTF-8?q?zationDomains.delete()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationDomains.verifyO?= =?UTF-8?q?wnership()`:=20=20=20*=20=20`response.enrollmentMode.enum(enter?= =?UTF-8?q?priseSso)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationDomains.listAll()`:=20=20?= =?UTF-8?q?=20*=20=20`request.enrollmentMode`=20**Changed**=20=20=20*=20?= =?UTF-8?q?=20`response.data[].enrollmentMode.enum(enterpriseSso)`=20**Add?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.p?= =?UTF-8?q?roxyChecks.verify()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.redirectUrls.create()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.redirectUrls.get()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.redirectUrls.delete()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.signInTokens.create()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.signInTokens.revok?= =?UTF-8?q?e()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.signUps.get()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.signUps.upda?= =?UTF-8?q?te()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.oauthApplications.list()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.o?= =?UTF-8?q?authApplications.create()`:=20=20`error`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.oauthApplications.get()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.oauthApplications.update()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.oauthAppl?= =?UTF-8?q?ications.delete()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.oauthApplications.uploadLogo()?= =?UTF-8?q?`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.oauthApplications.rotateSecret()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.s?= =?UTF-8?q?amlConnections.list()`:=20=20=20*=20=20`response.data[]`=20**Ch?= =?UTF-8?q?anged**=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.samlConnections.create()`:=20?= =?UTF-8?q?=20=20*=20=20`response`=20**Changed**=20=20=20*=20=20`error`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.saml?= =?UTF-8?q?Connections.get()`:=20=20=20*=20=20`response`=20**Changed**=20?= =?UTF-8?q?=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.samlConnections.update()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20=20=20*=20=20`error`=20**Changed*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.samlConnection?= =?UTF-8?q?s.delete()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.enterpriseConnections.list()`:=20=20`er?= =?UTF-8?q?ror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cle?= =?UTF-8?q?rk.enterpriseConnections.create()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseConne?= =?UTF-8?q?ctions.get()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseConnections.update()?= =?UTF-8?q?`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.enterpriseConnections.delete()`:=20=20`error`=20*?= =?UTF-8?q?*Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enter?= =?UTF-8?q?priseConnections.listTestRuns()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseConnecti?= =?UTF-8?q?ons.createTestRun()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.agentTasks.create()`:=20=20`er?= =?UTF-8?q?ror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cle?= =?UTF-8?q?rk.agentTasks.revoke()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.waitlistEntries.create()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.waitlistEntries.bulkCreate()`:=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.waitlis?= =?UTF-8?q?tEntries.delete()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.waitlistEntries.invite()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.waitlistEntries.reject()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.listPla?= =?UTF-8?q?ns()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.billing.listPrices()`:=20=20`error`=20*?= =?UTF-8?q?*Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billi?= =?UTF-8?q?ng.createPrice()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.listSubscriptionItems(?= =?UTF-8?q?)`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F?= =?UTF-8?q?)=20*=20`clerk.jwtTemplates.get()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.extendS?= =?UTF-8?q?ubscriptionItemFreeTrial()`:=20=20`error`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.createPriceTran?= =?UTF-8?q?sition()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.billing.listStatements()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.b?= =?UTF-8?q?illing.getStatement()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.getStatementPayment?= =?UTF-8?q?Attempts()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationPermissions.list()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.organizationPermissions.create()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organization?= =?UTF-8?q?Permissions.get()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationPermissions.update?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationPermissions.delete()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.roleSets.list()`:=20=20`error`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.scimDirectories.delete()?= =?UTF-8?q?`:=20**Added**=20*=20`clerk.scimDirectories.update()`:=20**Adde?= =?UTF-8?q?d**=20*=20`clerk.scimDirectories.get()`:=20**Added**=20*=20`cle?= =?UTF-8?q?rk.scimDirectories.create()`:=20**Added**=20*=20`clerk.scimDire?= =?UTF-8?q?ctories.list()`:=20**Added**=20*=20`clerk.oauthApplications.rev?= =?UTF-8?q?okeToken()`:=20**Added**=20*=20`clerk.scimDirectories.rotateApi?= =?UTF-8?q?Key()`:=20**Added**=20*=20`clerk.scimDirectories.listGroupRoleM?= =?UTF-8?q?appings()`:=20**Added**=20*=20`clerk.scimDirectories.createGrou?= =?UTF-8?q?pRoleMapping()`:=20**Added**=20*=20`clerk.scimDirectories.repla?= =?UTF-8?q?ceGroupRoleMappings()`:=20**Added**=20*=20`clerk.scimDirectorie?= =?UTF-8?q?s.deleteGroupRoleMapping()`:=20**Added**?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/gen.lock | 1517 +++++++++++------ .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- README.md | 98 +- RELEASES.md | 12 +- build.gradle | 8 +- .../components/BillingPaymentAttemptTotals.md | 2 +- docs/models/components/ClerkError.md | 12 +- .../ClerkErrorErrorEnterpriseAccountMeta.md | 7 - ...rErrorEnterpriseAccountVerificationMeta.md | 7 - ...rrorExternalAccountWithVerificationMeta.md | 7 - ...AccountWithVerificationVerificationMeta.md | 7 - docs/models/components/ClerkErrorErrorMeta.md | 7 - .../ClerkErrorErrorSAMLAccountMeta.md | 7 - .../CommerceCreditLedgerResponse.md | 3 +- .../components/CommercePerUnitTotal2.md | 10 + ...alTier.md => CommercePerUnitTotalTier2.md} | 2 +- docs/models/components/CommercePlan2.md | 36 + ...cePlanFee.md => CommercePlan2AnnualFee.md} | 2 +- ...ee.md => CommercePlan2AnnualMonthlyFee.md} | 2 +- ...cePlanAnnualFee.md => CommercePlan2Fee.md} | 2 +- ...cePlanObject.md => CommercePlan2Object.md} | 6 +- .../CommercePriceTransitionDetails.md | 2 +- .../CommercePriceTransitionResponse.md | 2 +- .../components/CommerceSubscriptionItem2.md | 35 + ....md => CommerceSubscriptionItem2Amount.md} | 2 +- ... => CommerceSubscriptionItem2AnnualFee.md} | 2 +- ...merceSubscriptionItem2AnnualMonthlyFee.md} | 2 +- ... CommerceSubscriptionItem2CreditAmount.md} | 2 +- .../CommerceSubscriptionItem2Credits.md | 10 + .../CommerceSubscriptionItem2Discounts.md | 9 + .../CommerceSubscriptionItem2Fee.md | 11 + ...erceSubscriptionItem2NextInvoiceAmount.md} | 2 +- ...eSubscriptionItem2NextInvoiceProration.md} | 2 +- .../CommerceSubscriptionItem2NextPayment.md | 13 + ...erceSubscriptionItem2NextPaymentAmount.md} | 2 +- ...erceSubscriptionItem2NextPaymentCredits.md | 10 + ...eSubscriptionItem2NextPaymentDiscounts.md} | 4 +- ...merceSubscriptionItem2NextPaymentPayer.md} | 2 +- ...eSubscriptionItem2NextPaymentProration.md} | 2 +- ...merceSubscriptionItem2NextPaymentTotals.md | 16 + ...riptionItem2NextPaymentTotalsProration.md} | 2 +- ....md => CommerceSubscriptionItem2Object.md} | 6 +- ...r.md => CommerceSubscriptionItem2Payer.md} | 2 +- ...> CommerceSubscriptionItem2PayerObject.md} | 6 +- ...rceSubscriptionItem2PaymentSourceObject.md | 18 + ...rceSubscriptionItem2PaymentSourceStatus.md | 19 + .../CommerceSubscriptionItem2Plan.md | 38 + ...=> CommerceSubscriptionItem2PlanObject.md} | 6 +- .../CommerceSubscriptionItem2PlanPeriod.md | 19 + ... => CommerceSubscriptionItem2Proration.md} | 2 +- ....md => CommerceSubscriptionItem2Status.md} | 6 +- .../CommerceSubscriptionItem2Totals.md | 16 + .../CommerceSubscriptionNextPayment.md | 2 +- .../CommerceSubscriptionNextPaymentTotals.md | 2 +- docs/models/components/Credit.md | 8 +- docs/models/components/EnrollmentMode.md | 3 +- docs/models/components/ErrorClerkError.md | 12 +- docs/models/components/ErrorMeta.md | 7 - docs/models/components/FeatureResponse2.md | 13 + ...nseObject.md => FeatureResponse2Object.md} | 6 +- docs/models/components/Meta.md | 7 - docs/models/components/NextInvoice.md | 12 +- docs/models/components/One.md | 60 +- docs/models/components/Payer.md | 30 +- docs/models/components/PaymentSource.md | 38 +- docs/models/components/SCIMDirectory.md | 22 + .../SCIMDirectoryCustomAttributes.md | 12 + docs/models/components/SCIMDirectoryList.md | 11 + docs/models/components/SCIMDirectoryObject.md | 18 + .../models/components/SCIMGroupRoleMapping.md | 18 + .../components/SCIMGroupRoleMappingDeleted.md | 12 + .../SCIMGroupRoleMappingDeletedObject.md | 18 + .../components/SCIMGroupRoleMappingList.md | 11 + .../components/SCIMGroupRoleMappingObject.md | 18 + .../components/SchemasCommercePerUnitTotal.md | 10 - docs/models/components/SchemasCommercePlan.md | 36 - .../SchemasCommerceSubscriptionItem.md | 35 - ...ommerceSubscriptionItemAnnualMonthlyFee.md | 11 - .../SchemasCommerceSubscriptionItemCredits.md | 10 - ...emasCommerceSubscriptionItemNextPayment.md | 13 - ...merceSubscriptionItemNextPaymentCredits.md | 10 - ...rceSubscriptionItemNextPaymentDiscounts.md | 9 - ...mmerceSubscriptionItemNextPaymentTotals.md | 16 - ...erceSubscriptionItemPaymentSourceObject.md | 18 - ...erceSubscriptionItemPaymentSourceStatus.md | 19 - .../SchemasCommerceSubscriptionItemPlan.md | 38 - ...hemasCommerceSubscriptionItemPlanPeriod.md | 19 - .../SchemasCommerceSubscriptionItemTotals.md | 16 - .../components/SchemasFeatureResponse.md | 13 - docs/models/components/Seats.md | 8 +- docs/models/components/Totals.md | 2 +- docs/models/components/Two.md | 60 +- ...VerificationGoogleOneTapErrorClerkError.md | 12 +- .../VerificationOauthErrorClerkError.md | 12 +- ...onOauthErrorEnterpriseAccountClerkError.md | 12 +- ...ificationSAMLErrorSAMLAccountClerkError.md | 12 +- .../VerificationSamlErrorClerkError.md | 12 +- ...ionSamlErrorEnterpriseAccountClerkError.md | 12 +- docs/models/errors/ClerkErrors.md | 2 +- docs/models/errors/Meta.md | 7 - .../CreateOrganizationDomainRequestBody.md | 10 +- .../CreateSCIMDirectoryRequestBody.md | 11 + .../operations/CreateSCIMDirectoryResponse.md | 11 + .../CreateSCIMGroupRoleMappingRequest.md | 9 + .../CreateSCIMGroupRoleMappingRequestBody.md | 10 + .../CreateSCIMGroupRoleMappingResponse.md | 11 + .../operations/DeleteSCIMDirectoryRequest.md | 8 + .../operations/DeleteSCIMDirectoryResponse.md | 11 + .../DeleteSCIMGroupRoleMappingRequest.md | 9 + .../DeleteSCIMGroupRoleMappingResponse.md | 11 + docs/models/operations/EnrollmentMode.md | 15 +- ...illingSubscriptionItemFreeTrialResponse.md | 2 +- .../operations/GetSCIMDirectoryRequest.md | 8 + .../operations/GetSCIMDirectoryResponse.md | 11 + docs/models/operations/GroupRoleMappings.md | 11 + .../ListAllOrganizationDomainsRequest.md | 2 +- .../ListOrganizationDomainsRequest.md | 14 +- .../operations/ListSCIMDirectoriesRequest.md | 9 + .../operations/ListSCIMDirectoriesResponse.md | 11 + .../ListSCIMGroupRoleMappingsRequest.md | 8 + .../ListSCIMGroupRoleMappingsResponse.md | 11 + docs/models/operations/Mappings.md | 9 + .../ReplaceSCIMGroupRoleMappingsRequest.md | 9 + ...ReplaceSCIMGroupRoleMappingsRequestBody.md | 8 + .../ReplaceSCIMGroupRoleMappingsResponse.md | 11 + .../RevokeOAuthApplicationTokenRequest.md | 9 + .../RevokeOAuthApplicationTokenRequestBody.md | 8 + .../RevokeOAuthApplicationTokenResponse.md | 10 + .../RotateSCIMDirectoryAPIKeyRequest.md | 8 + .../RotateSCIMDirectoryAPIKeyResponse.md | 11 + .../UpdateOrganizationDomainRequestBody.md | 8 +- .../operations/UpdateSCIMDirectoryRequest.md | 9 + .../UpdateSCIMDirectoryRequestBody.md | 12 + .../operations/UpdateSCIMDirectoryResponse.md | 11 + docs/sdks/billing/README.md | 4 +- docs/sdks/oauthapplications/README.md | 57 + docs/sdks/organizationdomains/README.md | 4 +- docs/sdks/scimdirectories/README.md | 551 ++++++ docs/sdks/users/README.md | 2 + gradle.properties | 2 +- .../java/com/clerk/backend_api/Clerk.java | 9 + .../clerk/backend_api/OauthApplications.java | 64 + .../clerk/backend_api/SDKConfiguration.java | 4 +- .../clerk/backend_api/ScimDirectories.java | 565 ++++++ .../java/com/clerk/backend_api/Users.java | 12 + .../BillingPaymentAttemptTotals.java | 18 +- .../models/components/ClerkError.java | 20 +- .../ClerkErrorErrorEnterpriseAccountMeta.java | 58 - ...rrorEnterpriseAccountVerificationMeta.java | 58 - ...orExternalAccountWithVerificationMeta.java | 58 - ...countWithVerificationVerificationMeta.java | 58 - .../components/ClerkErrorErrorMeta.java | 58 - .../ClerkErrorErrorSAMLAccountMeta.java | 58 - .../CommerceCreditLedgerResponse.java | 81 +- ...tTotal.java => CommercePerUnitTotal2.java} | 28 +- ...er.java => CommercePerUnitTotalTier2.java} | 22 +- ...asCommercePlan.java => CommercePlan2.java} | 152 +- ...anFee.java => CommercePlan2AnnualFee.java} | 20 +- ...ava => CommercePlan2AnnualMonthlyFee.java} | 20 +- .../models/components/CommercePlan2Fee.java | 224 +++ ...anObject.java => CommercePlan2Object.java} | 10 +- .../CommercePriceTransitionDetails.java | 14 +- .../CommercePriceTransitionResponse.java | 12 +- ...em.java => CommerceSubscriptionItem2.java} | 174 +- .../CommerceSubscriptionItem2Amount.java | 228 +++ ...> CommerceSubscriptionItem2AnnualFee.java} | 20 +- ...rceSubscriptionItem2AnnualMonthlyFee.java} | 20 +- ...ommerceSubscriptionItem2CreditAmount.java} | 24 +- ... => CommerceSubscriptionItem2Credits.java} | 52 +- ...> CommerceSubscriptionItem2Discounts.java} | 34 +- ...java => CommerceSubscriptionItem2Fee.java} | 20 +- ...ceSubscriptionItem2NextInvoiceAmount.java} | 22 +- ...ubscriptionItem2NextInvoiceProration.java} | 20 +- ...CommerceSubscriptionItem2NextPayment.java} | 60 +- ...ceSubscriptionItem2NextPaymentAmount.java} | 22 +- ...eSubscriptionItem2NextPaymentCredits.java} | 52 +- ...ubscriptionItem2NextPaymentDiscounts.java} | 34 +- ...rceSubscriptionItem2NextPaymentPayer.java} | 16 +- ...ubscriptionItem2NextPaymentProration.java} | 20 +- ...ceSubscriptionItem2NextPaymentTotals.java} | 64 +- ...ptionItem2NextPaymentTotalsProration.java} | 20 +- ...a => CommerceSubscriptionItem2Object.java} | 10 +- ...va => CommerceSubscriptionItem2Payer.java} | 16 +- ...CommerceSubscriptionItem2PayerObject.java} | 10 +- ...SubscriptionItem2PaymentSourceObject.java} | 10 +- ...SubscriptionItem2PaymentSourceStatus.java} | 10 +- ...ava => CommerceSubscriptionItem2Plan.java} | 154 +- ... CommerceSubscriptionItem2PlanObject.java} | 10 +- ... CommerceSubscriptionItem2PlanPeriod.java} | 10 +- ...> CommerceSubscriptionItem2Proration.java} | 20 +- ...a => CommerceSubscriptionItem2Status.java} | 10 +- ...a => CommerceSubscriptionItem2Totals.java} | 64 +- .../CommerceSubscriptionNextPayment.java | 18 +- ...CommerceSubscriptionNextPaymentTotals.java | 18 +- .../backend_api/models/components/Credit.java | 18 +- .../models/components/EnrollmentMode.java | 3 +- .../models/components/ErrorClerkError.java | 20 +- .../models/components/ErrorMeta.java | 58 - ...ureResponse.java => FeatureResponse2.java} | 34 +- ...bject.java => FeatureResponse2Object.java} | 10 +- .../backend_api/models/components/Meta.java | 58 - .../models/components/NextInvoice.java | 36 +- .../backend_api/models/components/One.java | 177 +- .../backend_api/models/components/Payer.java | 14 +- .../models/components/PaymentSource.java | 28 +- .../models/components/SCIMDirectory.java | 692 ++++++++ .../SCIMDirectoryCustomAttributes.java | 378 ++++ .../models/components/SCIMDirectoryList.java | 136 ++ .../components/SCIMDirectoryObject.java | 39 + .../components/SCIMGroupRoleMapping.java | 457 +++++ .../SCIMGroupRoleMappingDeleted.java | 171 ++ .../SCIMGroupRoleMappingDeletedObject.java | 39 + .../components/SCIMGroupRoleMappingList.java | 136 ++ .../SCIMGroupRoleMappingObject.java | 39 + ...merceSubscriptionItemAnnualMonthlyFee.java | 224 --- ...sCommerceSubscriptionItemCreditAmount.java | 228 --- .../backend_api/models/components/Seats.java | 18 +- .../backend_api/models/components/Totals.java | 18 +- .../backend_api/models/components/Two.java | 177 +- ...rificationGoogleOneTapErrorClerkError.java | 20 +- .../VerificationOauthErrorClerkError.java | 20 +- ...OauthErrorEnterpriseAccountClerkError.java | 20 +- ...icationSAMLErrorSAMLAccountClerkError.java | 20 +- .../VerificationSamlErrorClerkError.java | 20 +- ...nSamlErrorEnterpriseAccountClerkError.java | 20 +- .../models/errors/ClerkErrors.java | 22 +- .../clerk/backend_api/models/errors/Meta.java | 58 - .../CreateOrganizationDomainRequestBody.java | 24 +- .../CreateSCIMDirectoryRequestBody.java | 276 +++ .../CreateSCIMDirectoryRequestBuilder.java | 61 + .../CreateSCIMDirectoryResponse.java | 253 +++ .../CreateSCIMGroupRoleMappingRequest.java | 130 ++ ...CreateSCIMGroupRoleMappingRequestBody.java | 223 +++ ...ateSCIMGroupRoleMappingRequestBuilder.java | 73 + .../CreateSCIMGroupRoleMappingResponse.java | 253 +++ .../DeleteSCIMDirectoryRequest.java | 101 ++ .../DeleteSCIMDirectoryRequestBuilder.java | 65 + .../DeleteSCIMDirectoryResponse.java | 253 +++ .../DeleteSCIMGroupRoleMappingRequest.java | 141 ++ ...eteSCIMGroupRoleMappingRequestBuilder.java | 73 + .../DeleteSCIMGroupRoleMappingResponse.java | 253 +++ .../models/operations/EnrollmentMode.java | 7 +- ...lingSubscriptionItemFreeTrialResponse.java | 48 +- .../operations/GetSCIMDirectoryRequest.java | 101 ++ .../GetSCIMDirectoryRequestBuilder.java | 65 + .../operations/GetSCIMDirectoryResponse.java | 253 +++ .../models/operations/GroupRoleMappings.java | 274 +++ .../ListAllOrganizationDomainsRequest.java | 18 +- .../ListOrganizationDomainsRequest.java | 30 +- .../ListSCIMDirectoriesRequest.java | 223 +++ .../ListSCIMDirectoriesRequestBuilder.java | 111 ++ .../ListSCIMDirectoriesResponse.java | 253 +++ .../ListSCIMGroupRoleMappingsRequest.java | 101 ++ ...stSCIMGroupRoleMappingsRequestBuilder.java | 65 + .../ListSCIMGroupRoleMappingsResponse.java | 253 +++ .../models/operations/Mappings.java | 141 ++ .../ReplaceSCIMGroupRoleMappingsRequest.java | 130 ++ ...placeSCIMGroupRoleMappingsRequestBody.java | 106 ++ ...ceSCIMGroupRoleMappingsRequestBuilder.java | 73 + .../ReplaceSCIMGroupRoleMappingsResponse.java | 253 +++ .../RevokeOAuthApplicationTokenRequest.java | 130 ++ ...evokeOAuthApplicationTokenRequestBody.java | 105 ++ ...keOAuthApplicationTokenRequestBuilder.java | 73 + .../RevokeOAuthApplicationTokenResponse.java | 181 ++ .../RotateSCIMDirectoryAPIKeyRequest.java | 101 ++ ...tateSCIMDirectoryAPIKeyRequestBuilder.java | 65 + .../RotateSCIMDirectoryAPIKeyResponse.java | 253 +++ .../UpdateOrganizationDomainRequestBody.java | 24 +- .../UpdateSCIMDirectoryRequest.java | 151 ++ .../UpdateSCIMDirectoryRequestBody.java | 381 +++++ .../UpdateSCIMDirectoryRequestBuilder.java | 79 + .../UpdateSCIMDirectoryResponse.java | 253 +++ .../operations/CreateSCIMDirectory.java | 224 +++ .../CreateSCIMGroupRoleMapping.java | 230 +++ .../operations/DeleteOrganizationDomain.java | 2 +- .../operations/DeleteSCIMDirectory.java | 213 +++ .../DeleteSCIMGroupRoleMapping.java | 213 +++ ...xtendBillingSubscriptionItemFreeTrial.java | 4 +- .../operations/GetSCIMDirectory.java | 213 +++ .../operations/ListSCIMDirectories.java | 216 +++ .../operations/ListSCIMGroupRoleMappings.java | 213 +++ .../ReplaceSCIMGroupRoleMappings.java | 230 +++ .../RevokeOAuthApplicationToken.java | 226 +++ .../operations/RotateSCIMDirectoryAPIKey.java | 213 +++ .../operations/UpdateOrganizationDomain.java | 2 +- .../operations/UpdateSCIMDirectory.java | 226 +++ .../com/clerk/backend_api/utils/Retries.java | 15 +- .../backend_api/utils/StreamingParser.java | 33 +- 289 files changed, 15844 insertions(+), 3150 deletions(-) delete mode 100644 docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorSAMLAccountMeta.md create mode 100644 docs/models/components/CommercePerUnitTotal2.md rename docs/models/components/{SchemasCommercePerUnitTotalTier.md => CommercePerUnitTotalTier2.md} (97%) create mode 100644 docs/models/components/CommercePlan2.md rename docs/models/components/{SchemasCommercePlanFee.md => CommercePlan2AnnualFee.md} (98%) rename docs/models/components/{SchemasCommerceSubscriptionItemFee.md => CommercePlan2AnnualMonthlyFee.md} (97%) rename docs/models/components/{SchemasCommercePlanAnnualFee.md => CommercePlan2Fee.md} (97%) rename docs/models/components/{SchemasCommercePlanObject.md => CommercePlan2Object.md} (58%) create mode 100644 docs/models/components/CommerceSubscriptionItem2.md rename docs/models/components/{SchemasCommerceSubscriptionItemAmount.md => CommerceSubscriptionItem2Amount.md} (97%) rename docs/models/components/{SchemasCommercePlanAnnualMonthlyFee.md => CommerceSubscriptionItem2AnnualFee.md} (97%) rename docs/models/components/{SchemasCommerceSubscriptionItemAnnualFee.md => CommerceSubscriptionItem2AnnualMonthlyFee.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemCreditAmount.md => CommerceSubscriptionItem2CreditAmount.md} (96%) create mode 100644 docs/models/components/CommerceSubscriptionItem2Credits.md create mode 100644 docs/models/components/CommerceSubscriptionItem2Discounts.md create mode 100644 docs/models/components/CommerceSubscriptionItem2Fee.md rename docs/models/components/{SchemasCommerceSubscriptionItemNextInvoiceAmount.md => CommerceSubscriptionItem2NextInvoiceAmount.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemNextInvoiceProration.md => CommerceSubscriptionItem2NextInvoiceProration.md} (97%) create mode 100644 docs/models/components/CommerceSubscriptionItem2NextPayment.md rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentAmount.md => CommerceSubscriptionItem2NextPaymentAmount.md} (96%) create mode 100644 docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md rename docs/models/components/{SchemasCommerceSubscriptionItemDiscounts.md => CommerceSubscriptionItem2NextPaymentDiscounts.md} (90%) rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentPayer.md => CommerceSubscriptionItem2NextPaymentPayer.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentProration.md => CommerceSubscriptionItem2NextPaymentProration.md} (97%) create mode 100644 docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md => CommerceSubscriptionItem2NextPaymentTotalsProration.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemObject.md => CommerceSubscriptionItem2Object.md} (57%) rename docs/models/components/{SchemasCommerceSubscriptionItemPayer.md => CommerceSubscriptionItem2Payer.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemPayerObject.md => CommerceSubscriptionItem2PayerObject.md} (50%) create mode 100644 docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md create mode 100644 docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md create mode 100644 docs/models/components/CommerceSubscriptionItem2Plan.md rename docs/models/components/{SchemasCommerceSubscriptionItemPlanObject.md => CommerceSubscriptionItem2PlanObject.md} (50%) create mode 100644 docs/models/components/CommerceSubscriptionItem2PlanPeriod.md rename docs/models/components/{SchemasCommerceSubscriptionItemProration.md => CommerceSubscriptionItem2Proration.md} (97%) rename docs/models/components/{SchemasCommerceSubscriptionItemStatus.md => CommerceSubscriptionItem2Status.md} (61%) create mode 100644 docs/models/components/CommerceSubscriptionItem2Totals.md delete mode 100644 docs/models/components/ErrorMeta.md create mode 100644 docs/models/components/FeatureResponse2.md rename docs/models/components/{SchemasFeatureResponseObject.md => FeatureResponse2Object.md} (53%) delete mode 100644 docs/models/components/Meta.md create mode 100644 docs/models/components/SCIMDirectory.md create mode 100644 docs/models/components/SCIMDirectoryCustomAttributes.md create mode 100644 docs/models/components/SCIMDirectoryList.md create mode 100644 docs/models/components/SCIMDirectoryObject.md create mode 100644 docs/models/components/SCIMGroupRoleMapping.md create mode 100644 docs/models/components/SCIMGroupRoleMappingDeleted.md create mode 100644 docs/models/components/SCIMGroupRoleMappingDeletedObject.md create mode 100644 docs/models/components/SCIMGroupRoleMappingList.md create mode 100644 docs/models/components/SCIMGroupRoleMappingObject.md delete mode 100644 docs/models/components/SchemasCommercePerUnitTotal.md delete mode 100644 docs/models/components/SchemasCommercePlan.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItem.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemCredits.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPlan.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemTotals.md delete mode 100644 docs/models/components/SchemasFeatureResponse.md delete mode 100644 docs/models/errors/Meta.md create mode 100644 docs/models/operations/CreateSCIMDirectoryRequestBody.md create mode 100644 docs/models/operations/CreateSCIMDirectoryResponse.md create mode 100644 docs/models/operations/CreateSCIMGroupRoleMappingRequest.md create mode 100644 docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md create mode 100644 docs/models/operations/CreateSCIMGroupRoleMappingResponse.md create mode 100644 docs/models/operations/DeleteSCIMDirectoryRequest.md create mode 100644 docs/models/operations/DeleteSCIMDirectoryResponse.md create mode 100644 docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md create mode 100644 docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md create mode 100644 docs/models/operations/GetSCIMDirectoryRequest.md create mode 100644 docs/models/operations/GetSCIMDirectoryResponse.md create mode 100644 docs/models/operations/GroupRoleMappings.md create mode 100644 docs/models/operations/ListSCIMDirectoriesRequest.md create mode 100644 docs/models/operations/ListSCIMDirectoriesResponse.md create mode 100644 docs/models/operations/ListSCIMGroupRoleMappingsRequest.md create mode 100644 docs/models/operations/ListSCIMGroupRoleMappingsResponse.md create mode 100644 docs/models/operations/Mappings.md create mode 100644 docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md create mode 100644 docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md create mode 100644 docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md create mode 100644 docs/models/operations/RevokeOAuthApplicationTokenRequest.md create mode 100644 docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md create mode 100644 docs/models/operations/RevokeOAuthApplicationTokenResponse.md create mode 100644 docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md create mode 100644 docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md create mode 100644 docs/models/operations/UpdateSCIMDirectoryRequest.md create mode 100644 docs/models/operations/UpdateSCIMDirectoryRequestBody.md create mode 100644 docs/models/operations/UpdateSCIMDirectoryResponse.md create mode 100644 docs/sdks/scimdirectories/README.md create mode 100644 src/main/java/com/clerk/backend_api/ScimDirectories.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePerUnitTotal.java => CommercePerUnitTotal2.java} (81%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePerUnitTotalTier.java => CommercePerUnitTotalTier2.java} (86%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlan.java => CommercePlan2.java} (87%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanFee.java => CommercePlan2AnnualFee.java} (90%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanAnnualMonthlyFee.java => CommercePlan2AnnualMonthlyFee.java} (88%) create mode 100644 src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanObject.java => CommercePlan2Object.java} (71%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItem.java => CommerceSubscriptionItem2.java} (84%) create mode 100644 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemFee.java => CommerceSubscriptionItem2AnnualFee.java} (89%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemAnnualFee.java => CommerceSubscriptionItem2AnnualMonthlyFee.java} (87%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemAmount.java => CommerceSubscriptionItem2CreditAmount.java} (88%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemCredits.java => CommerceSubscriptionItem2Credits.java} (62%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemDiscounts.java => CommerceSubscriptionItem2Discounts.java} (65%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanAnnualFee.java => CommerceSubscriptionItem2Fee.java} (90%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextInvoiceAmount.java => CommerceSubscriptionItem2NextInvoiceAmount.java} (85%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java => CommerceSubscriptionItem2NextInvoiceProration.java} (82%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPayment.java => CommerceSubscriptionItem2NextPayment.java} (75%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentAmount.java => CommerceSubscriptionItem2NextPaymentAmount.java} (85%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentCredits.java => CommerceSubscriptionItem2NextPaymentCredits.java} (59%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentDiscounts.java => CommerceSubscriptionItem2NextPaymentDiscounts.java} (62%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentPayer.java => CommerceSubscriptionItem2NextPaymentPayer.java} (81%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentProration.java => CommerceSubscriptionItem2NextPaymentProration.java} (83%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentTotals.java => CommerceSubscriptionItem2NextPaymentTotals.java} (71%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextInvoiceProration.java => CommerceSubscriptionItem2NextPaymentTotalsProration.java} (86%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemObject.java => CommerceSubscriptionItem2Object.java} (67%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPayer.java => CommerceSubscriptionItem2Payer.java} (83%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPayerObject.java => CommerceSubscriptionItem2PayerObject.java} (65%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPaymentSourceObject.java => CommerceSubscriptionItem2PaymentSourceObject.java} (62%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPaymentSourceStatus.java => CommerceSubscriptionItem2PaymentSourceStatus.java} (61%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPlan.java => CommerceSubscriptionItem2Plan.java} (84%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPlanObject.java => CommerceSubscriptionItem2PlanObject.java} (65%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPlanPeriod.java => CommerceSubscriptionItem2PlanPeriod.java} (64%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemProration.java => CommerceSubscriptionItem2Proration.java} (85%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemStatus.java => CommerceSubscriptionItem2Status.java} (69%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemTotals.java => CommerceSubscriptionItem2Totals.java} (74%) delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasFeatureResponse.java => FeatureResponse2.java} (87%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasFeatureResponseObject.java => FeatureResponse2Object.java} (70%) delete mode 100644 src/main/java/com/clerk/backend_api/models/components/Meta.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java delete mode 100644 src/main/java/com/clerk/backend_api/models/errors/Meta.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/Mappings.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java create mode 100644 src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java create mode 100644 src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java create mode 100644 src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java create mode 100644 src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java create mode 100644 src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f4015933..33b22909 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,25 @@ lockVersion: 2.0.0 id: 1d22a5a4-8bac-42e3-b164-121fcacf66c9 management: - docChecksum: ad87fb6c641056f81814bb04bc3f9a91 + docChecksum: 72458cec645c67d22d7a1c216180190f docVersion: "2026-05-12" - speakeasyVersion: 1.777.0 - generationVersion: 2.903.0 - releaseVersion: 5.0.0 - configChecksum: 62422f4e77757dbb2d77bd7005168879 + speakeasyVersion: 1.789.0 + generationVersion: 2.916.2 + releaseVersion: 5.0.1 + configChecksum: e4e00cd07d95e871ce08719616e23574 repoURL: https://github.com/clerk/clerk-sdk-java.git installationURL: https://github.com/clerk/clerk-sdk-java published: true persistentEdits: - generation_id: 39212209-43dd-4431-9df2-fc93e2786ce7 - pristine_commit_hash: d6fb4a8507b0e88e57ba8c4c36590ae4254dfd6a - pristine_tree_hash: 1a68b930d54bf1343a218a9c0ea8ad2595741359 + generation_id: 79f94e97-649a-4fbf-83bc-5b1b907b490e + pristine_commit_hash: 5d837d3c49476a8fbf9fa117de853190cfbb8f67 + pristine_tree_hash: 6a9be1ce37ef67db37ef896b90696db48f731477 features: java: additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.3 - core: 3.55.27 + core: 3.55.30 deprecations: 2.81.2 examples: 2.81.9 flattening: 2.81.1 @@ -31,7 +31,7 @@ features: nameOverrides: 2.81.5 nullables: 0.1.0 openEnums: 0.2.0 - retries: 0.1.2 + retries: 0.1.3 sdkHooks: 1.2.0 unions: 0.3.6 uploadStreams: 0.1.0 @@ -46,8 +46,8 @@ trackedFiles: pristine_git_object: c65a59abd80434416e18fa5b07cf3dd862084707 build.gradle: id: f07866736216 - last_write_checksum: sha1:bee48c56b269a6263de35b65e4f174c02a8173bb - pristine_git_object: 935a9133a2007076cd1cdb995baf4836e31d4a5e + last_write_checksum: sha1:38243db8a8067f9b29c42f1818f4bc5ca0b7bf23 + pristine_git_object: 2a6190166cdc03d3ce8c93ddcdabc6befbd6ff77 docs/models/components/Action.md: id: 45f4a6205564 last_write_checksum: sha1:1977fb29d97627637e448369882559ba5a35cfba @@ -146,8 +146,8 @@ trackedFiles: pristine_git_object: d65d53b9b4a545c92bd6ff3dd216242ef4cf1269 docs/models/components/BillingPaymentAttemptTotals.md: id: 1227166e63a2 - last_write_checksum: sha1:9eecd27caca78cc02bce6620bc19794d1812bee2 - pristine_git_object: 4403221e97ca97433b206941c2f699a116b2b0a2 + last_write_checksum: sha1:0a0bb53ca14273c5fbdd2f4b131ba6bfddaa50a4 + pristine_git_object: 620623b2485828372cbf1f67e0cb0d2f04e49677 docs/models/components/BillingPaymentAttemptTotalsProration.md: id: be9af5574891 last_write_checksum: sha1:46e3ab6c30cb9e1893dd9f3f5e7ac806b8802e90 @@ -214,32 +214,8 @@ trackedFiles: pristine_git_object: 5c4b4bd245e9da656bf0f566da530b0f0c047392 docs/models/components/ClerkError.md: id: 96305ddf8e7d - last_write_checksum: sha1:89826f4416685242bf3d152002aa3133b9b79069 - pristine_git_object: 1d4de3feef1afca100982ad16d6c868f67afd906 - docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md: - id: e81f481b36ae - last_write_checksum: sha1:01a33a92d30ae6158809c167e7c891c7e7ca3dab - pristine_git_object: e12e48d273f0baf6dc79afc060eb2bb4ce5fa1ce - docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md: - id: 0beb9e9a2523 - last_write_checksum: sha1:6f22bf2352ea0258239e7502f148544d57ed5b01 - pristine_git_object: af28d7d0c644923d22fadc9f417f0ed26a7f3a2f - docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md: - id: 3ce3a082941d - last_write_checksum: sha1:95fe24d9995baa7cdc60e05cef4925dd46fdd7f4 - pristine_git_object: 498e597554ca06793299f5f9cff1ef78839d25a4 - docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md: - id: c28aa3b60aa1 - last_write_checksum: sha1:9f043b122b64b9f54018060a7b2a2db492f4adcd - pristine_git_object: ef070e0d77b9bc6f659f4b18a2662d4807a88108 - docs/models/components/ClerkErrorErrorMeta.md: - id: b5933beb7b80 - last_write_checksum: sha1:99adcd69e14f9eb25a67d28a59cafe2b1b0c2e8f - pristine_git_object: e705a2f726658e2c29a6a6b3bb42788d3dee4318 - docs/models/components/ClerkErrorErrorSAMLAccountMeta.md: - id: e32c7103119f - last_write_checksum: sha1:4821945ed376d5ca6368f283f97f49bb98f292c1 - pristine_git_object: 2fed9d861c374e00f7d59f3707c686c016cbdee5 + last_write_checksum: sha1:c5b020e02d2d0b46d11f425a701c71a07318ae0d + pristine_git_object: 287e0e33c38038a7dbc83013bdb83ccb3cc9edc1 docs/models/components/Client.md: id: f083be2bc72b last_write_checksum: sha1:ae929c4e99b50315bd52f38adaac5b3f91ccd3d9 @@ -250,8 +226,8 @@ trackedFiles: pristine_git_object: 7dec14afeb995f980b408b5491e31809d800bda1 docs/models/components/CommerceCreditLedgerResponse.md: id: 92ea5fd66f05 - last_write_checksum: sha1:1e2682453e75466b4bf20af1cfd5e1708a869e51 - pristine_git_object: 9d808794288173dc0f7546fd9a57c97f41ef87a6 + last_write_checksum: sha1:55143977c00287dc27a1d7f362dd3ec680926b0b + pristine_git_object: eb0a22365bfc3e34089c9ad93de9de14a90a542f docs/models/components/CommerceMoneyResponse.md: id: e319b813a90c last_write_checksum: sha1:6af9a266a5753b17d6cb29aba063534be800a271 @@ -280,14 +256,42 @@ trackedFiles: id: 327390e5a5b2 last_write_checksum: sha1:ffa14fbd900dac4850e2d3df78d81c96996bdf92 pristine_git_object: 728a45aefa47d7b497c4b47278d29e38b602aeb2 + docs/models/components/CommercePerUnitTotal2.md: + id: ef49d72fc593 + last_write_checksum: sha1:75a497d95ce3e9a2ceddb547eb95e93c31cf8821 + pristine_git_object: 1f11b89ee348e02fb8e153395ad6f2e74b8f953e docs/models/components/CommercePerUnitTotalTier.md: id: dfd499f2e617 last_write_checksum: sha1:cce574be27bada945c35c93bf4b23c819128f442 pristine_git_object: cc883ca746c521d825b8db3f508ac6e294f2789a + docs/models/components/CommercePerUnitTotalTier2.md: + id: 59fec76969a7 + last_write_checksum: sha1:93a96d583fd0c1412239ffc7a58b653428ab79c7 + pristine_git_object: d04e5d5f85244644a673f7302a632bf9d967f309 docs/models/components/CommercePlan.md: id: a48295712140 last_write_checksum: sha1:8fcd3cb604477af0e1feaed1082f6bb3001b2685 pristine_git_object: 515267e0588fb2a4cd52c6d31dc0509316098bf9 + docs/models/components/CommercePlan2.md: + id: f49c6a2fc12e + last_write_checksum: sha1:0a7bdffb6f41720efced36315ebc710f0b944f5e + pristine_git_object: d71495947c5d7c5c9a56af5bfe6f9900702d1318 + docs/models/components/CommercePlan2AnnualFee.md: + id: 8f40ab219475 + last_write_checksum: sha1:e87da2b404f3bb175f25153110bd4b8a052eed65 + pristine_git_object: 7ae69305c69fa127c3e8766e94f2b2cb1d703c1a + docs/models/components/CommercePlan2AnnualMonthlyFee.md: + id: 6398b60b7301 + last_write_checksum: sha1:1b7c186f918697c4f70a828d38e5728cc6cf932b + pristine_git_object: d0582c36483f9bdd994daae11d5a765d4acda174 + docs/models/components/CommercePlan2Fee.md: + id: 491e5b31ecaf + last_write_checksum: sha1:1889acb9f2e30037266f498f18242bc8f119331f + pristine_git_object: 7490f6604b8072bf39c9c3001f37e6357e1be30b + docs/models/components/CommercePlan2Object.md: + id: 60a92962f509 + last_write_checksum: sha1:d827fcaaecbd6bdddc744ba3c5246a7e06d3f1ac + pristine_git_object: 3866700e47cbcc13cde0fab5651b2696d6d98cfb docs/models/components/CommercePlanObject.md: id: fc7a3c2a66b9 last_write_checksum: sha1:1aa38d7bae7272fe94a122c72d93ad2c7c6920c7 @@ -302,12 +306,12 @@ trackedFiles: pristine_git_object: 68dca70a5ebf27e3af8d0503d553f581c36a7ee3 docs/models/components/CommercePriceTransitionDetails.md: id: a2313bad02cc - last_write_checksum: sha1:3b4f754936109b7e9111d12b6cc3e554d06bb0be - pristine_git_object: ebb11beb20596ad7d0867e9b6351b8a2bfa75d86 + last_write_checksum: sha1:b3ee41bf7364eb161719e55b0aa1e80e11d2fa50 + pristine_git_object: d941865a1545104d251786528546d7d612d0cccb docs/models/components/CommercePriceTransitionResponse.md: id: 9f75f01d7eee - last_write_checksum: sha1:9fd2f96126fec0d82c7e8d0cb2b9c77636c73cb9 - pristine_git_object: f4efc82f5ddaf6ab7f6ae441c80a7493f9867bdc + last_write_checksum: sha1:6d85e3232de683ac8d878e3fd6d46f4881118942 + pristine_git_object: 98d28126dad3ab7fcea58ef43a84f4c60d1574b2 docs/models/components/CommercePriceTransitionResponseObject.md: id: ebd27eb75f62 last_write_checksum: sha1:c0b3bf827d59fb10a9a39a26d38698ad58083b7c @@ -324,6 +328,122 @@ trackedFiles: id: a68da2a78e3b last_write_checksum: sha1:7c2fdb030dda103e27228ba8d610bd2995677c47 pristine_git_object: ef6be87bcc549b50047e8fb1a0ded604befeaebf + docs/models/components/CommerceSubscriptionItem2.md: + id: 8130e71f9271 + last_write_checksum: sha1:5f5c8b47b22789ef812569499b37694297d631f0 + pristine_git_object: d70f8690b5f865e39f0ac6b0fbb36a29e9e27770 + docs/models/components/CommerceSubscriptionItem2Amount.md: + id: 32544b13abf3 + last_write_checksum: sha1:35e99cbd698b075a98877fdf58ece4885ad7bbc3 + pristine_git_object: 1028b9271d1331030dec2a75d37d45511db0cf1c + docs/models/components/CommerceSubscriptionItem2AnnualFee.md: + id: fa5ea344cff3 + last_write_checksum: sha1:973062eb8fe25df1f2929e56438e76de00343b7e + pristine_git_object: 7d3d6a2342e7961142ba61289f347d007dc21ecd + docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md: + id: 4124da548aec + last_write_checksum: sha1:7cc528bb59088bbe0f982d19c425f2e30dbb599c + pristine_git_object: c135c4ab6ad3a88a8d7c256e0e17af1db6f00ccd + docs/models/components/CommerceSubscriptionItem2CreditAmount.md: + id: b674cc7b8b65 + last_write_checksum: sha1:0d6e0dee6e952199bc702b1948c3db01bd5f3b3a + pristine_git_object: 38a0e3b284a33efb6f64e63578041359967e87d1 + docs/models/components/CommerceSubscriptionItem2Credits.md: + id: 074b94ec9481 + last_write_checksum: sha1:9aa149e37b11f841ade0a049c0b032ebd51f8461 + pristine_git_object: ac8b9789877ff22ef49bb9195d8ba644171e0226 + docs/models/components/CommerceSubscriptionItem2Discounts.md: + id: 97bfdc89bcad + last_write_checksum: sha1:488c86477c2ac0dda04e04ddd60ab01828ed8ffd + pristine_git_object: e7f9b3d897b0c5e9c24dbd112d45ceadeecedc23 + docs/models/components/CommerceSubscriptionItem2Fee.md: + id: 9da18ae234dd + last_write_checksum: sha1:827d7f66c366beee08b9a0319631e2f76fc88391 + pristine_git_object: 13b3d125f069c6054069af2bbd4658119a554eaa + docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md: + id: 842b863ac609 + last_write_checksum: sha1:77a9f18c0f19b13c5db286d063651d9e5209c727 + pristine_git_object: 7d7415d42e2a081ef96a00b05ffb908454583b9f + docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md: + id: 3c360ee9d8c7 + last_write_checksum: sha1:b0687d8ad3a669968e9fed1c0dbcc67e506f7eeb + pristine_git_object: ae138719efd459f75c05daa060f06320ce3c2ade + docs/models/components/CommerceSubscriptionItem2NextPayment.md: + id: 1e5ed28cc8e9 + last_write_checksum: sha1:d608bea938753cfad2020dd02a13ff17a027e761 + pristine_git_object: 8bde7e00044032c4641fb68f50e57b9a16977ded + docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md: + id: 9b43a131c185 + last_write_checksum: sha1:9c9a81e9b71a9cbfea8e0857ef362aaaec03c6ed + pristine_git_object: a5033c4d287c27d24ea78d5426d92c225e41e86f + docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md: + id: 5e295de6c7d1 + last_write_checksum: sha1:a5b0979c94ee3bd99f1f3889173317141bb0231a + pristine_git_object: f67073c8c51c7576e6c63fe6fc85513424d34571 + docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md: + id: 6b36350e9bba + last_write_checksum: sha1:f0a8e330b03785183515008b81e0e3ef9c2b85c0 + pristine_git_object: 9e92b23c9cef0ec9e1684a3c604f134d14809075 + docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md: + id: 1838c7781934 + last_write_checksum: sha1:d19730e35cfa47644f3a2ed5642d99605754b75e + pristine_git_object: beac250c77259a8ba980c8046cca77b907bd93a6 + docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md: + id: bb4943843e7c + last_write_checksum: sha1:ce387d5d03fd3036f2e22445124b73f3c419e263 + pristine_git_object: 5e6fbf679d70b089139d68d5036858257d0fa29f + docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md: + id: 4e46fe592854 + last_write_checksum: sha1:75e06f3392b882fc08fa321ed7a337f376603f91 + pristine_git_object: 47ede786703a77efef0cce15ee01b92d7cf1fcf2 + docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md: + id: 00d8f3ad141e + last_write_checksum: sha1:17da4a2a8f5e47b7f4deda6f1dc6e138e9f66464 + pristine_git_object: 7eddbc71cfd9e5c1baa54d64f79f50e33eca9a5a + docs/models/components/CommerceSubscriptionItem2Object.md: + id: 99fbcf746022 + last_write_checksum: sha1:ab0a4e4939b5b14823a0ac90731a3b88464c2b0c + pristine_git_object: 0598f0e7abe042605a0b5ddd1d3ae5d64b19eebd + docs/models/components/CommerceSubscriptionItem2Payer.md: + id: ad3f94191c67 + last_write_checksum: sha1:dc7ca2ed43cd37391334d060871c3e4c3fdcdc0d + pristine_git_object: ed9d485c5e9d7361912b571d7a1a30156937890c + docs/models/components/CommerceSubscriptionItem2PayerObject.md: + id: 279693b97bdb + last_write_checksum: sha1:34e1bab1d5c4e1a9d825b58dd149313b0483780e + pristine_git_object: 389b204fbe7dc4281c92d2d599e8091917826173 + docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md: + id: 3cee7386eb85 + last_write_checksum: sha1:e9e97f183b68f4a3bab392f23c9e31e4f8c1513b + pristine_git_object: 2ae80e4d92749488abe5d98689d5303ea31f3f5f + docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md: + id: 29b4e5698dd1 + last_write_checksum: sha1:b99084554acaf59c99d5611ea357bb7c516230f2 + pristine_git_object: f2d33091a8fdad188950e4735f95e67a5f235650 + docs/models/components/CommerceSubscriptionItem2Plan.md: + id: 3db1ac069f2e + last_write_checksum: sha1:34f63003404894851ec81898635349b105501597 + pristine_git_object: 274e4e0b83dae2cf2d3966502ba0c04e6252a033 + docs/models/components/CommerceSubscriptionItem2PlanObject.md: + id: 3ae6d23b0e99 + last_write_checksum: sha1:5caa37c4ab100b91fe3f32746e3b43f441fbae13 + pristine_git_object: 7a26dab041fa8da009e0fca81c805432128ca1c5 + docs/models/components/CommerceSubscriptionItem2PlanPeriod.md: + id: 7d20f2f0c6ad + last_write_checksum: sha1:9edd22719e3e6b3f3a38092b38d0fbb52ac1f898 + pristine_git_object: 71dd6fe0aa2946ec862c53109a2406cdff2b06d6 + docs/models/components/CommerceSubscriptionItem2Proration.md: + id: 569e6940852b + last_write_checksum: sha1:b927e580ae84d392a8b49818e780128941366b77 + pristine_git_object: 4c8031470b21c5dc032138a38f9e546e1d79a998 + docs/models/components/CommerceSubscriptionItem2Status.md: + id: 4a244b57097b + last_write_checksum: sha1:33b17a7fe952396e4524259d5991797b3437bba8 + pristine_git_object: ca82cb4dab9266afc45fdec6390424a41ec7ddd7 + docs/models/components/CommerceSubscriptionItem2Totals.md: + id: eed8449a2cc8 + last_write_checksum: sha1:b3b2b75d5cf4e859be2f6a49c29df76d25c8f250 + pristine_git_object: 2dcdc1055139a8268b7f9c120daa23f089eef13d docs/models/components/CommerceSubscriptionItemAmount.md: id: b67f1afb00de last_write_checksum: sha1:829d17d6adcbffe8a294a02b9eb70d42f8be8635 @@ -398,8 +518,8 @@ trackedFiles: pristine_git_object: 487ae1f4a8a27ebcc4942a48be291c09be04fe93 docs/models/components/CommerceSubscriptionNextPayment.md: id: b1a4acb11434 - last_write_checksum: sha1:6c9f1d2d6bbcdddfb1ad982aee46dd2b943015e1 - pristine_git_object: f1ce0c22439745b47a0ff94fdf31a093da55a7e4 + last_write_checksum: sha1:430cd3245cf15ae38d45fbfaef8f285d70b7fecb + pristine_git_object: 7650717ff613e9f665a3d5fad04e6e8c841517ca docs/models/components/CommerceSubscriptionNextPaymentCredits.md: id: 20578a14d2d0 last_write_checksum: sha1:03ad289897409736cf718b712015e96498310ead @@ -418,8 +538,8 @@ trackedFiles: pristine_git_object: 439d262bd3a88e68b7918648b65eca3e7d32ce58 docs/models/components/CommerceSubscriptionNextPaymentTotals.md: id: 733b333ff87a - last_write_checksum: sha1:39fe89637ebf875f947b29b55de1dfbac497fca7 - pristine_git_object: dad851c1e5acd3d3e70918527600cc0abd8f638d + last_write_checksum: sha1:cacea739148f6fdb54a65807f06a85225a5ce30d + pristine_git_object: daca277124b62c037d3433bad520dd693cc6ba6b docs/models/components/CommerceSubscriptionNextPaymentTotalsProration.md: id: 838d7b416f53 last_write_checksum: sha1:c56ce2f116931f3d67dade315aa1bc30686267f3 @@ -458,8 +578,8 @@ trackedFiles: pristine_git_object: 2609e887e5a0bea78ad284e25ae5f564cd30445f docs/models/components/Credit.md: id: e4dd1ec0fb7a - last_write_checksum: sha1:a27884a6d2fe66044c5c49aaf5b63e236a48f498 - pristine_git_object: 3f11bb6fe1d7c67827d2e7aa49078393ac035c9e + last_write_checksum: sha1:7ebaeaff7a580acf76310ff9be67f8634f84c725 + pristine_git_object: ff1ea1cd65c310914b1b35050830a135c9fd95c7 docs/models/components/Credits.md: id: 09bf15355372 last_write_checksum: sha1:461c6d09ce0f17cd49dd0bd242d8722659493dc1 @@ -514,8 +634,8 @@ trackedFiles: pristine_git_object: 5d0afae5702be5a9254bb59c9fcc185a0caaffa8 docs/models/components/EnrollmentMode.md: id: b4d9b51b3b4d - last_write_checksum: sha1:9597e71738a086b2ac18f0356500e36ef379be69 - pristine_git_object: e95ee5d636d0cc52093e52b1e3d987f788a7c9e0 + last_write_checksum: sha1:f4cd12826ef26691f21f517cb93adbd5d8c59318 + pristine_git_object: 5b8886c85afc3364381af0396969287f1a9fa8e3 docs/models/components/EnterpriseAccount.md: id: 83576d42e40d last_write_checksum: sha1:3f58938ac61a3b450830717c15752dac930c8169 @@ -578,12 +698,8 @@ trackedFiles: pristine_git_object: d92caf20d811dd7a4dd5a5184698d55f201d9643 docs/models/components/ErrorClerkError.md: id: c61488e774ca - last_write_checksum: sha1:449c4922ac104b915bed26b4eb7c76fccd3ffa2d - pristine_git_object: 43ef06343f8b59a418ce7c4734060cea0622deec - docs/models/components/ErrorMeta.md: - id: ea77f8dea729 - last_write_checksum: sha1:74bf9c9aeb68bd55bf2755bd8ca361ad4a3e3d87 - pristine_git_object: e498afa4b687e2d1c1abfa0d7b0fedd1d51002a0 + last_write_checksum: sha1:310a246c41205f77da64e3f378b9f4b3531f6644 + pristine_git_object: f4c70c223dfdedc643700f3afaba3f6aa2582374 docs/models/components/ExtendFreeTrialRequest.md: id: 27c5473f5368 last_write_checksum: sha1:011ff5e7acbfc804abdcf9800c0ed03c0b1be480 @@ -608,6 +724,14 @@ trackedFiles: id: c43f526e957e last_write_checksum: sha1:4c6a5b13fc05c9d308e483047765dfc685125921 pristine_git_object: e4bf8b15335160bcb50794c092ac581a2d605945 + docs/models/components/FeatureResponse2.md: + id: 536e06420d8a + last_write_checksum: sha1:ec18c63db55ed3e2e14bcd30f62b8ccb5f8584e5 + pristine_git_object: 6e48d8b6fd51d1e1230928686a1a0285eddd6172 + docs/models/components/FeatureResponse2Object.md: + id: 0497dbb3d722 + last_write_checksum: sha1:d1ee26460172aea9fe418816e58c1d9d524a0709 + pristine_git_object: f0c59c84a51d3e2b9040ee47c8fd2b1d9114afb5 docs/models/components/FeatureResponseObject.md: id: daf1f231056c last_write_checksum: sha1:a9609482161804cd4b192891d3320997a787a3ba @@ -788,18 +912,14 @@ trackedFiles: id: 88b7a90a4d0c last_write_checksum: sha1:94f163498bfcffcfdbd951623fada465002b687a pristine_git_object: 0161d4df35fdc5259687b22254802b6495611d41 - docs/models/components/Meta.md: - id: 10f732375a7b - last_write_checksum: sha1:15ebd1eb87ca29dca40f7a85b187c7119e9bc5f8 - pristine_git_object: 93f98d6ad4d1504e6a3849971be592f31f4eea76 docs/models/components/NextAction.md: id: c06e3b257338 last_write_checksum: sha1:2c09813dc84f5c3b0d0d7adb7deaf29ea01ef9ea pristine_git_object: 44967dcf22e8db5e770d39862de814e862ec4f9a docs/models/components/NextInvoice.md: id: b4ae679a9b6c - last_write_checksum: sha1:778c4fa295c0ef0eded4d6a45f14fec41aa02cd9 - pristine_git_object: 1afdbee4f022241d78c488fdbd0e1d8a5e572486 + last_write_checksum: sha1:6f008e8714a937d207db425fdce2c77d874c39d4 + pristine_git_object: 271470f16d6c769b5d15bfaa4e883d28c4e4d54e docs/models/components/NextPayment.md: id: 1e2fd926524a last_write_checksum: sha1:dc34357c263121a840cfabf296cc5b3c7602cdb9 @@ -858,8 +978,8 @@ trackedFiles: pristine_git_object: 258dfb42c183da0c2570c97b4a51664c65ee67aa docs/models/components/One.md: id: d3f531a81437 - last_write_checksum: sha1:81731d5a6bd16d1261bd2d6320beea46946bfc67 - pristine_git_object: 8b55d934fd9d1d079d60657b07f974ccd658ae8a + last_write_checksum: sha1:bce29f0bb7ddb8517e6afe225f3190a639ddab9d + pristine_git_object: 55a70fbc20fb779eb4b56a723feaa16d27647634 docs/models/components/Organization.md: id: 63e359b91c0e last_write_checksum: sha1:6077b50f98e25ecd198f73bb8dea7a2e30bd8fef @@ -1010,16 +1130,16 @@ trackedFiles: pristine_git_object: 9da56253026478253013412c5acbb8ac0892538c docs/models/components/Payer.md: id: 7ec14f3e0056 - last_write_checksum: sha1:a4942b7d134dc12ff4a4288ab20cdfebf753fec4 - pristine_git_object: cbce6e74944a28174cc9adc4d2f2400754594c4a + last_write_checksum: sha1:dab2a258882618d47fe4b4590d334c80fe9f2c9d + pristine_git_object: 42a584b2f6e11e8b1209d06cb1641f0acf3e2ca1 docs/models/components/PaymentMethod.md: id: 1b54b132ff41 last_write_checksum: sha1:d0f9cd71b02634209b4a0e2251d88b0e230117f3 pristine_git_object: 0feb73b9f74906109394724dca37688696d483de docs/models/components/PaymentSource.md: id: 148c041a53ff - last_write_checksum: sha1:2dfb15a228ceb602316e01c370bbc4642f919f99 - pristine_git_object: 691b5be5ab1c63ae0303afb1eaaaaea93fe02d93 + last_write_checksum: sha1:be2408e7e59d10da2d787d653710135f19452fd1 + pristine_git_object: 370c089181b64d80bd6c0336281fffb4540fbdff docs/models/components/PaymentType.md: id: c9b9b9c30eff last_write_checksum: sha1:3ab2bb793f73ce6a858c698f634150face7aff3b @@ -1188,170 +1308,54 @@ trackedFiles: id: e1127314b7f6 last_write_checksum: sha1:23ad5226b21cc7a6a8b61ba7783ef127579cd1a3 pristine_git_object: e7255db1f7784cb6f843bd508360a0608079fb99 + docs/models/components/SCIMDirectory.md: + id: 295157804cd1 + last_write_checksum: sha1:0a2c828ff353ee7eca54c8a1e65eba9e94c4d0e6 + pristine_git_object: d1d5c9e02db0cc3581f090dacdbd2c3d49a19754 + docs/models/components/SCIMDirectoryCustomAttributes.md: + id: 84c93e590bfc + last_write_checksum: sha1:981bee925e231a9975aafa36b6538349a3aa3802 + pristine_git_object: 856f62a2eed4af4c4d5558bd5e93b8548e2ef1b9 + docs/models/components/SCIMDirectoryList.md: + id: d34c1c523dd8 + last_write_checksum: sha1:a964ca114d292c9f9424e79292be8d490a46d2ed + pristine_git_object: 9d027d3f260d9c7aae5996d02649c2bdb2efedc8 + docs/models/components/SCIMDirectoryObject.md: + id: d8ec1c9c10c7 + last_write_checksum: sha1:f2236d8fa8f77af0488e25fc1f0015e9ec606902 + pristine_git_object: d8c6ae4b208764fdeef28d71cfe024afa99f323b + docs/models/components/SCIMGroupRoleMapping.md: + id: ebd70d16aac8 + last_write_checksum: sha1:c98c338dc0fba9dfe0a8329a68de2b5e64481291 + pristine_git_object: f4e811ec569171e460915338d2621a3b16c6490f + docs/models/components/SCIMGroupRoleMappingDeleted.md: + id: c26466d9e3e4 + last_write_checksum: sha1:3e47593ee47c27e41bc20cfee28a8ad1596b983c + pristine_git_object: 3faa017aba87e69176030211bab5053645fdf1ad + docs/models/components/SCIMGroupRoleMappingDeletedObject.md: + id: 420d05deb758 + last_write_checksum: sha1:eda38941d6f2fdd165cfff833fcd6b55b4882dec + pristine_git_object: 1082875320cd8c1db6e561de3883e8ce2d9f5ec3 + docs/models/components/SCIMGroupRoleMappingList.md: + id: 4d4f110b48cf + last_write_checksum: sha1:f022b156b0d50276088ad3a37966ed19ead28919 + pristine_git_object: 6c75be92fa5f1bb75529109b715b8c8a8480b835 + docs/models/components/SCIMGroupRoleMappingObject.md: + id: 6a7ed336a29c + last_write_checksum: sha1:e073911c8cdde2e62338b497ed10e23fd815968c + pristine_git_object: 273a13e594743d7238cc0965024ef368842a59b1 docs/models/components/Saml.md: id: b76d2a069b63 last_write_checksum: sha1:7967b6bd931507e9b4e8d5052013e28deee80252 pristine_git_object: 0b1a091b76d4e18dec28d4f419998aa74d896d28 - docs/models/components/SchemasCommercePerUnitTotal.md: - id: 802aab43b562 - last_write_checksum: sha1:111679d351d32d98af5ed0cdf21cc3f0999e29cf - pristine_git_object: aeedba3f4a744b0feb6efb039406e0fd8dfb54cb - docs/models/components/SchemasCommercePerUnitTotalTier.md: - id: 057c7ccfc26c - last_write_checksum: sha1:c42683d4fbe92dbc14beb3487a52cefc0303b7ed - pristine_git_object: d22814a8d2a5a2dec7d84ce2e9ad35780283c418 - docs/models/components/SchemasCommercePlan.md: - id: bbcb2e134990 - last_write_checksum: sha1:2e2b9969405082451fb74f21869893f866c68fd5 - pristine_git_object: a104b3afea14a29ae511b610bf199460c4fcf58b - docs/models/components/SchemasCommercePlanAnnualFee.md: - id: 55c960b90956 - last_write_checksum: sha1:fd21f24b2e4162a823a01c5eacaf59418987b1cb - pristine_git_object: 5639faa669ec0915f46c87cd83c7fa02f5cefe23 - docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md: - id: c58848191f15 - last_write_checksum: sha1:b59dc63c0bf8c156571a8edb0ae6bfeaf0f49c26 - pristine_git_object: 1529a0bff51130adbce7de39cb90defc323a1df3 - docs/models/components/SchemasCommercePlanFee.md: - id: 15e8baff2d21 - last_write_checksum: sha1:a1fda29a41a6e356c394da7b029c4bf8a0047e54 - pristine_git_object: 9b61002c0e4f52b5f7a930f4c6b0f1eb8fba8b7a - docs/models/components/SchemasCommercePlanObject.md: - id: 59ab8ecb6baa - last_write_checksum: sha1:3c2bd1ecb23e1fde4ce8be6041da08214619dd5c - pristine_git_object: d1097c4c33de0e059428ccd480910befd8e60a6e - docs/models/components/SchemasCommerceSubscriptionItem.md: - id: 6702acf0062a - last_write_checksum: sha1:0826aea02ebf09d3c1defe640e4343c4cc20ba0e - pristine_git_object: 6fb77c5405c4799e946bbbd2fc313db7a4839e31 - docs/models/components/SchemasCommerceSubscriptionItemAmount.md: - id: ef4504fbf255 - last_write_checksum: sha1:983eac4d496c2fa2ab2730861ce0381810acbbbb - pristine_git_object: 36b821178a9c05f3a740e75c43c4b36ceb6941d7 - docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md: - id: 08fa88794b48 - last_write_checksum: sha1:16303d746b84252695e00da1970391513bf60777 - pristine_git_object: bbe998bf943f056f720de495626e7272c85c22e9 - docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md: - id: 60a0367c8a64 - last_write_checksum: sha1:3ddb936e3abdc43bf5b8b00f455f2abf31b87941 - pristine_git_object: 74acd4e1bdb62159b701a05fc21595c24b10fac4 - docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md: - id: 1679727584d0 - last_write_checksum: sha1:669dec7ea71ddc701090101491f7bfcbfeafbd98 - pristine_git_object: 636d3916c3e372c8ff7ae62baa6b5599ce328047 - docs/models/components/SchemasCommerceSubscriptionItemCredits.md: - id: 73e51a37a8c5 - last_write_checksum: sha1:ef09f6a307bf7161394a3146562a7446f806ea44 - pristine_git_object: 6dbebdd59db454ac3e21a3926ab29fdfd8202987 - docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md: - id: f844ea212382 - last_write_checksum: sha1:c91b49fc00d93535a514a6e132f32d04c1b5e820 - pristine_git_object: 4274f4e1af831cc1d5334bd985c369670919caa3 - docs/models/components/SchemasCommerceSubscriptionItemFee.md: - id: 966bddbf6948 - last_write_checksum: sha1:bc9276482847f1bd8ad7eff5a6e3a3ef74a851ba - pristine_git_object: 1361b4b8a87cfae82f88acde05545315e498a4fb - docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md: - id: 046171435d7c - last_write_checksum: sha1:78901897d878dd6bb058ef789b0aa5143c8c8b74 - pristine_git_object: b92414eac7f9e221a2bf0a06e814cd503bba5877 - docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md: - id: 1fd92d3a6a83 - last_write_checksum: sha1:248afc2ccb6befe87f6047d131e211ac015e1075 - pristine_git_object: 445e67be74e377851caa29755b697e47a9fa1d39 - docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md: - id: d8792a4dfacc - last_write_checksum: sha1:4a363d8439b5bff28f0f82143a06865f7abcd662 - pristine_git_object: b7227b48543ce2bd98727f087b42db22a9fd26f3 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md: - id: 0189ba3a1197 - last_write_checksum: sha1:69d1ddbce33fb9787efe163076a1a4156babad49 - pristine_git_object: 4689ffdcbbb5d006086203984e3d2645763b3864 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md: - id: c2ac4f80cd45 - last_write_checksum: sha1:a5d79183e1218f1ffbb5812de1dc8882531f7ef3 - pristine_git_object: 7e5b0876f04e7b20872bd7d1b490617095e9f26d - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md: - id: 8b119459ff47 - last_write_checksum: sha1:fdfe2facf81ad608644da9603e4cb83fff59ebaf - pristine_git_object: 399b4cdb25ea576ea022768f16b4c25e11d60270 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md: - id: 74241a4b5cf6 - last_write_checksum: sha1:44037c8018fe10c942461f390d0f1479bc1f0636 - pristine_git_object: 4f58f15362c49fa36ec1905dd9147d9ef026de03 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md: - id: 8dff54bf6c16 - last_write_checksum: sha1:e49ee216c03bf998880f94f15364d1230876ff6b - pristine_git_object: e974a5a6f9bcb22fe823386cd153652f8ba912dc - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md: - id: bce0140a2507 - last_write_checksum: sha1:6ee63b0f26c12cc6c072918499de9a9bf09de537 - pristine_git_object: cf0b09df95239054aed99409e644e265a17bba0b - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md: - id: 14495b4b5ae1 - last_write_checksum: sha1:671a86b0cae78f0a5b9a003ff1c57af0a2c94d6b - pristine_git_object: d788c0b7aa7162657fc5f98297a17a5f39550182 - docs/models/components/SchemasCommerceSubscriptionItemObject.md: - id: 1df8f0b71a44 - last_write_checksum: sha1:30eab9fc0f0a79ef72773946ed79eb8002bc7a3c - pristine_git_object: bb419cb0b55898a93057e3f660bf204215d66e39 - docs/models/components/SchemasCommerceSubscriptionItemPayer.md: - id: 2f7bb9ecc3d7 - last_write_checksum: sha1:97e6a27cb6744154ffa3950ac5e884eefe3c220b - pristine_git_object: 1fbc09130f3be4cbd1264fb9ab6753b88449cf34 - docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md: - id: c7c1aed23c16 - last_write_checksum: sha1:3f22c3e61b3446a8e1cab9dfca0dd6390ca81e4f - pristine_git_object: c67a07446ade99d74a8c5fa9acfd50edce2f03d7 - docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md: - id: af4ec587e2f3 - last_write_checksum: sha1:237f44976b6213e0ea2f73248e5e160acdc8605e - pristine_git_object: eca4d7f57834424cd80c56936fd524c2824edef7 - docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md: - id: ba8237d1d410 - last_write_checksum: sha1:f67d34ac710a191e6b3fd0054fbb7a4283a30b7c - pristine_git_object: d3fbd4161f1a1320a1d6f9683188a75f2a438dc2 - docs/models/components/SchemasCommerceSubscriptionItemPlan.md: - id: 69ac88c04e13 - last_write_checksum: sha1:e3b869deebceae0911f52b3fec0165e8f897ecc9 - pristine_git_object: f2a84b6817537ac30681bd29981c4271b8e2713e - docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md: - id: d15859ed7564 - last_write_checksum: sha1:fcb254e7caa31460387d813c2c8b81f4157f5048 - pristine_git_object: 2d2a25f26aae06be456bbb551b2242fce9c66ef9 - docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md: - id: 72f48521e52d - last_write_checksum: sha1:ae04643ac2b48fd366c0ca86f1534b2dbd66e17a - pristine_git_object: 5226c0910b4462edaf2b5969a9950b4891beb9ff - docs/models/components/SchemasCommerceSubscriptionItemProration.md: - id: 6e1c0ee0366a - last_write_checksum: sha1:d034078eee3b4e3db9adb6a41d261cecf14f04a7 - pristine_git_object: 3f100e413dfe8ce554420d862838368cfa409031 - docs/models/components/SchemasCommerceSubscriptionItemStatus.md: - id: 54fec716b374 - last_write_checksum: sha1:22f569eef82a282ff512d080401369c8fb23a155 - pristine_git_object: 3769ff5d4af3702c8f53d966f647271883d1f997 - docs/models/components/SchemasCommerceSubscriptionItemTotals.md: - id: 575154eb4de7 - last_write_checksum: sha1:d2e150a0a98cc38f98c4d5ec15c8ba422439b282 - pristine_git_object: cd8b588f28a264fb506368006224f488140ad344 - docs/models/components/SchemasFeatureResponse.md: - id: febdae5288f3 - last_write_checksum: sha1:85bca4481b794a30c6e6bbed4ff39c9ad584e24e - pristine_git_object: 3671ee20f41c4331aad705dfdd317ae32d0c372a - docs/models/components/SchemasFeatureResponseObject.md: - id: 2eea7e58babc - last_write_checksum: sha1:d217a0f4ff4d23fc8c26f1b14c464278feeaf9ce - pristine_git_object: aa0095ba3ce275489bd563c6802a922cee70717d docs/models/components/Scim.md: id: 15d999cacc52 last_write_checksum: sha1:6a0a6366f85e04f554d553575766c849043f65a2 pristine_git_object: 13c4087101ffe926f65ac6626a8bf739c8e4be48 docs/models/components/Seats.md: id: ca6ade4bd7ea - last_write_checksum: sha1:51ad9dea69a72d73ae76dbb383956947f0b6d818 - pristine_git_object: c2c05c2d67dfa61a2ee9a9c120ec37b951330ef4 + last_write_checksum: sha1:e168a6abad2bf8167b74160443da1d98b43cacd5 + pristine_git_object: 18a54364ad25ee62fa9aeeceee6f00732f43bfad docs/models/components/Security.md: id: 3878f0f84029 last_write_checksum: sha1:10ed49e1ccadf80fc08408c46bd326e0df89c317 @@ -1470,12 +1474,12 @@ trackedFiles: pristine_git_object: 2b447b070f03ffd99a036bd27379313b7c4f367e docs/models/components/Totals.md: id: d837cc2544f0 - last_write_checksum: sha1:6a1a533f02f4f4ddcac18d4a47291c75d3636c93 - pristine_git_object: 75f051f1ca7020e76659aad1fa524948b7c7eda4 + last_write_checksum: sha1:e95dcf5374cad47677480fbeda0e7b8b3316c690 + pristine_git_object: 32414b67378ed5dc391026b42cdc6614795db6f6 docs/models/components/Two.md: id: d40a2aa6dcb3 - last_write_checksum: sha1:863a212b94d91eae5e4b983d9ef404fc427df4ce - pristine_git_object: 3a3cb546151c099cfde01c894c68fce2cbfad279 + last_write_checksum: sha1:3fdeb706d7f66df1d083657bbc3e269ece89d656 + pristine_git_object: 40b1cdfc9fcb56341a98cf138298841429da87ab docs/models/components/Type.md: id: 8c0a5144d92e last_write_checksum: sha1:2ccd40c0fdb1f9e4aad32b76883508b31299e01b @@ -1558,8 +1562,8 @@ trackedFiles: pristine_git_object: 375df38f3f47162e0f31c5b96a746b0726b792f3 docs/models/components/VerificationGoogleOneTapErrorClerkError.md: id: f19d74b305de - last_write_checksum: sha1:e8b34cbb0afa92b22697d011200526ad76d2cbf6 - pristine_git_object: f6ea715c617687121e9ff950a90f6e3314fa09fc + last_write_checksum: sha1:057249b6640ec4a528268e803f19d89e737913e2 + pristine_git_object: e127ba4abf9daf95fcfc515852dfc90d88a67043 docs/models/components/VerificationGoogleOneTapVerificationError.md: id: 6e98856a545c last_write_checksum: sha1:d8c7563c19683321633d01e20036345d5a201ac9 @@ -1586,12 +1590,12 @@ trackedFiles: pristine_git_object: e7be9844acba84b4c390f8daace68240f85eb73f docs/models/components/VerificationOauthErrorClerkError.md: id: 5e02db2aeecc - last_write_checksum: sha1:bc93a76a46c4816faee0c6a605fd7e428f171622 - pristine_git_object: c1585841fb6ffe17d71d57d628705056ab614c7e + last_write_checksum: sha1:23d6485a9bd5b02359cf73f938ff752d2a6fa571 + pristine_git_object: adc5b8ea54d7f7e69772d57d84099c7438907da8 docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md: id: 6674e395478c - last_write_checksum: sha1:42f46f0340fce95fb56288fa81b395aa8da02022 - pristine_git_object: 41eb739e5864a2ff1f74cfb6003a099473d1d0d1 + last_write_checksum: sha1:6203a4605a922ce293264d08fa966340827a1c1a + pristine_git_object: 7c6faa1335e254cded7507fe2207815a802bc52a docs/models/components/VerificationOauthVerificationEnterpriseAccountError.md: id: 78baad5d6d02 last_write_checksum: sha1:bd4ec60b62082b7d2a66a905bba54db94fa1cab1 @@ -1662,8 +1666,8 @@ trackedFiles: pristine_git_object: 0b351d56f771349cd5b3b74236c2a2efb1b017c3 docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md: id: 6d95cbf81329 - last_write_checksum: sha1:3866d31ba87da18cb6b372070cb94b74938a5c32 - pristine_git_object: 514bca5faa13b670ca863f131f3e7bb67b07dff2 + last_write_checksum: sha1:36d52752f71e290ede1b9a5a30379648aaa22865 + pristine_git_object: e177a50cdfe8317aee383cb8984c15cb7c6cecab docs/models/components/VerificationSAMLVerificationEmailAddressSAML.md: id: 1af16c83b2ea last_write_checksum: sha1:0998a5c43ed4aeddf6828ae64ffbd4b55e74aad7 @@ -1690,12 +1694,12 @@ trackedFiles: pristine_git_object: 34fdcd3c084c24b6f24d3e6bd0c301e468410690 docs/models/components/VerificationSamlErrorClerkError.md: id: e8169c58fe2b - last_write_checksum: sha1:839ecfb8d23c2a71008dfd34a066b1526150a937 - pristine_git_object: 63ff0a97baed0696a7bc5f34c2c720ab37d41c1b + last_write_checksum: sha1:40758d8278c0d49a93fae1182fb9572a85e0dfe2 + pristine_git_object: 8f0c06d59f7192d18b8c75c720e904c6c098896c docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md: id: b83731d5d224 - last_write_checksum: sha1:a65fad7af1f232350ee5119c47e112984d19d86c - pristine_git_object: c6dcc00aa564b27290a73bc53db4b63955e33242 + last_write_checksum: sha1:c6293bc2b3ce04754b57885e6ab619111fda6822 + pristine_git_object: cbff1ec34bb2a8398fa3a4b117215ca9b32f3943 docs/models/components/VerificationSamlVerificationEnterpriseAccountError.md: id: 738eeb969be5 last_write_checksum: sha1:0d1e77fda90b0aa9469675391ad44d967f20525f @@ -1850,8 +1854,8 @@ trackedFiles: pristine_git_object: 02b0ab6a9db6a41b2a9fea4e42938fbb88148589 docs/models/errors/ClerkErrors.md: id: acaea502d84f - last_write_checksum: sha1:9f95a73885ba5de25abdc73538d09d6a6ca12882 - pristine_git_object: 76fd97129c20ce2d45ed011db77b8c6e79bcfdf4 + last_write_checksum: sha1:a34b4bf4675f3c24a871c1b450542dd810af8e11 + pristine_git_object: a9f48db71b70a2ff4631b1fbd0e71eef1e4e81c4 docs/models/errors/CreateAPIKeyAPIKeysErrors.md: id: e9dcc82ff4ba last_write_checksum: sha1:6e2213fafd5a4002d0e560e90266e0260e2b9f40 @@ -2004,10 +2008,6 @@ trackedFiles: id: f18e29ba30cc last_write_checksum: sha1:45141974ea720be5529a63f472e9aec126830ece pristine_git_object: 3fc36fc129b6aeaf804b51bd84025826f77f0ad8 - docs/models/errors/Meta.md: - id: 32db157f93ab - last_write_checksum: sha1:15ebd1eb87ca29dca40f7a85b187c7119e9bc5f8 - pristine_git_object: 93f98d6ad4d1504e6a3849971be592f31f4eea76 docs/models/errors/RevokeAPIKeyAPIKeysErrors.md: id: a44d96b46dbe last_write_checksum: sha1:ee24356cb74b1dfd0904fead4efbc721815c5711 @@ -2430,8 +2430,8 @@ trackedFiles: pristine_git_object: 7c7901c59042308701865e1ceabdff1049c81669 docs/models/operations/CreateOrganizationDomainRequestBody.md: id: c4860fcb8866 - last_write_checksum: sha1:5f2939115102d62b66610ecad7b06629644300f7 - pristine_git_object: d3389b5a9e35c927e1933f7625a03acace0f1b8c + last_write_checksum: sha1:9da2091875597087383239eb9714fb99b04ce850 + pristine_git_object: f33d0a7e28e45f302698650e7f128acef5268796 docs/models/operations/CreateOrganizationDomainResponse.md: id: 5eaf6e15ed12 last_write_checksum: sha1:dca3028b27d6afdcdc58288b5ed564c36842d98b @@ -2536,6 +2536,26 @@ trackedFiles: id: 9eb33bb7672c last_write_checksum: sha1:5da0e627c0ae0c168dd12fe345361b90272b16bd pristine_git_object: cbd0838e798955d3a0fa63acde48393dbd165710 + docs/models/operations/CreateSCIMDirectoryRequestBody.md: + id: cc1afa296572 + last_write_checksum: sha1:f975690cb2f51726ae343f99a6814c83603615e1 + pristine_git_object: b6e0266dbf6c283ab78e6bbc6543379d3e5973cf + docs/models/operations/CreateSCIMDirectoryResponse.md: + id: 076ca624a505 + last_write_checksum: sha1:25e15b6b29c9661f2ab432e8366a2291511b504b + pristine_git_object: ea2d41a0adcc25db6b76be09e89f08b826152a59 + docs/models/operations/CreateSCIMGroupRoleMappingRequest.md: + id: f2d3bf9900c8 + last_write_checksum: sha1:95dfdb4ab95eae5963522ff435eafb4b837c88a4 + pristine_git_object: 624ffc85208ba970164655b79fc275d448c7e331 + docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md: + id: 2e433b354497 + last_write_checksum: sha1:1653e9f908a09bad1793e64223a8f2217100a3b8 + pristine_git_object: 5250ec29e66dceeaa462f97e85ba06c10aac2c10 + docs/models/operations/CreateSCIMGroupRoleMappingResponse.md: + id: 30fbb160341f + last_write_checksum: sha1:aec3c8e515dd71f14bacf9577dc9a23e633e5893 + pristine_git_object: 309eaa29dc428f38aaba30b9e449c35b156ce63d docs/models/operations/CreateSessionRequestBody.md: id: 3af611cc3a88 last_write_checksum: sha1:1cf575f20c6ba5750e1ab0e3b3423c9ae1acc874 @@ -2800,6 +2820,22 @@ trackedFiles: id: 4aabc6b2dba4 last_write_checksum: sha1:2b929bcbf3e7df8c172145296f0d84411f7d8c24 pristine_git_object: 4ac767e978ba4dcbfa17e9c688ff64967499751c + docs/models/operations/DeleteSCIMDirectoryRequest.md: + id: b47edf3b3a9c + last_write_checksum: sha1:c19b834053dfabcbdbb27153f14ba5a7a105ad55 + pristine_git_object: 31a928acde1af2713a282bc02fa11232593e28a9 + docs/models/operations/DeleteSCIMDirectoryResponse.md: + id: 6b807998ecd0 + last_write_checksum: sha1:23158edfe7719fc6455b04d0c60a65519355fef6 + pristine_git_object: bc8dfd53ed97b9094d07a882ee001650788c7e53 + docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md: + id: df099e59a705 + last_write_checksum: sha1:6667133067cad6a0a44b73bcb0c6900b882dc3f7 + pristine_git_object: 75261c1979e97528eca09ea6f6b5b929e6f28e4c + docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md: + id: 76d9dc0b7bc0 + last_write_checksum: sha1:93dafff73da7a4c6f9c4408ad077d2cb3ec78a46 + pristine_git_object: 0db0ec8ac9e60bcd362e537f02fe8454d64b7c79 docs/models/operations/DeleteSvixAppResponse.md: id: 021fc7dc23e6 last_write_checksum: sha1:c9594df72ef0fd347d2ee3f54159624d27f06c6a @@ -2858,16 +2894,16 @@ trackedFiles: pristine_git_object: 5ae6e1044ead8a801b4c5d36046c922e74980fbf docs/models/operations/EnrollmentMode.md: id: 57cf9d7511dd - last_write_checksum: sha1:88837c2ddfd18ee213e979073b2f74bf5455ffde - pristine_git_object: 025654a5350b755e59fa85ff42db65c9dcede7d9 + last_write_checksum: sha1:c0bfe6bd454ccb3301aa539b4c2844f4e3a5eebb + pristine_git_object: 94b2ff9d5012480b08f6bb14c508daba052b22e7 docs/models/operations/ExtendBillingSubscriptionItemFreeTrialRequest.md: id: 5d081be94920 last_write_checksum: sha1:9b0850bbdea43f4f24f655e2e0d04fc0e84a3953 pristine_git_object: 2d61ad178df8a02ccbda467a4a3d0c06e32fb4b8 docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md: id: c702837592a8 - last_write_checksum: sha1:21e290d9c1c58125a3ea6946f00f7a5e531f9ad4 - pristine_git_object: 82e399b0796a43bc9d36d33c1533fb051ea53cf1 + last_write_checksum: sha1:926f7200c950afb380e4c46a8715d398420fc76d + pristine_git_object: d8c7c9c78b9a67f80fda4901132bf09cd699116f docs/models/operations/File.md: id: 355eea942956 last_write_checksum: sha1:7953e0ab989e40fddf8c8f61d528e099868816e8 @@ -3176,6 +3212,14 @@ trackedFiles: id: 025529e1d94a last_write_checksum: sha1:e881ffb059c3ce03c4ee258d09ea7c79c39eb338 pristine_git_object: 7a652a7d1a1e3d3c71d41a144386767852b5f482 + docs/models/operations/GetSCIMDirectoryRequest.md: + id: cf404a5cd815 + last_write_checksum: sha1:664aebe0a875349b2b3abdce2aaa08941a30bb30 + pristine_git_object: c089034f40fbd2fa824ce57d1021642ff345b8c3 + docs/models/operations/GetSCIMDirectoryResponse.md: + id: e99819471523 + last_write_checksum: sha1:b826cb178434e33200714cbb6e1c8c4830271769 + pristine_git_object: d27457ab735acb4cf0c7fa62c2f2906d802f49f2 docs/models/operations/GetSessionListRequest.md: id: 3ba597756590 last_write_checksum: sha1:4d020549bef79a2459b94e4c7411a249cd94b3be @@ -3256,6 +3300,10 @@ trackedFiles: id: 3a1e2921fc87 last_write_checksum: sha1:486ee36f742e37380433b63762a9338c68b536cb pristine_git_object: 83291c8d060d403f839f418290830e2ccabece62 + docs/models/operations/GroupRoleMappings.md: + id: 3db2e82b5fc1 + last_write_checksum: sha1:b26c63cf47036aaafe36a966135ab59026b75ba2 + pristine_git_object: c90766c644dc52f3c2f0f6e1ab4dc99c625f5362 docs/models/operations/IdentificationStatus.md: id: 428fb727b92f last_write_checksum: sha1:1e0a7effc59605c14d33debd0c1ce19f86b6b70e @@ -3286,8 +3334,8 @@ trackedFiles: pristine_git_object: d4d301b44f8bbebcc847569aa849a57fa6799758 docs/models/operations/ListAllOrganizationDomainsRequest.md: id: 8fe742884347 - last_write_checksum: sha1:f5c9c253029149b08710d1e93f46c3c36f1360a8 - pristine_git_object: c0c83f3444838dc098bb83718a9aba209c4ba565 + last_write_checksum: sha1:a1e7dffe9f4f11fee98c1a51751715d81a430e56 + pristine_git_object: b2b649cf3aa435180de096b9050e3d5012269dc7 docs/models/operations/ListAllOrganizationDomainsResponse.md: id: 4401bc46477c last_write_checksum: sha1:bf46556c3fd767381eec9d95b83ce92335fec190 @@ -3378,8 +3426,8 @@ trackedFiles: pristine_git_object: 11a5b0f9e6c6e69c384b637c6e8d2d1d995aecb9 docs/models/operations/ListOrganizationDomainsRequest.md: id: b22a7ea0161d - last_write_checksum: sha1:8007ee6973fa16ca19d4b14274303e31ca39f257 - pristine_git_object: 57590245a303fbfa1c439fa369a9b86aadbad540 + last_write_checksum: sha1:96a5112381589e1c6413da69c801115a997b63c3 + pristine_git_object: 3edb0fd9f8cc07772e4adf14946902a85b4d3628 docs/models/operations/ListOrganizationDomainsResponse.md: id: d57e53acdab5 last_write_checksum: sha1:c0ea2200300fa91bd7bbc8a400e4390365cd2fe7 @@ -3460,6 +3508,22 @@ trackedFiles: id: 209accab83a1 last_write_checksum: sha1:cb4c1d3bb527359367156ad402d5a339e3cb8b13 pristine_git_object: 943e01b94eba6c999be38f03d644f94ba5a8e173 + docs/models/operations/ListSCIMDirectoriesRequest.md: + id: f18ee9b568a4 + last_write_checksum: sha1:8eccd2931302e3d32cc066f90cc2b8a2297fe7ea + pristine_git_object: 46b57e144c6484f76a28f56ef912955b5916ea18 + docs/models/operations/ListSCIMDirectoriesResponse.md: + id: e311c7c8872f + last_write_checksum: sha1:80a136ab2949da5f65d94390edb193645f6d67c3 + pristine_git_object: d8cce0d0b6abff0cd71f5ca7ac6207ebebd2de2c + docs/models/operations/ListSCIMGroupRoleMappingsRequest.md: + id: c6521266cf0b + last_write_checksum: sha1:882ba05c31ec538c1c3e6d9da32f7cb657010ea8 + pristine_git_object: 0d2d308f505409a1aede3da5e9704ca189ac400d + docs/models/operations/ListSCIMGroupRoleMappingsResponse.md: + id: b6fa4df2f0ab + last_write_checksum: sha1:3b09758eb7758c47e23d42a9292ba07289a2e8ba + pristine_git_object: e278e943b0a7b937123700cfc25bb1ffa8722f19 docs/models/operations/ListWaitlistEntriesQueryParamStatus.md: id: 48644eb6f76d last_write_checksum: sha1:fbaf3a2520f8218f2c702e640e215fa590cde6f4 @@ -3484,6 +3548,10 @@ trackedFiles: id: e0d1d8f4f021 last_write_checksum: sha1:23a0b147ef5179a5bed35dae07f57e1ef62e754e pristine_git_object: 2b059972404b4916887aa40eec0e65b0def27ecb + docs/models/operations/Mappings.md: + id: e1257e0bbc7b + last_write_checksum: sha1:11b2d7f1c2684b1fab2c3a3ce1ce00780c83f9f2 + pristine_git_object: df3b0b55e0eefe2753b2a9bcb594422388df480c docs/models/operations/MergeOrganizationMetadataRequest.md: id: 249c0102b81f last_write_checksum: sha1:fa8f8e0e3662091ec15060a50a5dce5da7d86af4 @@ -3640,6 +3708,18 @@ trackedFiles: id: 1fa68a8b21ec last_write_checksum: sha1:57a93824c2afe526ffdd01fbdee9bd75d1cd0f6a pristine_git_object: e60c3e279f6c3715bd69b1db1c9de6901bf2a2c2 + docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md: + id: 6704c0444209 + last_write_checksum: sha1:4ef0b0e9be8da3235614b17574a134ca2538883f + pristine_git_object: d6b430377ece9a7f1a88e68ac06c65078c488c33 + docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md: + id: 42fb6057e237 + last_write_checksum: sha1:0e17a3c767a7c6c1a2865f0333dd828cfabaa29e + pristine_git_object: 589b3a7c12a180d92ec0213654eeefe8a96b8bfb + docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md: + id: f5db8f00c851 + last_write_checksum: sha1:4def070b4110cd4a472fc8d9bb10b44e74635a6a + pristine_git_object: 40b2f7705b794b91bbfe71db2dd74e90935dc29e docs/models/operations/ReplaceUserEmailAddressRequest.md: id: d88a2a1baf5c last_write_checksum: sha1:2b62447bc19be94b481e5dde6ce7d0d55b6a40e0 @@ -3800,6 +3880,18 @@ trackedFiles: id: eb29b0774ac8 last_write_checksum: sha1:5c7590c61f1642c5b57cd7c88e7a7c65e97530c9 pristine_git_object: 713ab49ccb463c527f5adc1cab13e1dac5d2f432 + docs/models/operations/RevokeOAuthApplicationTokenRequest.md: + id: 6305690f573e + last_write_checksum: sha1:fc632c26c1248abef0309256db2cc7cafbcb5062 + pristine_git_object: 11ef4da37d4e9a536f7db7df3604c388e7b177ce + docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md: + id: 5f804e8a95ab + last_write_checksum: sha1:1975dc008272c06107745ca7a2bd93c1af6ccb2a + pristine_git_object: 0d3d86e949cfff3ff1ac0ebc5b2f0591794c3b90 + docs/models/operations/RevokeOAuthApplicationTokenResponse.md: + id: f08ab9ea6f12 + last_write_checksum: sha1:3bce192217f0a22ba98cdc31377c895f5a1ebc10 + pristine_git_object: 8633a5bc7bb46531e91cd9eb0e7b6e148eee21f2 docs/models/operations/RevokeOrganizationInvitationRequest.md: id: b67c06bec2a1 last_write_checksum: sha1:9d5e46bfac7f52dbf718f150cd620798a8213191 @@ -3848,6 +3940,14 @@ trackedFiles: id: e9cc72f12824 last_write_checksum: sha1:aed20e03d5f8e9d6481d0cf4d89a00cc0aacf67a pristine_git_object: 9d5dea39dae93ad1992665fc11532d560823e5e2 + docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md: + id: 03b7a531ea41 + last_write_checksum: sha1:903147ee3bc3cdc9973a38698c12bdb50fa12a45 + pristine_git_object: 052a100f7894b52c029f2385e7dfa6a9b5d02052 + docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md: + id: b571cdc1fde5 + last_write_checksum: sha1:13f79bca4093ff9161bfeb9b1bf7113bf8b12e48 + pristine_git_object: 6dd15dd79923aa191382cbd38eec6baaf0c0482c docs/models/operations/Saml.md: id: b7d65d3ef2ad last_write_checksum: sha1:e6aa85bdd8b2344cac34b18309a7f5d40b233603 @@ -4114,8 +4214,8 @@ trackedFiles: pristine_git_object: f7193b191ba28dab61e597c34d8fe5691c32f291 docs/models/operations/UpdateOrganizationDomainRequestBody.md: id: 33f07196b9d1 - last_write_checksum: sha1:3bec185795496f2bf9a9e26883a6c14ae64ef4b6 - pristine_git_object: 9f685a8eece248df111701820245c479b4d1cf6e + last_write_checksum: sha1:0d42c81f86f8d9dadd8ad9fa5d8f27878f26a79d + pristine_git_object: db683ea76fbdc579691fb52e32fd63fc8b9853e7 docs/models/operations/UpdateOrganizationDomainResponse.md: id: 03814f5327a6 last_write_checksum: sha1:9b9abb30a4085f5176221cc7b2dd6164778a8b00 @@ -4228,6 +4328,18 @@ trackedFiles: id: a3c0670b6120 last_write_checksum: sha1:304b4e11f5836fac4a28183e91b35025f60046d2 pristine_git_object: 4f8b898415db20885caf64cdc7f95909e860fc13 + docs/models/operations/UpdateSCIMDirectoryRequest.md: + id: 3d6bba177783 + last_write_checksum: sha1:c38a6506400ad8e309035d2e5fe92cc3f9e9b983 + pristine_git_object: 0d96a0c4ac3265a6ae1f63b1e5503ba9fbccbb2b + docs/models/operations/UpdateSCIMDirectoryRequestBody.md: + id: 40c7e596911e + last_write_checksum: sha1:3ec128d5b02ba649bcf020ba14ffd997ee97f748 + pristine_git_object: c01180ae028721ba2ea79845af7ab0eb20cc2763 + docs/models/operations/UpdateSCIMDirectoryResponse.md: + id: 3dd2e62d1106 + last_write_checksum: sha1:080be23fc1590899231e7a07dc6bd4e880757bdf + pristine_git_object: 11f18a91296b39a2e27c90d7849e2a26d69612c5 docs/models/operations/UpdateSignUpRequest.md: id: e27519a34655 last_write_checksum: sha1:853e9f34f3f12b94f716fdd409cffdb70119c6d3 @@ -4490,8 +4602,8 @@ trackedFiles: pristine_git_object: c2ab6e9891fad07a124eb7337002b3375f04b0ff docs/sdks/billing/README.md: id: dc915331dd9d - last_write_checksum: sha1:4046687e73947fcb681273ebc1f40152de1a8fd7 - pristine_git_object: 4264f7f767425dacdad5cc2bae40c87e32025aa3 + last_write_checksum: sha1:1f0be60ff3882c883e627428ad3e2ec49946582f + pristine_git_object: 4c317f100902c104a5441e41a3e6cdc8d161ded3 docs/sdks/blocklistidentifiers/README.md: id: c7e007a1e760 last_write_checksum: sha1:eccb6bf4da4a74ab77f0fa37478458589ce96b27 @@ -4554,12 +4666,12 @@ trackedFiles: pristine_git_object: f53b4c25dde82ca37206c6d750e1b39f88feaf37 docs/sdks/oauthapplications/README.md: id: 8962667a62b1 - last_write_checksum: sha1:af30d872613bfe21d6a546f4b3565aa96d753d19 - pristine_git_object: 70b35fdb5fdd914daa4c2e81208a53ef3bd79f0d + last_write_checksum: sha1:4b98e42a683c6a432408e4f34a351aa552ad4f8e + pristine_git_object: 974edface2ac73d0863054de25f8ee4299c1391e docs/sdks/organizationdomains/README.md: id: a256821053b6 - last_write_checksum: sha1:ce4445dc731f2bffcb3e05119b02c9253f9aaba6 - pristine_git_object: 4bc63e3f98b4b62c7771d3c393aa576314148e5f + last_write_checksum: sha1:78d240bfd259446fe1a2ac54787188dee1843a69 + pristine_git_object: 30e37d2b9a9427b4d160f9c6839693600bff7226 docs/sdks/organizationinvitations/README.md: id: 289d4104fbb9 last_write_checksum: sha1:c100e8e5af1c660057524709707eefbc04a47291 @@ -4600,6 +4712,10 @@ trackedFiles: id: c10bb4446e9b last_write_checksum: sha1:99ec17cadfdcbf3094ba745a0bbc9642d8e144dc pristine_git_object: 906b17e8f133dae3f515076698621ecd19445194 + docs/sdks/scimdirectories/README.md: + id: 78ae8c1a63c0 + last_write_checksum: sha1:4607fbcdcef5331c7104011a3c1ce0954b1c498f + pristine_git_object: c5e9eb34c81f75b2671480ddd89237659077e55e docs/sdks/sessions/README.md: id: 57ad62844f79 last_write_checksum: sha1:2f49edccab12e69d351ada28016c854c007cdb2e @@ -4622,8 +4738,8 @@ trackedFiles: pristine_git_object: 9ee3bca6022fca25977862c6abda580f3def47c1 docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:9719d3f07e4ddf1aee78a9bff6bc3443ee5dc0ee - pristine_git_object: dc92a7a5de4b50ee6aacc44e67e5a018d358d5d5 + last_write_checksum: sha1:64f0370b853bd562f18ffcb723239c1c901b1546 + pristine_git_object: 5e1007941ba67813fe0156bcfcd082a0c1b7f52a docs/sdks/waitlistentries/README.md: id: a4b511c18a9a last_write_checksum: sha1:eeef8b5b3c90024d3d0b5df790786dac86e9988c @@ -4634,8 +4750,8 @@ trackedFiles: pristine_git_object: 45f47ee13644598aaf91efff776b5e331d062373 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:dc5ad9b3eb00efdbcff3bb0d70da0e5e96a2f7d0 - pristine_git_object: 3cd7a5f63fcff2751bf6d77766affeebc0ac142d + last_write_checksum: sha1:3d0efd120a99bb778c773ebd2c3a7fb2dd2c2e2a + pristine_git_object: 3fe94eee6108099c82b3ff7a1fa382cbaa89d5e9 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -4694,8 +4810,8 @@ trackedFiles: pristine_git_object: 5bf02163324a409051fe6b8395ab523a4bd34c67 src/main/java/com/clerk/backend_api/Clerk.java: id: f98667576bff - last_write_checksum: sha1:203193f96f39c4c215f7917e5201419f1dac2ed6 - pristine_git_object: 773c40aaf2497dc4387ef67cf47a9b9933ed8620 + last_write_checksum: sha1:54f2dbf2221aecafa1165af87019720c3af7b95d + pristine_git_object: 54389ef4bdd27098b38651c8c884e94a35d01afc src/main/java/com/clerk/backend_api/Clients.java: id: 2b86a17ff763 last_write_checksum: sha1:2c7b3fff8cd457b51317ca1197ced5003f028465 @@ -4754,8 +4870,8 @@ trackedFiles: pristine_git_object: 8f102b8c622d560fbaca16d37d9427fdd7a14358 src/main/java/com/clerk/backend_api/OauthApplications.java: id: e3cea00cfded - last_write_checksum: sha1:1af911e89601c536b22978dac3b5c9de0c3a64c4 - pristine_git_object: dd70f88558ffc5a8cac42255d088aec24a33c9be + last_write_checksum: sha1:6adcbcab21390e4c02e0ecd8128581ce58db3b4f + pristine_git_object: 939293e47260a0894ab9e9858c0ac1f33726bf85 src/main/java/com/clerk/backend_api/OrganizationDomains.java: id: ec98099a9e10 last_write_checksum: sha1:30cee25117f29d1450c1580fdfe11dd232a61c8b @@ -4798,12 +4914,16 @@ trackedFiles: pristine_git_object: 40597c8205e6e12003fcdad6e1d4f084c674effd src/main/java/com/clerk/backend_api/SDKConfiguration.java: id: 02084533ec5b - last_write_checksum: sha1:c02dc719d1d24bddf4a54a12e2bd8f7aa2491813 - pristine_git_object: 4794d32bcedce36c0cf775371a4c78b24b995aa6 + last_write_checksum: sha1:24acb166ba16bdf0b951b884151d5678379d989f + pristine_git_object: 17c2ea4a8aad3b05ae556a3996933edf8c4a3539 src/main/java/com/clerk/backend_api/SamlConnections.java: id: 4bbf4e5d0a3c last_write_checksum: sha1:2e48c2a616261bcc34ae98b7f96b9eacfa8cdee6 pristine_git_object: 7f76add10087f3751b550ebf83bcac1aea639b0a + src/main/java/com/clerk/backend_api/ScimDirectories.java: + id: ac0b05772a9a + last_write_checksum: sha1:c027d080106e336f9332cd4e8356cc32b35ad78e + pristine_git_object: 56c22e5d0acb6d560cbddd5ba3f3e830ce408e6f src/main/java/com/clerk/backend_api/SecuritySource.java: id: 4010c3f377dc last_write_checksum: sha1:860f7ae6b19ce596e37ac476536164f66a68de78 @@ -4830,8 +4950,8 @@ trackedFiles: pristine_git_object: 2d6d35e80ad878256a7a1a71c241668889c0e0e6 src/main/java/com/clerk/backend_api/Users.java: id: 25ce71c73baa - last_write_checksum: sha1:65b9f8744424b068cc6302cb4ed25b1e89b75e87 - pristine_git_object: 089dac5de1e730ae9cdccc4b64de54c8ba08bbfb + last_write_checksum: sha1:9a6a2389c7e399f3d350878913e5ff5422a3d955 + pristine_git_object: 64a19411abc303fbf8eeef77a60713898bf884c1 src/main/java/com/clerk/backend_api/WaitlistEntries.java: id: 5008ff59b95b last_write_checksum: sha1:47fa5ea495bc9740ea46051ec71a584b5c6a64fe @@ -4938,8 +5058,8 @@ trackedFiles: pristine_git_object: babc2558940ec7891afef0e591cc9358ba3f7c15 src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java: id: a46d490f2a94 - last_write_checksum: sha1:5e35746b17a051e89876d186b3b73d064e33733e - pristine_git_object: 9e3129aef3ab099195f9f3eff753d815279824f7 + last_write_checksum: sha1:552dbb0f9a7cde2f019fb64c5ccc7a8a4b268cbf + pristine_git_object: ec28242becc7e71b456f39aba02ac407c0967be0 src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotalsProration.java: id: 4f0675cbb0ae last_write_checksum: sha1:c9bf8f28779741ce6d7741c2bb0bccfae5afeca3 @@ -5006,32 +5126,8 @@ trackedFiles: pristine_git_object: a8ad439891bebc11e38b6e5c838b77899b339b85 src/main/java/com/clerk/backend_api/models/components/ClerkError.java: id: f1831dcc96b5 - last_write_checksum: sha1:d66aca4917302d70c8a9506cccaef23b9e2daff6 - pristine_git_object: 13355bb05b11295606b05c7be4c189aff5a55a73 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java: - id: b735527265f6 - last_write_checksum: sha1:ec0fa27435ffff7d6d866c30624d5e9feb480751 - pristine_git_object: 9c08edf5332ae9480c8d498abdf212af44cf1a5f - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java: - id: 74eef1cb8f04 - last_write_checksum: sha1:87c0d68e76cf710fce9d38f4e78d42712f35c2d4 - pristine_git_object: 8034b5dcc57fb52123a1eb861f7a2ac66ac1ffaa - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java: - id: f3634eb6b13b - last_write_checksum: sha1:2ca6afc9abad68bfac2ef826f28f9ece6e008799 - pristine_git_object: 742fe99a9e20f8f9f5eebe99a32dc984433f8172 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java: - id: 8ec4529d2cbe - last_write_checksum: sha1:cdf61424fc984cab0b90ebeff5c9011dfb0ef406 - pristine_git_object: dfbac8452c883e9dae62ac85705be9d4a3a4a4e9 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java: - id: bed7e8bfd3d5 - last_write_checksum: sha1:dbdd85ff6804f9ce62aad24132ef53245bdc4a37 - pristine_git_object: 66476fdde1ed5cad8826a18d6705002cd11f5ce1 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java: - id: d5aed0bb35b2 - last_write_checksum: sha1:b20f97db7ea1b259ab72d832bf8659315b2f9a79 - pristine_git_object: 259b3df8ed0c0a4de61ff0628c8799c945ed73d0 + last_write_checksum: sha1:f707545d9916b0920a6387768a488d0d3a9aacda + pristine_git_object: fea937df0ff4d102ae8d84e4699397678e3be571 src/main/java/com/clerk/backend_api/models/components/Client.java: id: 22a9bbe493d1 last_write_checksum: sha1:cd684c05b20a9b218778721698d6799c909dd798 @@ -5042,8 +5138,8 @@ trackedFiles: pristine_git_object: 0b07f7315ce750e5ae6b1554aca81405b74d508e src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java: id: 5f288173e67d - last_write_checksum: sha1:224cd1c328b6941d97ea3dad992e1e47f84d7270 - pristine_git_object: 9897c305c4419d9f9535e65ac8067cf32a199b4a + last_write_checksum: sha1:51fbc66561dbc66edd4e0fdbe1b2a844da323779 + pristine_git_object: 9d6d3b312adc11e3d1926d0f64d34f7d7139e0a9 src/main/java/com/clerk/backend_api/models/components/CommerceMoneyResponse.java: id: d933e5826c61 last_write_checksum: sha1:b75b7ff5374b24b8a829520df371ba303012a0ca @@ -5072,14 +5168,42 @@ trackedFiles: id: 6515df030843 last_write_checksum: sha1:2465aef0460dcc64e360b7ecb84f53863a3a8a63 pristine_git_object: 0e84d03ea6e2306200f16cc6a9dead5620f0fcdc + src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java: + id: 9d8bfdeaf059 + last_write_checksum: sha1:dadc68cb2103ee157a37829f2a6b85705cf5ce82 + pristine_git_object: 3d32a069cddb4841ce83a1fd3ee614dde5fe8dcd src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier.java: id: bb62fa3a4fdd last_write_checksum: sha1:25308857925f6689b5cfe37c67e10620ee02a038 pristine_git_object: d409b81152298571287ae94c4faa0e892235881c + src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java: + id: 896a43461f85 + last_write_checksum: sha1:60764f89d40423aabbc4a3f3455feba374538963 + pristine_git_object: 369ac250316110ceb92d8d21396d13f259c51a17 src/main/java/com/clerk/backend_api/models/components/CommercePlan.java: id: 6e833bc1df44 last_write_checksum: sha1:e7d66f7ca0b0e4c1dddec73546851002ab0a98b7 pristine_git_object: cbbefbc67362b206baafe02ceeb619276741b446 + src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java: + id: 3330bfc127cf + last_write_checksum: sha1:273462857cab2905f6af488c996a15cfee40e4b7 + pristine_git_object: cb1dce84198f976c155af951b0baef74de735e77 + src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java: + id: a5612fb757d5 + last_write_checksum: sha1:3aec4a1c8bd2b35f2ab658be00230312ec904caf + pristine_git_object: 557a29a82dc9a3778efe95747eb5e93cb8c34faa + src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java: + id: 7f156d079bdd + last_write_checksum: sha1:d85da50bfc1531c5edbd32fe6b50935f8d82e665 + pristine_git_object: 629d51763e3153c3f16d450f4f811c5750fe99f3 + src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java: + id: 58ff146a6c51 + last_write_checksum: sha1:76a9b8d670d2bbe355623dbe4963ec71c2268525 + pristine_git_object: eafd8542dd936a996b1bf60d5ada1b52e25c2c9f + src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java: + id: 2610d84b92d1 + last_write_checksum: sha1:a648dc4b04456f12da388d97e6baa8e37692fede + pristine_git_object: eeb0f31b684f92661b7a8e1bea40d50bb13afb30 src/main/java/com/clerk/backend_api/models/components/CommercePlanObject.java: id: ff1817bc1c25 last_write_checksum: sha1:695d3e84e57b4d1612a7fce17196bf581a32bd80 @@ -5094,12 +5218,12 @@ trackedFiles: pristine_git_object: 6ef412189eb6cce3cbde88d32532824f08a4564d src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java: id: 583ae4d27e14 - last_write_checksum: sha1:44caadfb630132bd540e9242a165a58495fed8fc - pristine_git_object: 31c56a5b926ed55c8f80be90309d4401ec840c56 + last_write_checksum: sha1:2ec13770453d1eb16f2e3d327a5cdb2f08301c7c + pristine_git_object: 9f0b50b7b46a39de678fa9d901c91fbf04cc4a96 src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java: id: dea8ff9ec633 - last_write_checksum: sha1:b11e3be295b97da0cb3d669cb9d517138bb155f4 - pristine_git_object: 68e238e0b1924a731758e3d237af89b8f00bd7c4 + last_write_checksum: sha1:3d606cee4de67afba377f8fb7615872141543be2 + pristine_git_object: f67bdc30d5a8317f84e7d47641cd6eb9b87d2110 src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponseObject.java: id: 4f3cff860dee last_write_checksum: sha1:079618ede7e94b9c45dcde5f6d2b9eb3ce63e190 @@ -5116,6 +5240,122 @@ trackedFiles: id: 4305da067df5 last_write_checksum: sha1:6b684213257d65b056f53777633b8747794cb55a pristine_git_object: c7cbb23d243ce000c98918512f0d56cb01b52c4e + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java: + id: 0e40d0e53a34 + last_write_checksum: sha1:ea79a35b00d136006dcab85ab73fe7d810dfefca + pristine_git_object: ed8336cda6b118c698d23c72a82a4e5931bcf7c1 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java: + id: d6b1bfb596eb + last_write_checksum: sha1:7c81ddd7bc0b2d39fe09b77decbb91c6269c8867 + pristine_git_object: 04633e94498b469039baac5a249d84c82171a25c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java: + id: 3457464bfd86 + last_write_checksum: sha1:cf423be1f8555e4e262caa4222d8d5b2fe8d5bb0 + pristine_git_object: 8eb056d2cf9b85f51c68bd1c0cc653e7c33ccde9 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java: + id: 6b4a693ba448 + last_write_checksum: sha1:6b7af69de19afe8506fac176e27aec104442aadb + pristine_git_object: c7386acd05ac1a05d241350cddf2dd0773c0e06a + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java: + id: 7a6c071830dd + last_write_checksum: sha1:6f8b2a6989d8ec1c4720cce02f6e5c9441a53358 + pristine_git_object: 5bb5a816e98002bb84f637aba0586d1246991d6a + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java: + id: 356c119e1145 + last_write_checksum: sha1:805c66e1fe7fe13ca4816eed5b86cb3f67fb9108 + pristine_git_object: 94ee5f36a9934ba80e63b97a2e768e43def3a594 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java: + id: 73cc9ed6adf5 + last_write_checksum: sha1:fe3eaea5cb8e6d84878322235f73d5b2e86709db + pristine_git_object: be98826969864d5309e5450c576c827729785a22 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java: + id: c716950d6c60 + last_write_checksum: sha1:738b3a85bfe6dc10b4807e6ac94fbe433cee5649 + pristine_git_object: 5c52fb7493bd3eb27c2ea21b3fb7e8045ebb8a90 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java: + id: b97440868803 + last_write_checksum: sha1:ca6e4f6362bfc48e6c65076f2f9604e89a61d9e1 + pristine_git_object: b14c94a6fa7416bccf24f9ce3a6789abb34a523b + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java: + id: c093246944af + last_write_checksum: sha1:f03b33b34d12531b43cfdc72ced3fe2701b96b94 + pristine_git_object: 8376086e749095f50dc2b098818f963915be135c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java: + id: 8e2a3fcfa3ab + last_write_checksum: sha1:eb027c02fb21bd8e173223f111b8636f03838a7e + pristine_git_object: 6883eda55dfec0364f2cc8d1260cea6bbf0c6f6b + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java: + id: 18595b568483 + last_write_checksum: sha1:8bfe56709cfe39718901bfda44279f9906f60f7b + pristine_git_object: a8088102a0430ee71bbbb6733eeed02d2952ce06 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java: + id: 44c0fec2345d + last_write_checksum: sha1:07d2093307fa3f50baed3146b5209bd121992704 + pristine_git_object: a5b63bd7195ddaf40bd3877bfb739873cbbcade9 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java: + id: f3c86cab7b77 + last_write_checksum: sha1:2215d35996cd196dc44dd10b2ea6cba422939402 + pristine_git_object: 01fcafb6b136c26961c47a26276194f102cb6857 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java: + id: 954251c6294b + last_write_checksum: sha1:dd6020680dea73eeb38a4162e50a3338dc4f10ac + pristine_git_object: 431ea3b6ac04266cade918af9cb40a2e9bae8138 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java: + id: 58bbe66a6631 + last_write_checksum: sha1:89b1c49a3e96a4bd9919002d6488b5421c3fc07e + pristine_git_object: 76e59b877985f788ef6602644dc751520d973563 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java: + id: f82f99fdf693 + last_write_checksum: sha1:defc66e78de9f6ede3dd549631d5ed87aa1de1a3 + pristine_git_object: 299a438749bdef25d5b85005481d1437ad6a566f + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java: + id: 4351f00921b1 + last_write_checksum: sha1:0cf2a5d43ac91be83c066ea0e58f96065fec10ea + pristine_git_object: ff38bc5d2a5d3d3408408b79709d46ddfe4fa02d + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java: + id: 63833485b5d3 + last_write_checksum: sha1:04bf892cd90d1b77bcae8366963d98787efba97f + pristine_git_object: 22c1319c3affb1504882a66f3510951342cb3d86 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java: + id: b5af9c41637f + last_write_checksum: sha1:e754f35080b43a9d31cdf670b20512a5787d8eb8 + pristine_git_object: 038858cbe0ca43db8599054b79d28f1e7d6aa15d + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java: + id: 409d00c0d939 + last_write_checksum: sha1:a93e9b0d00163cc57d236a63979f1a737cacb960 + pristine_git_object: 36d9e1f67c60aa993d277001c62f18df0d3dfb3f + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java: + id: ece58dd05e4e + last_write_checksum: sha1:448c3bc9a2c3a6b11758bc305f5fa35b80aaf0b0 + pristine_git_object: b3bec50c16582036206e5f51a80fbc54f5cde151 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java: + id: 8081f6c7b8ef + last_write_checksum: sha1:6d8d409e9c0a7513ad5d75ace069d87485a0e33d + pristine_git_object: 939507e696d987477e781cbcc1ff950255db86fe + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java: + id: ac992ab5d908 + last_write_checksum: sha1:9ad3f912740b13ca8bcb1aa6144dd120249cdd0f + pristine_git_object: 4ab446b1dc3d3314461bb2daae2bf6c616cd1e88 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java: + id: 6eb62a7185ec + last_write_checksum: sha1:d05d9d644a0afaee0353a7741362522734fc4fad + pristine_git_object: 32dac3cf4c13ba36d9a280d22bf96d3530cba9b3 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java: + id: 0381df8c12d8 + last_write_checksum: sha1:a4712d4193319ccf1547cce4d22dba3cbdd8971b + pristine_git_object: 4658f5d5ba3b675f9bdc654115594f13a65bd92e + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java: + id: d550f2d887a2 + last_write_checksum: sha1:f505a1079e6b19bf1a91176c23ce0b5e04afb4e6 + pristine_git_object: d517dbdc2cfae41d75cade2800729ca773d8f35c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java: + id: 9448215c6c15 + last_write_checksum: sha1:4f99981cda7b5dbe0fbb24669199cc97d8763d9f + pristine_git_object: 09f06f01da6ea2b0131da314f2fff0a5c3a3d83c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java: + id: 1c3312640757 + last_write_checksum: sha1:661972182f184e06758c1e88784fb59e2d61dc34 + pristine_git_object: ed93db51eeb595d248a94df85136e28a202c7e85 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItemAmount.java: id: f07650771472 last_write_checksum: sha1:f5481748d0fa1b038eeebd77ab13749de2b116e5 @@ -5190,8 +5430,8 @@ trackedFiles: pristine_git_object: 69dbdc0083dc85eb566642c5b20837c1828bd0dd src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java: id: "267411602068" - last_write_checksum: sha1:c94cdce3b115833935ea02c077f5cb5fc28031ee - pristine_git_object: 799cfa8e6cb02b3e4e81ca8a77b348be6abede95 + last_write_checksum: sha1:8790e764bba7c9b37f2ded9720f22001d68e101b + pristine_git_object: 9cf9904a2b7246145df4537b16d85cadeeb3c4b2 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentCredits.java: id: d37241d3e942 last_write_checksum: sha1:6cd7cffd9b3a50c4bd7b56be75efe0ebeff50941 @@ -5210,8 +5450,8 @@ trackedFiles: pristine_git_object: 6e7d2c94db63773c1ab74027f11aa764d135412e src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java: id: 6a7861c4558d - last_write_checksum: sha1:c5e1a6dc6018af052b681493fc0a786283a404c7 - pristine_git_object: 67c58898380dc8357c529cf320187dd52cd4379c + last_write_checksum: sha1:b4ace79545fbdaf409f0eae0b4ed4f2bb36bd154 + pristine_git_object: 726050863498c00dc113441676dc2b58ae95b1d3 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotalsProration.java: id: d9c0d404e531 last_write_checksum: sha1:713170a51a65857ea9b3fbd09e107bc0db8fa55d @@ -5250,8 +5490,8 @@ trackedFiles: pristine_git_object: 766b14046b5e62f35220e99d025205b02c7a5b71 src/main/java/com/clerk/backend_api/models/components/Credit.java: id: def2e06cb64b - last_write_checksum: sha1:c588382eaf0d1ac252bd26ef14debf985044eecc - pristine_git_object: 4250798fc3a57a2edfcb39b736ae01e6c81ff9c6 + last_write_checksum: sha1:c74e06199c1e452fa5407b413e0945b3dc72e46d + pristine_git_object: 23519fca56d396f789af1cef98608930e24df345 src/main/java/com/clerk/backend_api/models/components/Credits.java: id: 1fd43b20955e last_write_checksum: sha1:4362331cf98472e1ed3b30ebf7104a3a2ced2774 @@ -5306,8 +5546,8 @@ trackedFiles: pristine_git_object: 5c186f49e0e31a8c5fe5d1db427129f54821d5ac src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java: id: 4dd4016495ce - last_write_checksum: sha1:306c468671f6c0b2bec17a147adf6bc8ebe97a26 - pristine_git_object: f298e70e69121b1795fc1fb54d1d18f4f71b748c + last_write_checksum: sha1:5e4340943697b5bbdee758e8f61768aba1ae01e2 + pristine_git_object: b86f48996aa0863af490414c0e0b6ea3b3075592 src/main/java/com/clerk/backend_api/models/components/EnterpriseAccount.java: id: 13ca497b02e7 last_write_checksum: sha1:a31225ed8aae6454398f2b5623c5acfad31b7bbc @@ -5374,12 +5614,8 @@ trackedFiles: pristine_git_object: cdf5ab8ed8e1c63ec4e3e137910d3c19d28f210f src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java: id: 58db4dfbcc55 - last_write_checksum: sha1:d83f1f9ba75e958f2e05ecab60dd11b388ece0a6 - pristine_git_object: f76c802817607baf0a03a72152e987fbf2496883 - src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java: - id: ae9036341904 - last_write_checksum: sha1:ced618d1288b8f595bd3e72ac9c0c0536f68fd80 - pristine_git_object: be91029e5c4240ffbb9a4511ecf265e46cab4d15 + last_write_checksum: sha1:71a90cc075c676f3e5a59e9f50e33631ec7090b4 + pristine_git_object: 6b1fd2d2d318183562523084ee990c63c0509a78 src/main/java/com/clerk/backend_api/models/components/ExtendFreeTrialRequest.java: id: c7c83486adec last_write_checksum: sha1:1b750e070ac962fefd45897505660ce657f50cca @@ -5408,6 +5644,14 @@ trackedFiles: id: e41961b4d49c last_write_checksum: sha1:2b8489c3c0cf114b756b36f5c795791bcab2831f pristine_git_object: 338f1946c6e44ad3351ea0641f47f708950dbde8 + src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java: + id: a812baf096e0 + last_write_checksum: sha1:d0faf18bf26bbdab0e6989f079950ec559566a2a + pristine_git_object: 9b50488dd07eae1c314f70fbfb089e3ec2109bad + src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java: + id: f27084cf0def + last_write_checksum: sha1:7383d0a4e72c58ddc6c0e5ec919af1415deecdbf + pristine_git_object: 02ac4687dd1d03833b0b0cb4c3752b700c63c54d src/main/java/com/clerk/backend_api/models/components/FeatureResponseObject.java: id: 9cf467d6207f last_write_checksum: sha1:2c893aba7f0324ea47a786a5d4f0e3c7cd31da50 @@ -5588,18 +5832,14 @@ trackedFiles: id: 163285db5e3d last_write_checksum: sha1:f1994d4bc3647b59eab8bd393da83e2ef323e4bc pristine_git_object: 1074ea741005b06bee602818e8ad41c0c26be5c3 - src/main/java/com/clerk/backend_api/models/components/Meta.java: - id: 295ff0b65ecc - last_write_checksum: sha1:048d414861635478cc4ae97586931d20fdaf93eb - pristine_git_object: 8d5b29869e08b8b9595361b12deeed377fe41ab7 src/main/java/com/clerk/backend_api/models/components/NextAction.java: id: 61102596a7de last_write_checksum: sha1:81e334068786ef6e54db5bb5070bc174db4bec2d pristine_git_object: 71135fad536e85b8aa8aa5a46f7cdd33be06b0a9 src/main/java/com/clerk/backend_api/models/components/NextInvoice.java: id: 7031aa3307dd - last_write_checksum: sha1:9fbd25b44b40b008b00dd7e0aa22dd3fe7ff95d4 - pristine_git_object: 9789270b531d720d7d6b91454b53b5f8a8acbbec + last_write_checksum: sha1:662e2e50c8984889c6f7cc18816d3c248ef76f7b + pristine_git_object: dd37044ffebfd31241cc7de53f869e500b925b9e src/main/java/com/clerk/backend_api/models/components/NextPayment.java: id: 6c1b81a1079c last_write_checksum: sha1:a1f6c3b32ba28527af5548ddd221602086bb6491 @@ -5658,8 +5898,8 @@ trackedFiles: pristine_git_object: 4ef52982b34c89129612219e5ad35931c5c85caa src/main/java/com/clerk/backend_api/models/components/One.java: id: 25664b29e93c - last_write_checksum: sha1:e2d428d0831ea5653643af4e38a4477977215eb8 - pristine_git_object: b44ca479665309123bb04a81c8f86f062c3da9ed + last_write_checksum: sha1:35e1821e82d6d4d304de83d503e0b9719c59266a + pristine_git_object: d44678891e1f428eac64ae1f20083052d24da099 src/main/java/com/clerk/backend_api/models/components/Organization.java: id: ab23b4c09b18 last_write_checksum: sha1:8c859714425963945b5eda95c49bf645f3119133 @@ -5814,16 +6054,16 @@ trackedFiles: pristine_git_object: 0a687008b294d5c44d3ef06caeb32740dda2e995 src/main/java/com/clerk/backend_api/models/components/Payer.java: id: cb204c41f302 - last_write_checksum: sha1:64286ad2af233f55304fb8ee272a26c882083585 - pristine_git_object: c70c619c753d63001c775554b204acf80aa7f990 + last_write_checksum: sha1:8f94947b829d26a9d22d8e4009128d0d7cd1937c + pristine_git_object: 05a412097899abf6b89b4eb5f4f227086e1e243c src/main/java/com/clerk/backend_api/models/components/PaymentMethod.java: id: cd9859b69606 last_write_checksum: sha1:c95028baac197a4c63a1bba2103fd3020d5f2402 pristine_git_object: 0d77df6694452de79fa6b54d8cbe1d65f5b373f6 src/main/java/com/clerk/backend_api/models/components/PaymentSource.java: id: 3b701977570e - last_write_checksum: sha1:747c81e57ba0b97e2b9e000bbc18eb3fc20e8d94 - pristine_git_object: 520e17f7cc4570146f81ba5a13e2fa686eb22cdb + last_write_checksum: sha1:717a57ae9089bffa47604a73cc9e9949d3c23247 + pristine_git_object: b389153d35527d060d4c51c937a962c6258bbc85 src/main/java/com/clerk/backend_api/models/components/PaymentType.java: id: b280d5f13826 last_write_checksum: sha1:2ccdb6f6cbc8a607fc7ba4135b178847b7ccbc8a @@ -6000,170 +6240,54 @@ trackedFiles: id: 4634531430d2 last_write_checksum: sha1:d7379f6ea40397ab76efbab176f9295e5392a3c8 pristine_git_object: eedb7412ca285e9cc78f042c43219b6dc900d649 + src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java: + id: 1bf405970832 + last_write_checksum: sha1:55444bb476184c5312e66462ebb5ece774ac0bd6 + pristine_git_object: a3e3597d3eee253138453bce66ec0a01fd4da83c + src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java: + id: 86f475fb75e1 + last_write_checksum: sha1:360d7a5bcfa5002950055ade4b76126e87555fd8 + pristine_git_object: e63ee7d59b3092570cfa432972da3f10b993e548 + src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java: + id: 8d1b721f402c + last_write_checksum: sha1:0a0ac048dde083f6f87ab44100b2ecf58dd198e4 + pristine_git_object: 9d8bec1f41dd832f385b37fdab1b3e8030317c7f + src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java: + id: bfc6a8c582c4 + last_write_checksum: sha1:d42c22eb9cccab1fcbcf414ae1738805a6907cd4 + pristine_git_object: cc436a7ed2992005e228fc614617d00edaf457ae + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java: + id: b99542ec85ee + last_write_checksum: sha1:819f425d09bfa6f9e4d838f8beb10eeb9a5d8e1e + pristine_git_object: c2305a757b0b0b412729b7f7140eb62d1ad614fb + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java: + id: d101c88a0c3b + last_write_checksum: sha1:5293877e2f17cf6b2f27be03424373479aa0301f + pristine_git_object: 8e1ffea55ecdc2b496848b6de9ab47555c252b4f + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java: + id: 184b6751f659 + last_write_checksum: sha1:64b8f38ef43bfc188f8f8723909f559da0f11abf + pristine_git_object: 5b3bea2c6271139ec3c707f7ea554eea5a7199bf + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java: + id: 926acb44a435 + last_write_checksum: sha1:0663160b9b9a230774f61d975e1ff3c6538e976b + pristine_git_object: 305244dc5006fa10d92ce8b4a46cc20abf90d910 + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java: + id: 78f5f936d411 + last_write_checksum: sha1:9f233584f6b73401ffa1926fbe6dff2168536b43 + pristine_git_object: 9a785b47653b83f43a0377cb7e37a7ef68968c33 src/main/java/com/clerk/backend_api/models/components/Saml.java: id: 47564546a8f5 last_write_checksum: sha1:699784c9e31206f2ee92cae0fed32e0348e758bf pristine_git_object: f75b35326a853c27b07e80bb49c240b9de10f94e - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java: - id: 716e515bc5c5 - last_write_checksum: sha1:838f4e1c2f69b0993d2c5f0aaec9686aa8788563 - pristine_git_object: 1de3553898ac4241a8050f33514e572b2f2475e7 - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java: - id: 4957ebab14a7 - last_write_checksum: sha1:03f5c754488c539c16d9297ded17cff6d888f9f1 - pristine_git_object: d706dcc96b6e6446eacfe9cc0426e498e134d7ef - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java: - id: 0cc05a9fb2d4 - last_write_checksum: sha1:0d8b69fb2ec6d29e51296caaa8d9907b0cc17202 - pristine_git_object: 7f9afaabfb48db9ec8f98024c656ecbb0fe59fc0 - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java: - id: 9825c9a0db06 - last_write_checksum: sha1:acf50bc0a88ed84f2f2b158bccf9ed9b4fa8d994 - pristine_git_object: a0de8a27dd1b6dd80f64cbbe87d85cc7762d13f5 - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java: - id: cebec920123d - last_write_checksum: sha1:068a2f5a736f59dab10d97d7e46f13d10a312f32 - pristine_git_object: e794b899c8229f39797c46fdb03a5708dd42d48d - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java: - id: 16a7ccdfcdc8 - last_write_checksum: sha1:3cd4d074c6efb76ea3a95487bd171883b739e888 - pristine_git_object: 56fc4d809f9c025b9e6de5d57deb8f2e5ed162fc - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java: - id: 968a9659ca61 - last_write_checksum: sha1:6dbc00d4a217713d9befbbe8748342563b837673 - pristine_git_object: ac1736cc32e01a7d1ca723bcf77ffec34da27994 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java: - id: 608d6cf24aa0 - last_write_checksum: sha1:a84ee0225f01673351ac7a4f5678dd640726c22e - pristine_git_object: 1e546859f171227fd20e22df9d8020d2400247d2 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java: - id: 8c6f7cfe8bb5 - last_write_checksum: sha1:7f2856c69aecfd2db97a9eb70d413488940c8527 - pristine_git_object: 6924ad8be6edebf0da51b238c106e943f27459c9 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java: - id: 6507372be6e1 - last_write_checksum: sha1:efd6fd3aa0c2cd33d61088279c1e1f92f58ab2e1 - pristine_git_object: 1f6d6a774b0911d4a36742d85cacf7e60d098235 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java: - id: 2ec846c61666 - last_write_checksum: sha1:9352d0191aa485cbe882a855a91c496b9b2592c5 - pristine_git_object: 69442456f7f7e97a4571d5ab416b77a61bd8b145 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java: - id: 5bb07592e559 - last_write_checksum: sha1:43762089f3a789a3e772488153e74e0b3b2bf871 - pristine_git_object: 6455b82d8a67d5de2f0983cba2b642845880452d - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java: - id: f1ead136a9f6 - last_write_checksum: sha1:de6a5c1dd62eca118b4cb252744432343c64d3c7 - pristine_git_object: 068ae38b94d58a2e6c6644ae960100dbb88d3c3b - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java: - id: 352c0157533a - last_write_checksum: sha1:fd5916bf41a85399780477a7b99701623feb6dd3 - pristine_git_object: 78da3cfd9bf00683e98b516a7dafa26b13e92914 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java: - id: 43028752584b - last_write_checksum: sha1:8fb73cffc30c9337dc59676519618f6db7e6dfc2 - pristine_git_object: fb3c20fd13816025b103061562f4a46d6dabff7e - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java: - id: ceb0632495b6 - last_write_checksum: sha1:cb0e2e7df2082a2c77779d02024098d4764b9551 - pristine_git_object: e856a532b9c02bfbaeddcc0be4ae4addb994b032 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java: - id: c20316005f1e - last_write_checksum: sha1:81253c07a76c4132a7f959c441a5211ccd21a5af - pristine_git_object: be16e369ec9adfb3ed15fe3e900411a71d27ae89 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java: - id: 01dddd94c55a - last_write_checksum: sha1:6c54d64512f4aa98210e3d9ca46af2e1fb42df69 - pristine_git_object: e203189d5b1292b4b3f770fe400e01543a210595 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java: - id: c14ca560f270 - last_write_checksum: sha1:44096a7b9d6aec882e0aac13c7b5ad1d7dd203fa - pristine_git_object: 88c2cb4965d5e69df582ca6ad2946bcb1ac50435 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java: - id: 98ecf096f6ec - last_write_checksum: sha1:e7fcfaee5bf7d51c8ce1adcfc4bf74d7b854457a - pristine_git_object: e548d4af6a71fb35e075aaa236004c06e88c0a5d - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java: - id: c09b64d27d43 - last_write_checksum: sha1:0489e498376284ae70e2bbe1fc007c7fa67d7e99 - pristine_git_object: 0f6c3f2056dad6af8d36db946913f1b33fa7fe2d - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java: - id: c150724cc70a - last_write_checksum: sha1:e8dce4213c07c0c4f0c61fe41b0ff2613cb62b1e - pristine_git_object: a89876764999d33ed2c4830c5062a95561d2f6c0 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java: - id: 035df956f74d - last_write_checksum: sha1:27166f45294533a6b099fbf4a68ad08e979fe98d - pristine_git_object: 9336045dd1122528aba37caa98d2b13673e8b655 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java: - id: bba1a5bf88d6 - last_write_checksum: sha1:f61f4df4ba8e9e69ca02e56f7aae5912ad7132ee - pristine_git_object: 07b44a7a0b647f125485e530440add3e8c6e5fbc - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java: - id: "207991478293" - last_write_checksum: sha1:cc247f78e675ccc911becffa2fcd6876324cef4c - pristine_git_object: 6bf07131eb2aea3ae96ab0399ea29cf8b0ed53fc - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java: - id: d0f047b5d449 - last_write_checksum: sha1:6816a1969fea6af2843c96b0dbc1064b542d981b - pristine_git_object: a7f3f67e91cb96c04bed7e17a175796374a99544 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java: - id: 74bc06bd3879 - last_write_checksum: sha1:5061d3c31c0f46a3ef513182901b728fa3e8f7bf - pristine_git_object: 166c01ae1ff3e06de93db97cd918efa8f3e971ec - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java: - id: 9c991a6faea4 - last_write_checksum: sha1:2424c2ad9c8039be5126d3a4e5dd642334f1aafc - pristine_git_object: 1b7b0fdc5e42660664591365e91257aebf28e11e - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java: - id: e65bbc0aa1dd - last_write_checksum: sha1:0b2ff0ccb2561dc6a34c330cf1c86f366cc02b57 - pristine_git_object: 2a039b438d5a552fb3a7f1d87f0426d0351496da - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java: - id: 0cc1cfe48732 - last_write_checksum: sha1:c0f6a11add2114fcc09526a8c8711d02cf8c8775 - pristine_git_object: 69ba00907d7229220f41784ee1804ebb05e704dc - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java: - id: 1601d14866cb - last_write_checksum: sha1:f80e3a6b2ce7a12ce0a1ed238e222f113abaf3cc - pristine_git_object: 237ecd7da066399dfff3071e8cb7d91fb6411a63 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java: - id: 2cd9ed12bfc5 - last_write_checksum: sha1:69f36893ce758cf1b7b66fddde94ed3134cb8e34 - pristine_git_object: 535036c64187744ee470fa7432ee2e4f60828325 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java: - id: 05137c926d24 - last_write_checksum: sha1:b0ee2d4db82f864b97f4dc351b6642c61adc5c9f - pristine_git_object: 0036ba7e3d765bb0fd0097bcb140cfea6951e575 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java: - id: 61870a406fff - last_write_checksum: sha1:d2188d8e57c558ac7f714c2f878906cd8e4e4314 - pristine_git_object: 6cf59f66d59a7eeabe1b4fda7566bbb0c3138007 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java: - id: bbee3fbb8905 - last_write_checksum: sha1:dd0f9041e1a813f88f9684868ce95044904342d1 - pristine_git_object: 21103ceeee8f994421eabbd02b1adfce1a66aa33 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java: - id: df3cd66addec - last_write_checksum: sha1:4633d939a0c9eaf8aa2f71139742cef0414ca9e9 - pristine_git_object: 85b4664389e4224d06320ba60dbb72acce649092 - src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java: - id: 599152e6cbc3 - last_write_checksum: sha1:d01a9e0be7250572fae63529a67eb1a37e29d997 - pristine_git_object: 0dabf600e1ace02b729ce96a55f361a8d213f731 - src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java: - id: bb857764be22 - last_write_checksum: sha1:3f1f7b767a9917139b7a692f4b934053cf327442 - pristine_git_object: 0a20ffc71a06ff214b49df5adcce99c405f76aba src/main/java/com/clerk/backend_api/models/components/Scim.java: id: 602a309b40a5 last_write_checksum: sha1:dadc2ed92b51d6bc03450db9fc34556c59575aaf pristine_git_object: 33344e519e7f3d4db7aa1dc2505bcfc0c057c07f src/main/java/com/clerk/backend_api/models/components/Seats.java: id: a2587836532d - last_write_checksum: sha1:705ccb5a6e6f5f5f9c5271096a437708bde260af - pristine_git_object: 990e1c6af7eb9d1c0dc6a237bd27dec0c5230715 + last_write_checksum: sha1:aa244297c0e31aa8b51ee17e81a1bda8f221770d + pristine_git_object: e8c3d7ebe94a571654f17c4a2d5f1161ad10ce91 src/main/java/com/clerk/backend_api/models/components/Security.java: id: f5c22fa96300 last_write_checksum: sha1:cccd86e428763a6d05632a797fedc1952ae7945b @@ -6282,12 +6406,12 @@ trackedFiles: pristine_git_object: c33ae3370efcb945a884cf6356b2f5e260106245 src/main/java/com/clerk/backend_api/models/components/Totals.java: id: 8b62f4637066 - last_write_checksum: sha1:fee537efae9bd20d8668d4617ae774d87d50a5e9 - pristine_git_object: 52776546a64b17122aad9bf044424434cac10c32 + last_write_checksum: sha1:8e6c206d53e837115eb41969488cf707cfaaee47 + pristine_git_object: c1e8e26753259cccbeafd7a5ecaafbd423cb1eaf src/main/java/com/clerk/backend_api/models/components/Two.java: id: c2c940050402 - last_write_checksum: sha1:6dcd2c3985e4afc49be8b3b339b639a6bb5b6b91 - pristine_git_object: fde05af7661cdec34dd8913607b6a52c47c5a406 + last_write_checksum: sha1:8ad302d8136a46db05b71a29477549d83a0b3ec1 + pristine_git_object: 779ed16b6a73a9acb47adba824a4255f4bc77024 src/main/java/com/clerk/backend_api/models/components/Type.java: id: 9855581d6485 last_write_checksum: sha1:6f669f1911ab8e55bbc33703d7f94c283df2d958 @@ -6398,8 +6522,8 @@ trackedFiles: pristine_git_object: c5ee7000bdf3ccfcf266582f0b1650457f521ad7 src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java: id: eb109fd9552f - last_write_checksum: sha1:8296a2083891ec5161bab5df70a4e412183abd4d - pristine_git_object: b62b74ab9cec553509ea6ce5d0bb04216aa97dac + last_write_checksum: sha1:c7481c3a3f1eabb0ad8623364d9f8ef212009d81 + pristine_git_object: 200a73fd09d4159f272a5199378c6a3d0e245f35 src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapVerificationError.java: id: ba86839a238c last_write_checksum: sha1:be02f55548e47259fa255d0eeb83de891f5f24f7 @@ -6426,12 +6550,12 @@ trackedFiles: pristine_git_object: 6cba6d6956ec1c1488aab1c200e30e3a61ef505e src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java: id: ff19d8840156 - last_write_checksum: sha1:a3d441b252f72dad40851d0624aa5ed2130d1a23 - pristine_git_object: fe814f55ac2de3bf13544bd3ec3ec033e42f4076 + last_write_checksum: sha1:d1b65b19a8ea3dfe0a81c3cbe9bf7e22e7986d6e + pristine_git_object: 1ac45de6cfc0702d5f62c339e8a989d79248c2d7 src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java: id: 9f9743f60dab - last_write_checksum: sha1:ad7d435d33d674db46c5d7483842535ccd26efc4 - pristine_git_object: be604a96211de956c8b3b4f8abe383505f45151c + last_write_checksum: sha1:e00b930d1a7d25600474c07dcbffe6cfa768df81 + pristine_git_object: 9896ddaefd161801081be81866cb345cc3abe832 src/main/java/com/clerk/backend_api/models/components/VerificationOauthVerificationEnterpriseAccountError.java: id: 3d16745840b2 last_write_checksum: sha1:66272acce02a67f1bd220cc8f229240c47d2aa8a @@ -6502,8 +6626,8 @@ trackedFiles: pristine_git_object: 792ac449336f4d42fab378cafc0750109e7b3eac src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java: id: 2ce7f73cbe37 - last_write_checksum: sha1:cc46d2863d750ac7c44970eecbe2fbd985a316d5 - pristine_git_object: c56001626462da922925938813ef913c4a8a9e5c + last_write_checksum: sha1:1870eed22a9e3ddf1c8e1103f3c06c19aa0cee7a + pristine_git_object: c53120651cbaca609a1c55c63ebe075985cb0bca src/main/java/com/clerk/backend_api/models/components/VerificationSAMLVerificationEmailAddressSAML.java: id: 32532625dbb9 last_write_checksum: sha1:1a985cd61d5c2b9dce10011844ea7382b64e6470 @@ -6530,12 +6654,12 @@ trackedFiles: pristine_git_object: 8e5f07cd7c5ce8f263a0a4e39db2a523887a53ef src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java: id: 895f787d2923 - last_write_checksum: sha1:4bf510284b2d71fe5b5743e1797a9770760e21d6 - pristine_git_object: ad3a531433c7b79baf594f1dfccecd3e8609df4a + last_write_checksum: sha1:a378ad8af492eac66eb934a10c6923bebff11521 + pristine_git_object: 37d962347403fb2e2c408f3669e5176e7d985aaf src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java: id: 7c75291348fe - last_write_checksum: sha1:606436b5a3de30843ffad8fd04be39b1460bbdb0 - pristine_git_object: 04484d5c09f1b8ea29f6f76b766d9d993a2d71fd + last_write_checksum: sha1:5096e1fab9a8b46429af465f40ee9b10e78ecc1d + pristine_git_object: 8b4fba883517804568327717d2f5f84e7c314a20 src/main/java/com/clerk/backend_api/models/components/VerificationSamlVerificationEnterpriseAccountError.java: id: 255db8445a50 last_write_checksum: sha1:1916a40f2e5888a4bf05920ea76118669e170132 @@ -6710,8 +6834,8 @@ trackedFiles: pristine_git_object: 67a329b27851b3974741a9c0fe1ac00f2519ccab src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java: id: 2def47eec248 - last_write_checksum: sha1:d07ecc5d63e55898c7058772011cc226c6527985 - pristine_git_object: 89eeb7f55c77785f0cd4e2811c99400b2b0cd355 + last_write_checksum: sha1:0182e37f773c4204a3ac725d7d22d70a387fa7e2 + pristine_git_object: ea75353ae9d02fa015938f977736f4831ae9457e src/main/java/com/clerk/backend_api/models/errors/CreateAPIKeyAPIKeysErrors.java: id: 80e3e5525201 last_write_checksum: sha1:8e3f5b2cf40032c7d2e881c585f563669890cf6a @@ -6864,10 +6988,6 @@ trackedFiles: id: b27ee499780c last_write_checksum: sha1:a1c39121633cded859ce409a6ad4c0e0dad06903 pristine_git_object: 8b4d88a230094765e640f7e12e1a3db880688f09 - src/main/java/com/clerk/backend_api/models/errors/Meta.java: - id: 4e29b42bb82c - last_write_checksum: sha1:c8a6ec446328929279f645a3be103ef1bab852d8 - pristine_git_object: 113d04e52d254e722e81097dcc6bf22455518fef src/main/java/com/clerk/backend_api/models/errors/RevokeAPIKeyAPIKeysErrors.java: id: 5fa7e9f691f8 last_write_checksum: sha1:e4d361832f51ff449914583c60cacb9c7b99f9d6 @@ -7410,8 +7530,8 @@ trackedFiles: pristine_git_object: bfbcb282e97a18cf6f778487ebc3a612d8c0866d src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java: id: 20f05406b667 - last_write_checksum: sha1:654633f3d704500645ebf42788021e53b29e9903 - pristine_git_object: 6aa5ab2f702477243e492f4c70d64d07269df644 + last_write_checksum: sha1:f71f1e5689cd204f42da3420be43b8002552be1c + pristine_git_object: 30b071a35fa285503bef017bf591847d3fb48be8 src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBuilder.java: id: 3142f2dfb41b last_write_checksum: sha1:eea207283d9b4084ec44fde3716bd61d170f78fd @@ -7560,6 +7680,34 @@ trackedFiles: id: c18b79105609 last_write_checksum: sha1:80538f5fca5ef4fa48882e78cfa86305a1bb8859 pristine_git_object: 26b4735a10850d7f126da8169bba793e47677f70 + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java: + id: 927aa3de289f + last_write_checksum: sha1:b78179c9e8245f9b4054f0519048378ad725cd47 + pristine_git_object: 4ee9aa5fed5309d2d83f5a9d957576a53f6e2f3e + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java: + id: 47fe861e138c + last_write_checksum: sha1:b94b365257b4714d00d88ffd64ca07c700c731e9 + pristine_git_object: 6409e9a39a9eb04406edb64359afb92487f1f7eb + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java: + id: 6ba6af85d1db + last_write_checksum: sha1:1804a2e70a1b981bcd73408ec23d4b655d7d5e8d + pristine_git_object: 89eaf58801a6099338ae9b148894ad22bd0dc122 + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java: + id: 1b00b9d59424 + last_write_checksum: sha1:90e576c8ed938b685a1ffd568410347f540785b2 + pristine_git_object: 73afa2a07107bfc6c351b7c75e442be9e1bbe79e + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java: + id: 666cc928c726 + last_write_checksum: sha1:768d7e67aa8fff8d120b35d4abd00ca8ed29343d + pristine_git_object: 101781d77ea573e27aa9f44a674604ce7ee893ee + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java: + id: 3e8b806ae0a0 + last_write_checksum: sha1:254f4464cc6435131b3425e787a3f0c1779d611a + pristine_git_object: eb9e6b828e445029bbd3f814261b1431f12cbb47 + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java: + id: 61ba5ca0ee1b + last_write_checksum: sha1:cdb3c63c95d38af7dbaedd38baf0bd28d18fedf8 + pristine_git_object: 7fd56f3317c8d6f725db9567abf9b6925491a96b src/main/java/com/clerk/backend_api/models/operations/CreateSessionRequestBody.java: id: 19d364357585 last_write_checksum: sha1:4e8665a9587737be6be9f93a68edfcde93c327bb @@ -7940,6 +8088,30 @@ trackedFiles: id: 160035ffad08 last_write_checksum: sha1:feebad0bc74049be07fca912a770e3cf9356db05 pristine_git_object: aa3297ad5191130cf5893cee88dd9e704a9721b8 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java: + id: 706eb3b38129 + last_write_checksum: sha1:4be9f30ca16de03b43afeb7313c12262823f4739 + pristine_git_object: 0d9744cc17f7d8c32d726978920f2f912580a188 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java: + id: bd8176f65051 + last_write_checksum: sha1:a4593fb6dd51be362f9ecb616597766e5328b5d9 + pristine_git_object: 903c1f8c6fad903446c13a2693822ac650b77330 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java: + id: f6375be482f4 + last_write_checksum: sha1:eb18d8220908118c27be3984e5eb898ddf3bc640 + pristine_git_object: b4552e647e2fbd53356a0f6a5595940ed50af3c1 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java: + id: 18f5b99a1ccc + last_write_checksum: sha1:69da9165a06b38fd82cf091521c5c7ede6fcbb53 + pristine_git_object: 3ff97fb42021f5a5d1a5c70840d2f5c126b8857b + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java: + id: ae5930e764f5 + last_write_checksum: sha1:4e458723bf1f4407bd1b71b37572e295e96e0409 + pristine_git_object: 4c983495b64922ac07c30c2161f45c7646a34d8b + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java: + id: 9462d5cbae83 + last_write_checksum: sha1:c4bec5fb7c341f83dbffe997b57c1fad47fde327 + pristine_git_object: 7a5e174a785fce061528f01e28c0180cd7810bd4 src/main/java/com/clerk/backend_api/models/operations/DeleteSvixAppRequestBuilder.java: id: d14ed5b127b3 last_write_checksum: sha1:8728923dc0b47cd6619c65748eb968f33783c9f7 @@ -8022,8 +8194,8 @@ trackedFiles: pristine_git_object: 888d2936e4be3e6bdf5ee61a67204ee6bb59c6e2 src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java: id: df0169409318 - last_write_checksum: sha1:21ed4ebefa6d84ac1d50d9a5ced3e2aa8cf924ae - pristine_git_object: 7a7e9411a72dbd4c1cdc13af6ab5d3a05e7b07a0 + last_write_checksum: sha1:0303ffdfc7d1b40ba4ddc8fc19eb1d3603b0979c + pristine_git_object: 93d5a91b4d8c31a10e54006f1a5a23aa290da136 src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialRequest.java: id: a6b713ac73ae last_write_checksum: sha1:8bdef75ca0fcdbd46c42423448dd5c32f8c59501 @@ -8034,8 +8206,8 @@ trackedFiles: pristine_git_object: 57f07d783a3f5bdce6cafe2eeac488bc218e0087 src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java: id: 52d39dcd384c - last_write_checksum: sha1:efe7137bdf4cf348dfe67152bbcba888206ef545 - pristine_git_object: 75c97ccfcae42fadaaeb87cce9102cdad2ed5795 + last_write_checksum: sha1:2c9e6dfee21444b2e99ad38a96712a50d20ae621 + pristine_git_object: fcbf157c319e2b1e52f8bbcd9868949638e59ae9 src/main/java/com/clerk/backend_api/models/operations/File.java: id: 98483022839b last_write_checksum: sha1:654df3e2da8c3f2a9a912add35d87de801c32b7f @@ -8492,6 +8664,18 @@ trackedFiles: id: 0b074386f37c last_write_checksum: sha1:3de284b4bf2f64c546b2652c9792f833d80ced15 pristine_git_object: e77500090a35f7de01e24fd7f7d09f6a71fb4d6b + src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java: + id: 9387d087de0d + last_write_checksum: sha1:b4e24bd9d4ded06be1be5b9835fea733734449ce + pristine_git_object: 9094480fcb8300b0fae7395c8e22ab199d61b744 + src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java: + id: 551fa00394ab + last_write_checksum: sha1:3246b55b7755023b84699d187540cc3dd358317f + pristine_git_object: 79b835c689f80a32e3fbbf386b6509e09c048d69 + src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java: + id: dc94649273ff + last_write_checksum: sha1:7911f59da86c4029f0204fca8ce6a32a19b15e01 + pristine_git_object: d3d30f9044afe49db601af9c4788e8606d420099 src/main/java/com/clerk/backend_api/models/operations/GetSessionListRequest.java: id: acedfb00c1ef last_write_checksum: sha1:18d468b7636dc5823d7298cac48e6836452af6ea @@ -8612,6 +8796,10 @@ trackedFiles: id: b7a20b05bb7a last_write_checksum: sha1:b09df2c6197af3582645d0bdac9e6361ba64d3d3 pristine_git_object: 9be8e29a4ef75feed7e57d7d5193ac03833fe091 + src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java: + id: 02b0d82cea90 + last_write_checksum: sha1:1c63609825f3f8f84c322375ee020b58b1e12234 + pristine_git_object: 67bc2d3a64f2c3028ae5f7148ff3a468bcecc1ff src/main/java/com/clerk/backend_api/models/operations/IdentificationStatus.java: id: c219651f34ad last_write_checksum: sha1:7e9a37e72574f0b5cad7b4bb7ab77667702be3fc @@ -8650,8 +8838,8 @@ trackedFiles: pristine_git_object: 7e5b6883796565cc0f7f5587c02aca3e0b9c91f5 src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java: id: 766b0fa94730 - last_write_checksum: sha1:141b04686d2bccee631bbeba64c045a0ec684a42 - pristine_git_object: 36a81d41c1a41fcd5c57be442f1b8858164c5e46 + last_write_checksum: sha1:e545221c6b2e5aa6298dd910ad028f38aba31021 + pristine_git_object: 513cf95fe1ad2105cc128526636df02f41bccda5 src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequestBuilder.java: id: 180c5b7afeeb last_write_checksum: sha1:f9b72627843174a747129977aad72865acce623e @@ -8786,8 +8974,8 @@ trackedFiles: pristine_git_object: 4d3d9166af5afe38945ff9f5b9e978a086d72da5 src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java: id: c1cc63148fe0 - last_write_checksum: sha1:2c4501e7da5464387de927e913a0fec89816d4e0 - pristine_git_object: 910052841771e621301fc1fc0f8cb49d774190cd + last_write_checksum: sha1:20a05448f884f4bd4da624f4ed0d5ab2fe592133 + pristine_git_object: 45a0e2538d99bc8716efec6f5fbb50538c3a6c20 src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequestBuilder.java: id: 0f60ed2139a3 last_write_checksum: sha1:86fa3300ea566596eaa2139223ffd16500a6ce39 @@ -8908,6 +9096,30 @@ trackedFiles: id: 417aa11436de last_write_checksum: sha1:dfa24b348da429cf7f1805f78fa03b9012c5b6c8 pristine_git_object: 4a05efb4b4fdd256937df6bb82a31dd5c9df639d + src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java: + id: 7701f3b70c14 + last_write_checksum: sha1:3566db536ef6a452a30b2b78e3e268d2f8ec5a4d + pristine_git_object: 388614ecf49a7ab47e734d3c8a63dbc6e40f0edd + src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java: + id: 1437f4fdbf86 + last_write_checksum: sha1:49e2331d6550d1c0c77dd218e934c2f88cdd3841 + pristine_git_object: b7bc05a87601cc2a948207a9dea5e7186bce38c2 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java: + id: 531ca5977822 + last_write_checksum: sha1:f014c21d955bc59e1c98aab8f011043dcdd639f0 + pristine_git_object: 7258b5fc6f380b4555b3b49dc6f3a2c02ad0d7a8 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java: + id: 3bba41ff6386 + last_write_checksum: sha1:341e09dff9326f2e2e962b9805f0372f05b92569 + pristine_git_object: 3a67ae55726e836d22f4a65ad1568efa7aca8f58 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java: + id: 4ef967041de8 + last_write_checksum: sha1:b68a11e8102c67b00cac53eef5d9aebb349d0ac6 + pristine_git_object: 74d10dac690de95621f10b106a5b9b789d7771c9 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java: + id: b76f98f5d86d + last_write_checksum: sha1:8ca139876dc8f703373c870afccc4caff3edf733 + pristine_git_object: 384f0ae9376e73b9cda88cf9906fd98168328a27 src/main/java/com/clerk/backend_api/models/operations/ListWaitlistEntriesQueryParamStatus.java: id: 9903976fe99a last_write_checksum: sha1:20b926592adf932393c8abd813b406302ddf6757 @@ -8940,6 +9152,10 @@ trackedFiles: id: 5492e1984a32 last_write_checksum: sha1:6e4c80f86150c688908bc93d895ac277a13b3982 pristine_git_object: 646ac10c74bc0a631fcfbe1e1c8315d853b48435 + src/main/java/com/clerk/backend_api/models/operations/Mappings.java: + id: f05cd53a36b7 + last_write_checksum: sha1:bef3398f3b45fd1867d564a9bd5763bccb1b9013 + pristine_git_object: f58d9b9730717f1f79b0a4e6cc00c1567d9c0a5e src/main/java/com/clerk/backend_api/models/operations/MergeOrganizationMetadataRequest.java: id: 137e3a07daac last_write_checksum: sha1:59471a399bcfe20e514f94681956fc54687e2841 @@ -9136,6 +9352,22 @@ trackedFiles: id: 00e2d44a953c last_write_checksum: sha1:1f5722be4ddbfb0f16ce2234833907089cdcd946 pristine_git_object: 06a62763a0677de94e07e97b8ede99191e04653e + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java: + id: 3175567f3286 + last_write_checksum: sha1:3a47f012439cd7dcbec5644524033a467485ded3 + pristine_git_object: 849532ade56d4b6d4505c635dfe9f7908651fe7e + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java: + id: d0c8716e51be + last_write_checksum: sha1:cfdaf5afcce137a50eb69c407947e22c3dbbb019 + pristine_git_object: 9c693b0c75cdb38f1f9e1966bd94d0ee44780171 + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java: + id: 26be8aae75ed + last_write_checksum: sha1:656e7171c05c8c61ed9f559954a1a81ddebe63c3 + pristine_git_object: b794d79ef198dcf0afae17fa18c0eff1785effe8 + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java: + id: 3127de11bdbd + last_write_checksum: sha1:bb09d9d37c3976fc7835aa1bc72cf09db440595b + pristine_git_object: bdc05654917d4cb768c87c6e1074fe1550b60b1d src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequest.java: id: d15ff37beb42 last_write_checksum: sha1:f3fa3b4dcd927d3a9c31dec45b6f17901e667953 @@ -9336,6 +9568,22 @@ trackedFiles: id: 68097cc003b9 last_write_checksum: sha1:c4d5984f3ab774a9cd0eb44ddcd5044a75b8f8aa pristine_git_object: 77f2ab228dab4237d60cb7fc2b4519b567a36046 + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java: + id: "933664561669" + last_write_checksum: sha1:4b2e11151dc940ebb44cf65fe60c35efec5a6050 + pristine_git_object: 26dafd5b83096ac5f7f15f45de056ca0a3a2d535 + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java: + id: 77d772087f70 + last_write_checksum: sha1:e4c43bf334d2ab6a529a22e0de75c121d0e062a6 + pristine_git_object: 8a0ebfa94c29e1e7ae089523c2065b686524c473 + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java: + id: e4692cdfdcab + last_write_checksum: sha1:d8190f9de97cef0433327931831647e9b81f4c2e + pristine_git_object: d7a25c470966bc9af7ae157cb9e8145f148627ab + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java: + id: 26db6b42e42f + last_write_checksum: sha1:8a4f7e62258f1498ce7e79ae67a3cfc2f7d490ef + pristine_git_object: 8d26d7eda1e1540cdd94ddb22c1c9fa6b6c7706f src/main/java/com/clerk/backend_api/models/operations/RevokeOrganizationInvitationRequest.java: id: 1c182b196d96 last_write_checksum: sha1:121c6b1f5078bba69862234475a760bb61732964 @@ -9404,6 +9652,18 @@ trackedFiles: id: a482243e59ef last_write_checksum: sha1:1b74124164e8b7a8b58a3092034e05491f929201 pristine_git_object: 22b038dda3f23bda3ecff657e61197699739c63e + src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java: + id: c1bd9d14a8c9 + last_write_checksum: sha1:1edd17b2d8b23d7f4c77c1421ea8ca04fd8bf27b + pristine_git_object: 981c7321bd0722a45c18f83fac6d00a97e217dde + src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java: + id: eb14c612eeec + last_write_checksum: sha1:697a46c3a021f202a325df55eb1e6f513270e84f + pristine_git_object: 591d70b8293d48c4023be1d6507469f2d36ef7f4 + src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java: + id: d9cd9b2dc506 + last_write_checksum: sha1:aecd910efe82e6ed6974cfa6fe7d963e9f1fdb56 + pristine_git_object: 0dc887ac50b2856abef40d37d5fdb104cdb4e6e4 src/main/java/com/clerk/backend_api/models/operations/Saml.java: id: c607aedffd6d last_write_checksum: sha1:c70c49a7a89e8c1320021bce183dd1f38326e43b @@ -9750,8 +10010,8 @@ trackedFiles: pristine_git_object: 0368ac7941a7e154a9f46e0cda505168f1afff98 src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java: id: 921916dfe6c7 - last_write_checksum: sha1:2d4f001f428b426b41193e866b1d756be50fd9be - pristine_git_object: 5b936d777eec2be77e2561d0c8726b7b5afb3989 + last_write_checksum: sha1:f7399edb182050aeacaa8d704567fc4096c58143 + pristine_git_object: abad25125e65acda25fa741204906b0bdc8da024 src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBuilder.java: id: c9818dc72b60 last_write_checksum: sha1:b4e984a81a443abbed8341295a43904aebe85e07 @@ -9904,6 +10164,22 @@ trackedFiles: id: 971f014abb9a last_write_checksum: sha1:11e04eb76315d54df5d79bd38a913d689996c0bc pristine_git_object: b0d85f7b59a812215172017c9a07ea3f0f8e6d56 + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java: + id: 2fecdea53c05 + last_write_checksum: sha1:3d874bb278a7967b4f57303dc682764eee4ad026 + pristine_git_object: a044062bf3d5f893fa22ae1e47157fd204d28e7b + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java: + id: 008e0cc8f703 + last_write_checksum: sha1:4a1e7f413f61b830b21ed55a14d7ced8ba3914d0 + pristine_git_object: 431e3243aec1188301ea84c3ec47e6b17cf11512 + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java: + id: 56e009d2d255 + last_write_checksum: sha1:9a061b18e8e449c7780a44a1317065ecbf28b3f2 + pristine_git_object: e40c6b6eae8317a3d4afc04533affe6f57b8057b + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java: + id: 38815e34be5d + last_write_checksum: sha1:1fe9fc4dc5a2704a1f8b96037df55747a2d0ca72 + pristine_git_object: 34fe6ab599d6696b16486574c25097bed5a975d8 src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequest.java: id: 9f014705982e last_write_checksum: sha1:e156058e8b0f098c6ea30ad3f8d6e349634b0d37 @@ -10380,6 +10656,14 @@ trackedFiles: id: 4edb673c888a last_write_checksum: sha1:beb5c82a48a32e3d5c5b1b9deb2352dc65c6276a pristine_git_object: 1bab7eee553ad914096c00a83eeb7751d385cb1f + src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java: + id: e8806044427d + last_write_checksum: sha1:f82518434073c4f2ab9234e0635314a12bf131de + pristine_git_object: 1e230c10ef0ae08b14d2b0cd028a23f300359310 + src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java: + id: 181ddc32d5ae + last_write_checksum: sha1:1c862f2c561e201f98df6985d9f1f74d94fd0d29 + pristine_git_object: 6e851b42a0b92d1e41cb0f81f1f313053e5380eb src/main/java/com/clerk/backend_api/operations/CreateSession.java: id: f4ad9d6266da last_write_checksum: sha1:8009aa44276bc0ffa5919e5665f1140d9c8e214d @@ -10466,8 +10750,8 @@ trackedFiles: pristine_git_object: cc73303b84aae5603c85b22845b7fd9eb54d1c1d src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java: id: cb005feb55bd - last_write_checksum: sha1:fe69a88efe0336b7f7e5ebfb000cf3f5cbbff682 - pristine_git_object: d6a129634a0046f0a5e1bc43f3fc7c512b6a75fa + last_write_checksum: sha1:0835d6e9db4bfc1de9ac7d207bfa5d45ed2946fa + pristine_git_object: 0417b0a3d8d3fb75f90e6e296450a2a51f2a3fb3 src/main/java/com/clerk/backend_api/operations/DeleteOrganizationLogo.java: id: 2f32d2392f43 last_write_checksum: sha1:18fb2396d6ca8527054f3fa3398f70302d41d8c9 @@ -10496,6 +10780,14 @@ trackedFiles: id: 479eec9a300a last_write_checksum: sha1:a2f167433a034006ead71f8ed1522b1eb11e9669 pristine_git_object: 5e88829ba0362da5adb013e44e278c88894d60a3 + src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java: + id: 48f23e186924 + last_write_checksum: sha1:0ad6735cad2a2ca23c77e5536808c650e4ca6500 + pristine_git_object: a22ad6932aec8ba00ee20180af0a0f0e39ab4fb3 + src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java: + id: 4abfe5f1e49e + last_write_checksum: sha1:d080762920f5cfa181be93c12eb7c028a1e47c1a + pristine_git_object: b50358a905878169e24a170cf76194bea2e02eef src/main/java/com/clerk/backend_api/operations/DeleteSvixApp.java: id: 39e1094f42e3 last_write_checksum: sha1:a068d3dfbc5c3421c56a174b532718c0b205981f @@ -10522,8 +10814,8 @@ trackedFiles: pristine_git_object: 9db0b2d5909e5492080f4d980fa8a20704cb0515 src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java: id: 8a22492c67db - last_write_checksum: sha1:0918b0b10f2cc29fa0cf057e5da58da07b31e985 - pristine_git_object: 947776c61f8d3ecc0332c9d30b73e8f70e385350 + last_write_checksum: sha1:cceb3efff4be8e8828274d7314af63078ff17aaa + pristine_git_object: 8a88c4c874d94aa310f24e17e087ddeea182c23b src/main/java/com/clerk/backend_api/operations/GenerateSvixAuthURL.java: id: 606af8560231 last_write_checksum: sha1:a8192ce7808a56cac1da00bd0e6ac46c31b88505 @@ -10672,6 +10964,10 @@ trackedFiles: id: e8313f92d7be last_write_checksum: sha1:bf14568cee6b60b4bae7b33aacdedbe97222a45a pristine_git_object: 254e1f646f7d4588851088adbfa439c4101c6352 + src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java: + id: 70298e0fea8b + last_write_checksum: sha1:393df047e2b9cb25606365750ac0d00d1dfd1bdb + pristine_git_object: 1c333f42a0f7697a343fa9d0547421648b99a804 src/main/java/com/clerk/backend_api/operations/GetSession.java: id: 6e6a44effefb last_write_checksum: sha1:932e3ba2c91f1e341aad1ab9987d33a2550933a7 @@ -10804,6 +11100,14 @@ trackedFiles: id: 91cf652e2cce last_write_checksum: sha1:0bb949a4de68c98a2dd1d00b90b151ba1dafe2f5 pristine_git_object: a5b6e8b33ca9618f9d3a951a0426a5e088294365 + src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java: + id: 1df3efe156a3 + last_write_checksum: sha1:cb6a11123e2673d965eab032d1214eb32583b0d3 + pristine_git_object: 3d59fa4655e5c13b309c25d9b55dce4bebd81ecc + src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java: + id: 45402baebe43 + last_write_checksum: sha1:7e674714c3116f4c354297e52fefad6198378beb + pristine_git_object: 9006db3c28c07ba7002f0ce0e1aa9f450521d648 src/main/java/com/clerk/backend_api/operations/ListWaitlistEntries.java: id: a7c7ab1432a0 last_write_checksum: sha1:e27f7f93941224f3e22c6af70f85557a1be16d6e @@ -10856,6 +11160,10 @@ trackedFiles: id: 4685d3d93913 last_write_checksum: sha1:577250c9adace1d94a74d33c78833bf18e06f762 pristine_git_object: a83ee7da1eae47c4dba174f374e402f65308101a + src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java: + id: 3d330cd270be + last_write_checksum: sha1:f498c02977b92e95027d2374ac65c25955e15c13 + pristine_git_object: 1222e2edc87da6ce1d9259e60cb17edd6a354639 src/main/java/com/clerk/backend_api/operations/ReplaceUserEmailAddress.java: id: 21f44ab1e3c7 last_write_checksum: sha1:4eded30429b55626ac5da0aca8aad3a02b957d0b @@ -10896,6 +11204,10 @@ trackedFiles: id: "065062335344" last_write_checksum: sha1:b8288521546da8bf7e7313fad483564d7d1cfe2f pristine_git_object: 72fb6d1a0cb0ba6a422643ece882688bcf5b86ac + src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java: + id: 8e2e2e2c23ff + last_write_checksum: sha1:53fe1026ff1656e8899743a481d61cec78143177 + pristine_git_object: 2b815f1f8669a34de5a815ca3fe58316541b42a7 src/main/java/com/clerk/backend_api/operations/RevokeOrganizationInvitation.java: id: e2460f45e3a7 last_write_checksum: sha1:d5536ebad6f4a357f4a30c63224eaff36ac4de5d @@ -10916,6 +11228,10 @@ trackedFiles: id: a47ec79458f3 last_write_checksum: sha1:139cafae157f73effecf43600b53e0c0bce1e1cf pristine_git_object: 72edc264e6c354f0c6cc34d2f90909c3d4e3e146 + src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java: + id: 7fcf6e174293 + last_write_checksum: sha1:614e56e6684a2ac8d00f8f02eefca75643fe4af6 + pristine_git_object: de6e06b2b1af562f3bec313c881f1d1872699779 src/main/java/com/clerk/backend_api/operations/SetUserPasswordCompromised.java: id: ee1a563f1165 last_write_checksum: sha1:3cb8683c956a534d0a1b2165bfd881e97cd6ecb1 @@ -11002,8 +11318,8 @@ trackedFiles: pristine_git_object: 96690699d482867f0764395dcb02631efb7072cf src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java: id: 530678453bb2 - last_write_checksum: sha1:35b5fdd3fd0afcbead65684d954f83d784edd19d - pristine_git_object: edc5e36ebdf6b2eab0c2e1f3c1bff3560fb3f4a6 + last_write_checksum: sha1:33f8134072aa6d955025e4e0fbb6eb533536885e + pristine_git_object: 787385b585106a51c49af578d2099d782f69d20b src/main/java/com/clerk/backend_api/operations/UpdateOrganizationMembership.java: id: 595486627b78 last_write_checksum: sha1:974e78fac5b4d6e0546480489f1ee2b17b9065b9 @@ -11036,6 +11352,10 @@ trackedFiles: id: 1f0aa6f8f36e last_write_checksum: sha1:40e231380667d3e63066366197ef202b218a703f pristine_git_object: 136c4d630c5b7049e513fca02390ad4341cf5017 + src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java: + id: 498185ea2a74 + last_write_checksum: sha1:bced5ffa4d6d1c2be74ca1acc2d13225218ab2ee + pristine_git_object: 9f938e9d470b39844238733aae8d650ec546315c src/main/java/com/clerk/backend_api/operations/UpdateSignUp.java: id: 991f1428a4c4 last_write_checksum: sha1:fd272bd8284f5159e5e868b188495ebb9f62fae3 @@ -11286,8 +11606,8 @@ trackedFiles: pristine_git_object: 85b490f98af5019ac690e99666299603b5d5a162 src/main/java/com/clerk/backend_api/utils/Retries.java: id: c9baeabc6035 - last_write_checksum: sha1:b5199a84cbb6bbe0efa0b6d785df3385c092997b - pristine_git_object: 8a74b2e24a53e901136410e5c919a606d9665c08 + last_write_checksum: sha1:148e6046dfe36350a137f82498605691503c68bd + pristine_git_object: 6f35e37b68c2ea67184b3d5626b16aef420402fb src/main/java/com/clerk/backend_api/utils/RetryConfig.java: id: 2f5de881247e last_write_checksum: sha1:4aa076595bfb458d033b673310724c771351a51d @@ -11322,8 +11642,8 @@ trackedFiles: pristine_git_object: 73ee16946f04977271657d3c494b54bb231ad07f src/main/java/com/clerk/backend_api/utils/StreamingParser.java: id: fa9472e645a6 - last_write_checksum: sha1:46888f1ddf691cce9adb2bbc409d38459f6bb155 - pristine_git_object: 6ee37f5c618627b995fe569bf17cfc169463ff8d + last_write_checksum: sha1:b789cf36243517a2215775f4a8ed2487d949ff50 + pristine_git_object: a941e3c401607e20b9a09f27f161ed3f19813e8e src/main/java/com/clerk/backend_api/utils/TypedObject.java: id: 70226547eb53 last_write_checksum: sha1:07d31379490553698ae8bd99d2bd7e1fc86f19e2 @@ -12629,7 +12949,7 @@ examples: speakeasy-default-create-SAML-connection: responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domains": ["", ""], "idp_entity_id": "", "idp_sso_url": "https://sleepy-onset.com", "idp_certificate": "", "acs_url": "https://electric-department.net/", "sp_entity_id": "", "sp_metadata_url": "https://ambitious-handover.name", "active": false, "provider": "", "user_count": 392413, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": false, "disable_additional_identifications": true, "allow_organization_account_linking": false, "force_authn": false, "created_at": 660655, "updated_at": 853312} + application/json: {"object": "saml_connection", "id": "", "name": "", "domains": ["", ""], "idp_entity_id": "", "idp_sso_url": "https://sleepy-onset.com", "idp_certificate": "", "idp_certificate_issued_at": 316399, "idp_certificate_expires_at": 117921, "acs_url": "https://electric-department.net/", "sp_entity_id": "", "sp_metadata_url": "https://ambitious-handover.name", "active": false, "provider": "", "user_count": 392413, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": false, "disable_additional_identifications": true, "allow_organization_account_linking": false, "force_authn": false, "created_at": 660655, "updated_at": 853312} "402": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} GetSAMLConnection: @@ -12639,7 +12959,7 @@ examples: saml_connection_id: "" responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "blushing-hawk.biz", "idp_entity_id": "", "idp_sso_url": "https://dazzling-numeric.biz/", "idp_certificate": "", "acs_url": "https://hollow-harp.name/", "sp_entity_id": "", "sp_metadata_url": "https://unconscious-pine.net/", "active": false, "provider": "", "user_count": 583235, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": true, "disable_additional_identifications": true, "allow_organization_account_linking": true, "force_authn": true, "created_at": 223312, "updated_at": 905550} + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "blushing-hawk.biz", "idp_entity_id": "", "idp_sso_url": "https://dazzling-numeric.biz/", "idp_certificate": "", "idp_certificate_issued_at": 220400, "idp_certificate_expires_at": 301496, "acs_url": "https://hollow-harp.name/", "sp_entity_id": "", "sp_metadata_url": "https://unconscious-pine.net/", "active": false, "provider": "", "user_count": 583235, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": true, "disable_additional_identifications": true, "allow_organization_account_linking": true, "force_authn": true, "created_at": 223312, "updated_at": 905550} "402": application/json: {"errors": []} UpdateSAMLConnection: @@ -12651,7 +12971,7 @@ examples: application/json: {} responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "inborn-turret.net", "idp_entity_id": "", "idp_sso_url": "https://breakable-tuxedo.com/", "idp_certificate": "", "acs_url": "https://informal-hydrolyze.biz/", "sp_entity_id": "", "sp_metadata_url": "https://peaceful-electronics.com/", "active": true, "provider": "", "user_count": 981924, "sync_user_attributes": true, "allow_subdomains": false, "allow_idp_initiated": false, "disable_additional_identifications": false, "allow_organization_account_linking": false, "force_authn": true, "created_at": 423360, "updated_at": 825888} + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "inborn-turret.net", "idp_entity_id": "", "idp_sso_url": "https://breakable-tuxedo.com/", "idp_certificate": "", "idp_certificate_issued_at": 760462, "idp_certificate_expires_at": 468954, "acs_url": "https://informal-hydrolyze.biz/", "sp_entity_id": "", "sp_metadata_url": "https://peaceful-electronics.com/", "active": true, "provider": "", "user_count": 981924, "sync_user_attributes": true, "allow_subdomains": false, "allow_idp_initiated": false, "disable_additional_identifications": false, "allow_organization_account_linking": false, "force_authn": true, "created_at": 423360, "updated_at": 825888} "402": application/json: {"errors": []} DeleteSAMLConnection: @@ -13462,7 +13782,7 @@ examples: application/json: {"amount": 562473, "action": "decrease", "idempotency_key": ""} responses: "200": - application/json: {"object": "", "id": "", "payer_id": "", "amount": 372899, "currency": "Djibouti Franc", "source_type": "", "source_id": "", "created_at": "2024-03-26T21:01:22.622Z"} + application/json: {"object": "", "id": "", "payer_id": "", "amount": {"amount": 562473, "amount_formatted": "", "currency": "Lilangeni", "currency_symbol": "₪"}, "source_type": "", "source_id": "", "created_at": "2024-03-26T21:01:22.622Z"} "400": application/json: {"errors": []} "500": @@ -13500,7 +13820,7 @@ examples: application/json: {"amount": 245081, "action": "increase", "idempotency_key": ""} responses: "200": - application/json: {"object": "", "id": "", "payer_id": "", "amount": 741420, "currency": "Hong Kong Dollar", "source_type": "", "source_id": "", "created_at": "2024-06-02T01:47:07.493Z"} + application/json: {"object": "", "id": "", "payer_id": "", "amount": {"amount": 245081, "amount_formatted": "", "currency": "Pound Sterling", "currency_symbol": "₨"}, "source_type": "", "source_id": "", "created_at": "2024-06-02T01:47:07.493Z"} "400": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} "500": @@ -13766,9 +14086,122 @@ examples: application/json: {"errors": [{"message": "some details about the error", "long_message": "some details about the error", "code": "some_error_code"}]} "404": application/json: {"errors": []} + RevokeOAuthApplicationToken: + speakeasy-default-revoke-O-auth-application-token: + parameters: + path: + oauth_application_id: "" + requestBody: + application/json: {"token": ""} + responses: + "400": + application/json: {"errors": []} + ListSCIMDirectories: + speakeasy-default-list-SCIM-directories: + parameters: + query: + limit: 10 + offset: 0 + responses: + "200": + application/json: {"data": [], "total_count": 918911} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + CreateSCIMDirectory: + speakeasy-default-create-SCIM-directory: + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://impressive-edge.com", "provider": "", "enabled": true, "group_role_mapping_enabled": false, "attribute_mapping": {"key": "", "key1": "", "key2": ""}, "created_at": 544088, "updated_at": 199872} + "400": + application/json: {"errors": []} + GetSCIMDirectory: + speakeasy-default-get-SCIM-directory: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://soft-bid.net/", "provider": "", "enabled": false, "group_role_mapping_enabled": true, "attribute_mapping": {"key": "", "key1": "", "key2": ""}, "created_at": 576030, "updated_at": 886523} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + UpdateSCIMDirectory: + speakeasy-default-update-SCIM-directory: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://that-cornet.info", "provider": "", "enabled": false, "group_role_mapping_enabled": true, "attribute_mapping": {}, "created_at": 347329, "updated_at": 547962} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteSCIMDirectory: + speakeasy-default-delete-SCIM-directory: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "401": + application/json: {"errors": []} + RotateSCIMDirectoryAPIKey: + speakeasy-default-rotate-SCIM-directory-API-key: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://deep-palate.name", "provider": "", "enabled": false, "group_role_mapping_enabled": true, "attribute_mapping": {"key": "", "key1": "", "key2": ""}, "created_at": 802215, "updated_at": 738998} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + ListSCIMGroupRoleMappings: + speakeasy-default-list-SCIM-group-role-mappings: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"data": [{"object": "scim_group_role_mapping", "id": "", "scim_directory_id": "", "scim_group_id": "", "scim_group_display_name": "", "precedence": 444367, "created_at": 84318, "updated_at": 370083}], "total_count": 326127} + "401": + application/json: {"errors": []} + CreateSCIMGroupRoleMapping: + speakeasy-default-create-SCIM-group-role-mapping: + parameters: + path: + scim_directory_id: "" + requestBody: + application/json: {"scim_group_id": "", "role_id": ""} + responses: + "200": + application/json: {"object": "scim_group_role_mapping", "id": "", "scim_directory_id": "", "scim_group_id": "", "scim_group_display_name": "", "precedence": 722732, "created_at": 186067, "updated_at": 806389} + "400": + application/json: {"errors": []} + ReplaceSCIMGroupRoleMappings: + speakeasy-default-replace-SCIM-group-role-mappings: + parameters: + path: + scim_directory_id: "" + requestBody: + application/json: {"mappings": []} + responses: + "200": + application/json: {"data": [], "total_count": 158568} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteSCIMGroupRoleMapping: + speakeasy-default-delete-SCIM-group-role-mapping: + parameters: + path: + scim_directory_id: "" + mapping_id: "" + responses: + "200": + application/json: {"object": "scim_group_role_mapping", "id": "", "deleted": true} + "400": + application/json: {"errors": []} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Java SDK Changes:\n* `clerk.organizationDomains.listAll()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `clerk.users.create()`: \n * `request` **Changed**\n * `response` **Changed** (Breaking ⚠️)\n * `error.status[402]` **Added**\n* `clerk.users.setProfileImage()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.update()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.list()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.create()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.organizations.update()`: `requestBody` **Changed** (Breaking ⚠️)\n* `clerk.users.unsetPasswordCompromised()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.unlock()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.updateMetadata()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteProfileImage()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.setPasswordCompromised()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.lock()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkUnban()`: `response.[]` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkBan()`: `response.[]` **Changed** (Breaking ⚠️)\n* `clerk.users.unban()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.create()`: `response.verification` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.get()`: `response.verification` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.update()`: `response.verification` **Changed** (Breaking ⚠️)\n* `clerk.users.ban()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.update()`: \n * `requestBody` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `clerk.users.get()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.list()`: `response.[]` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.attemptVerification()`: **Added**\n* `clerk.phoneNumbers.replaceForUser()`: **Added**\n* `clerk.phoneNumbers.get()`: `response.verification.union(verification_otp).channel` **Added**\n* `clerk.phoneNumbers.create()`: `response.verification.union(verification_otp).channel` **Added**\n* `clerk.adminPortalLinkTokens.revokeAdminPortalLinkToken()`: **Added**\n* `clerk.adminPortalLinkTokens.createAdminPortalLinkToken()`: **Added**\n* `clerk.enterpriseConnections.createTestRun()`: **Added**\n* `clerk.enterpriseConnections.listTestRuns()`: **Added**\n* `clerk.organizationDomains.verifyOwnership()`: **Added**\n* `clerk.billing.listSubscriptionItems()`: `response.data[]` **Changed**\n* `clerk.organizations.replaceMetadata()`: **Added**\n* `clerk.instanceSettings.getOrganizationSettings()`: **Added**\n* `clerk.users.getBillingSubscription()`: `response` **Changed**\n* `clerk.instanceSettings.updateCommunication()`: **Added**\n* `clerk.instanceSettings.getCommunication()`: **Added**\n* `clerk.instanceSettings.update()`: \n * `request.preferredSignInStrategyWhenPasswordRequired` **Added**\n* `clerk.instanceSettings.updateOrganizationSettings()`: `error.status[403]` **Added**\n* `clerk.users.replaceMetadata()`: **Added**\n* `clerk.organizations.getBillingSubscription()`: `response` **Changed**\n* `clerk.phoneNumbers.update()`: `response.verification.union(verification_otp).channel` **Added**\n* `clerk.phoneNumbers.attemptVerification()`: **Added**\n* `clerk.phoneNumbers.prepareVerification()`: **Added**\n* `clerk.emailAddresses.prepareVerification()`: **Added**\n* `clerk.samlConnections.create()`: `error.status[409]` **Added**\n* `clerk.samlConnections.update()`: `error.status[409]` **Added**\n* `clerk.enterpriseConnections.list()`: `response.data[]` **Changed**\n* `clerk.enterpriseConnections.create()`: \n * `request.customAttributes[].multiValued` **Added**\n * `response` **Changed**\n * `error.status[409]` **Added**\n* `clerk.enterpriseConnections.get()`: `response` **Changed**\n* `clerk.enterpriseConnections.update()`: \n * `requestBody.customAttributes[].multiValued` **Added**\n * `response` **Changed**\n* `clerk.billing.listPrices()`: `response.data[].supportedBillingPeriods` **Added**\n* `clerk.billing.createPrice()`: \n * `request.supportedBillingPeriods` **Added**\n * `response.supportedBillingPeriods` **Added**\n* `clerk.emailAddresses.replaceForUser()`: **Added**\n* `clerk.billing.cancelSubscriptionItem()`: `response` **Changed**\n* `clerk.billing.extendSubscriptionItemFreeTrial()`: `response` **Changed**\n* `clerk.billing.createPriceTransition()`: `response` **Changed**\n* `clerk.billing.listStatements()`: `response.data[].groups[].items[].totals.discounts` **Added**\n* `clerk.billing.getStatement()`: `response.groups[].items[].totals.discounts` **Added**\n* `clerk.billing.getStatementPaymentAttempts()`: `response.data[].totals.discounts` **Added**\n* `clerk.m2m.createToken()`: \n * `request.minRemainingTtlSeconds` **Added**\n" +releaseNotes: "## Java SDK Changes:\n* `clerk.webhooks.generateSvixAuthUrl()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.clients.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.create()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.get()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.replaceRole()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.addRoles()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.replace()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.update()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.prepareVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.attemptVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.replaceForUser()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.prepareVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.attemptVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.replaceForUser()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.refresh()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.createToken()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.createTokenFromTemplate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.revert()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.toggleTemplateDelivery()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAndSmsTemplates.upsert()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.templates.preview()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.list()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.create()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.count()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.get()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.update()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.ban()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.unban()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkBan()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkUnban()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.lock()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.unlock()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.setProfileImage()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteProfileImage()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.updateMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.replaceMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getBillingSubscription()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getBillingCreditBalance()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.adjustBillingCreditBalance()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getOAuthAccessToken()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getOrganizationMemberships()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getOrganizationInvitations()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.verifyPassword()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.verifyTotp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.disableMfa()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteBackupCodes()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deletePasskey()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteWeb3Wallet()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteTotp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteExternalAccount()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.setPasswordCompromised()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.unsetPasswordCompromised()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getInstanceOrganizationMemberships()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.invitations.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.invitations.bulkCreate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.invitations.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.getAll()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.bulkCreate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.listPending()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.allowlistIdentifiers.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.clients.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.allowlistIdentifiers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.blocklistIdentifiers.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.blocklistIdentifiers.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.blocklistIdentifiers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.betaFeatures.updateInstanceSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.betaFeatures.updateProductionInstanceDomain()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.actorTokens.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.actorTokens.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.domains.add()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.domains.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.domains.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateRestrictions()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateCommunication()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateOAuthApplicationSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.changeDomain()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.getOrganizationSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateOrganizationSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateInstanceProtect()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.webhooks.createSvixApp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.webhooks.deleteSvixApp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.allowlistIdentifiers.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.clients.verify()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.cancelSubscriptionItem()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.getSecretKey()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.rotateSecretKey()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.createScope()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.deleteScope()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.mergeMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.replaceMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.uploadLogo()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.deleteLogo()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.getBillingSubscription()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.getBillingCreditBalance()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.adjustBillingCreditBalance()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.assignPermission()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.removePermission()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.updateMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.create()`: \n * `response.enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.list()`: \n * `response.data[].enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.update()`: \n * `response.enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.verifyOwnership()`: \n * `response.enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.listAll()`: \n * `request.enrollmentMode` **Changed**\n * `response.data[].enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.proxyChecks.verify()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.redirectUrls.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.redirectUrls.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.redirectUrls.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signInTokens.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signInTokens.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signUps.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signUps.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.uploadLogo()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.rotateSecret()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.list()`: \n * `response.data[]` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.create()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.get()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.update()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.listTestRuns()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.createTestRun()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.agentTasks.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.agentTasks.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.bulkCreate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.invite()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.reject()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listPlans()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listPrices()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.createPrice()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listSubscriptionItems()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.extendSubscriptionItemFreeTrial()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.createPriceTransition()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listStatements()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.getStatement()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.getStatementPaymentAttempts()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.scimDirectories.delete()`: **Added**\n* `clerk.scimDirectories.update()`: **Added**\n* `clerk.scimDirectories.get()`: **Added**\n* `clerk.scimDirectories.create()`: **Added**\n* `clerk.scimDirectories.list()`: **Added**\n* `clerk.oauthApplications.revokeToken()`: **Added**\n* `clerk.scimDirectories.rotateApiKey()`: **Added**\n* `clerk.scimDirectories.listGroupRoleMappings()`: **Added**\n* `clerk.scimDirectories.createGroupRoleMapping()`: **Added**\n* `clerk.scimDirectories.replaceGroupRoleMappings()`: **Added**\n* `clerk.scimDirectories.deleteGroupRoleMapping()`: **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7d33f2ca..91bcdd06 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 5.0.0 + version: 5.0.1 additionalDependencies: [] additionalPlugins: [] artifactID: backend-api diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f8022539..d546d3f4 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.777.0 +speakeasyVersion: 1.789.0 sources: clerk-java-sdk: sourceNamespace: clerk-java-sdk - sourceRevisionDigest: sha256:d15346bde80f5abad95d77c66b96208b660c78544a4c4dca48b2068565d13717 - sourceBlobDigest: sha256:2ca2b3040b8261f61ac0c56c7fd9a942f7ad5ed5312eb73d44b7b9b648605b29 + sourceRevisionDigest: sha256:040ae88b85e3438dfe4b7ffb0b79b0410a94902a497bf50875cd865258ffe2d0 + sourceBlobDigest: sha256:6b5f500f4b2091f898969c9e04b5baa76c9d2f9299d5ade01e0573aa4a11645b tags: - latest - "2026-05-12" @@ -11,10 +11,10 @@ targets: clerk-java: source: clerk-java-sdk sourceNamespace: clerk-java-sdk - sourceRevisionDigest: sha256:d15346bde80f5abad95d77c66b96208b660c78544a4c4dca48b2068565d13717 - sourceBlobDigest: sha256:2ca2b3040b8261f61ac0c56c7fd9a942f7ad5ed5312eb73d44b7b9b648605b29 + sourceRevisionDigest: sha256:040ae88b85e3438dfe4b7ffb0b79b0410a94902a497bf50875cd865258ffe2d0 + sourceBlobDigest: sha256:6b5f500f4b2091f898969c9e04b5baa76c9d2f9299d5ade01e0573aa4a11645b codeSamplesNamespace: clerk-java-sdk-code-samples - codeSamplesRevisionDigest: sha256:32607a6473b6c49509d6ece1b9e94b3a87ac3637e18aa700d8b08c90997c9cd9 + codeSamplesRevisionDigest: sha256:1ea1b5667503cdfe56e13aff88af74823fe7f7aa54cd992b92aa19abe7791ce4 my-first-target: source: clerk-java-sdk sourceNamespace: clerk-java-sdk diff --git a/README.md b/README.md index 6228c631..9cbb2827 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.clerk:backend-api:5.0.0' +implementation 'com.clerk:backend-api:5.0.1' ``` Maven: @@ -61,7 +61,7 @@ Maven: com.clerk backend-api - 5.0.0 + 5.0.1 ``` @@ -381,6 +381,7 @@ public class MachineAuthentication { * [delete](docs/sdks/oauthapplications/README.md#delete) - Delete an OAuth application * [uploadLogo](docs/sdks/oauthapplications/README.md#uploadlogo) - Upload a logo for the OAuth application * [rotateSecret](docs/sdks/oauthapplications/README.md#rotatesecret) - Rotate the client secret of the given OAuth application +* [revokeToken](docs/sdks/oauthapplications/README.md#revoketoken) - Revoke an OAuth application token ### [OrganizationDomains](docs/sdks/organizationdomains/README.md) @@ -481,6 +482,19 @@ public class MachineAuthentication { * [~~update~~](docs/sdks/samlconnections/README.md#update) - Update a SAML Connection :warning: **Deprecated** * [~~delete~~](docs/sdks/samlconnections/README.md#delete) - Delete a SAML Connection :warning: **Deprecated** +### [ScimDirectories](docs/sdks/scimdirectories/README.md) + +* [list](docs/sdks/scimdirectories/README.md#list) - List all SCIM directories +* [create](docs/sdks/scimdirectories/README.md#create) - Create a SCIM directory +* [get](docs/sdks/scimdirectories/README.md#get) - Retrieve a SCIM directory +* [update](docs/sdks/scimdirectories/README.md#update) - Update a SCIM directory +* [delete](docs/sdks/scimdirectories/README.md#delete) - Delete a SCIM directory +* [rotateApiKey](docs/sdks/scimdirectories/README.md#rotateapikey) - Rotate a SCIM directory's API key +* [listGroupRoleMappings](docs/sdks/scimdirectories/README.md#listgrouprolemappings) - List SCIM group role mappings +* [createGroupRoleMapping](docs/sdks/scimdirectories/README.md#creategrouprolemapping) - Create a SCIM group role mapping +* [replaceGroupRoleMappings](docs/sdks/scimdirectories/README.md#replacegrouprolemappings) - Replace SCIM group role mappings +* [deleteGroupRoleMapping](docs/sdks/scimdirectories/README.md#deletegrouprolemapping) - Delete a SCIM group role mapping + ### [Sessions](docs/sdks/sessions/README.md) * [list](docs/sdks/sessions/README.md#list) - List all sessions @@ -663,12 +677,14 @@ Handling errors in this SDK should largely match your expectations. All operatio package hello.world; import com.clerk.backend_api.Clerk; -import com.clerk.backend_api.models.errors.*; +import com.clerk.backend_api.models.errors.ClerkError; +import com.clerk.backend_api.models.errors.ClerkErrors; import com.clerk.backend_api.models.operations.VerifyClientResponse; import java.io.UncheckedIOException; import java.lang.Exception; -import java.util.List; -import java.util.Optional; +import java.lang.Object; +import java.lang.String; +import java.util.*; public class Application { @@ -705,7 +721,7 @@ public class Application { // Check error data fields e.data().ifPresent(payload -> { List errors = payload.errors(); - Optional meta = payload.meta(); + Optional> meta = payload.meta(); }); } @@ -736,41 +752,41 @@ public class Application { many more subclasses in the JDK platform). **Inherit from [`ClerkError`](./src/main/java/models/errors/ClerkError.java)**: -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetApiKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeysResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetM2MTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 223 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetApiKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeysResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetM2MTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 234 methods.* +* [`com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 234 methods.* diff --git a/RELEASES.md b/RELEASES.md index 13bcc368..f5ccdce2 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -428,4 +428,14 @@ Based on: ### Generated - [java v5.0.0] . ### Releases -- [Maven Central v5.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/5.0.0 - . \ No newline at end of file +- [Maven Central v5.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/5.0.0 - . + +## 2026-07-09 00:29:27 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.789.0 (2.916.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v5.0.1] . +### Releases +- [Maven Central v5.0.1] https://central.sonatype.com/artifact/com.clerk/backend-api/5.0.1 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 935a9133..2a619016 100644 --- a/build.gradle +++ b/build.gradle @@ -74,10 +74,10 @@ javadocJar { } dependencies { - api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2' + api 'com.fasterxml.jackson.core:jackson-annotations:2.22' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.0' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.0' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.22.0' api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'commons-io:commons-io:2.18.0' implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0' diff --git a/docs/models/components/BillingPaymentAttemptTotals.md b/docs/models/components/BillingPaymentAttemptTotals.md index 4403221e..620623b2 100644 --- a/docs/models/components/BillingPaymentAttemptTotals.md +++ b/docs/models/components/BillingPaymentAttemptTotals.md @@ -11,6 +11,6 @@ Totals breakdown for this payment attempt. | `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [JsonNullable\](../../models/components/BillingPaymentAttemptCredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [JsonNullable\](../../models/components/BillingPaymentAttemptDiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/ClerkError.md b/docs/models/components/ClerkError.md index 1d4de3fe..287e0e33 100644 --- a/docs/models/components/ClerkError.md +++ b/docs/models/components/ClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md b/docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md deleted file mode 100644 index e12e48d2..00000000 --- a/docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorEnterpriseAccountMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md b/docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md deleted file mode 100644 index af28d7d0..00000000 --- a/docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorEnterpriseAccountVerificationMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md b/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md deleted file mode 100644 index 498e5975..00000000 --- a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorExternalAccountWithVerificationMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md b/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md deleted file mode 100644 index ef070e0d..00000000 --- a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorExternalAccountWithVerificationVerificationMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorMeta.md b/docs/models/components/ClerkErrorErrorMeta.md deleted file mode 100644 index e705a2f7..00000000 --- a/docs/models/components/ClerkErrorErrorMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorSAMLAccountMeta.md b/docs/models/components/ClerkErrorErrorSAMLAccountMeta.md deleted file mode 100644 index 2fed9d86..00000000 --- a/docs/models/components/ClerkErrorErrorSAMLAccountMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorSAMLAccountMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/CommerceCreditLedgerResponse.md b/docs/models/components/CommerceCreditLedgerResponse.md index 9d808794..eb0a2236 100644 --- a/docs/models/components/CommerceCreditLedgerResponse.md +++ b/docs/models/components/CommerceCreditLedgerResponse.md @@ -10,8 +10,7 @@ A credit ledger entry. | `object` | *String* | :heavy_check_mark: | String representing the object's type. Always "commerce_credit_ledger". | | `id` | *String* | :heavy_check_mark: | Unique identifier for the ledger entry. | | `payerId` | *String* | :heavy_check_mark: | The ID of the payer whose balance was adjusted. | -| `amount` | *long* | :heavy_check_mark: | The signed credit amount. Positive for increases, negative for decreases. | -| `currency` | *String* | :heavy_check_mark: | The currency code of the credit adjustment. | +| `amount` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `sourceType` | *String* | :heavy_check_mark: | The type of source that originated the adjustment (e.g. "grant"). | | `sourceId` | *String* | :heavy_check_mark: | The ID of the source that originated the adjustment. | | `note` | *JsonNullable\* | :heavy_minus_sign: | An optional note attached to the ledger entry. | diff --git a/docs/models/components/CommercePerUnitTotal2.md b/docs/models/components/CommercePerUnitTotal2.md new file mode 100644 index 00000000..1f11b89e --- /dev/null +++ b/docs/models/components/CommercePerUnitTotal2.md @@ -0,0 +1,10 @@ +# CommercePerUnitTotal2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `name` | *String* | :heavy_check_mark: | Name of the billable unit (for example, seats) | +| `blockSize` | *long* | :heavy_check_mark: | Number of units included in each pricing block | +| `tiers` | List\<[CommercePerUnitTotalTier2](../../models/components/CommercePerUnitTotalTier2.md)> | :heavy_check_mark: | Computed totals for each pricing tier | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePerUnitTotalTier.md b/docs/models/components/CommercePerUnitTotalTier2.md similarity index 97% rename from docs/models/components/SchemasCommercePerUnitTotalTier.md rename to docs/models/components/CommercePerUnitTotalTier2.md index d22814a8..d04e5d5f 100644 --- a/docs/models/components/SchemasCommercePerUnitTotalTier.md +++ b/docs/models/components/CommercePerUnitTotalTier2.md @@ -1,4 +1,4 @@ -# SchemasCommercePerUnitTotalTier +# CommercePerUnitTotalTier2 ## Fields diff --git a/docs/models/components/CommercePlan2.md b/docs/models/components/CommercePlan2.md new file mode 100644 index 00000000..d7149594 --- /dev/null +++ b/docs/models/components/CommercePlan2.md @@ -0,0 +1,36 @@ +# CommercePlan2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `object` | [CommercePlan2Object](../../models/components/CommercePlan2Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | +| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | +| `fee` | [Optional\](../../models/components/CommercePlan2Fee.md) | :heavy_check_mark: | N/A | +| `annualMonthlyFee` | [Optional\](../../models/components/CommercePlan2AnnualMonthlyFee.md) | :heavy_check_mark: | N/A | +| `annualFee` | [Optional\](../../models/components/CommercePlan2AnnualFee.md) | :heavy_check_mark: | N/A | +| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | +| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | +| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | +| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | +| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | +| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | +| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | +| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | +| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | +| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | +| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | +| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | +| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | +| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | +| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | +| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | +| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | +| `features` | List\<[FeatureResponse2](../../models/components/FeatureResponse2.md)> | :heavy_check_mark: | The features included in this plan. | +| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | +| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePlanFee.md b/docs/models/components/CommercePlan2AnnualFee.md similarity index 98% rename from docs/models/components/SchemasCommercePlanFee.md rename to docs/models/components/CommercePlan2AnnualFee.md index 9b61002c..7ae69305 100644 --- a/docs/models/components/SchemasCommercePlanFee.md +++ b/docs/models/components/CommercePlan2AnnualFee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanFee +# CommercePlan2AnnualFee ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemFee.md b/docs/models/components/CommercePlan2AnnualMonthlyFee.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemFee.md rename to docs/models/components/CommercePlan2AnnualMonthlyFee.md index 1361b4b8..d0582c36 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemFee.md +++ b/docs/models/components/CommercePlan2AnnualMonthlyFee.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemFee +# CommercePlan2AnnualMonthlyFee ## Fields diff --git a/docs/models/components/SchemasCommercePlanAnnualFee.md b/docs/models/components/CommercePlan2Fee.md similarity index 97% rename from docs/models/components/SchemasCommercePlanAnnualFee.md rename to docs/models/components/CommercePlan2Fee.md index 5639faa6..7490f660 100644 --- a/docs/models/components/SchemasCommercePlanAnnualFee.md +++ b/docs/models/components/CommercePlan2Fee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanAnnualFee +# CommercePlan2Fee ## Fields diff --git a/docs/models/components/SchemasCommercePlanObject.md b/docs/models/components/CommercePlan2Object.md similarity index 58% rename from docs/models/components/SchemasCommercePlanObject.md rename to docs/models/components/CommercePlan2Object.md index d1097c4c..3866700e 100644 --- a/docs/models/components/SchemasCommercePlanObject.md +++ b/docs/models/components/CommercePlan2Object.md @@ -1,13 +1,13 @@ -# SchemasCommercePlanObject +# CommercePlan2Object String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommercePlanObject; +import com.clerk.backend_api.models.components.CommercePlan2Object; -SchemasCommercePlanObject value = SchemasCommercePlanObject.COMMERCE_PLAN; +CommercePlan2Object value = CommercePlan2Object.COMMERCE_PLAN; ``` diff --git a/docs/models/components/CommercePriceTransitionDetails.md b/docs/models/components/CommercePriceTransitionDetails.md index ebb11beb..d941865a 100644 --- a/docs/models/components/CommercePriceTransitionDetails.md +++ b/docs/models/components/CommercePriceTransitionDetails.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `previousPlan` | [SchemasCommercePlan](../../models/components/SchemasCommercePlan.md) | :heavy_check_mark: | N/A | +| `previousPlan` | [CommercePlan2](../../models/components/CommercePlan2.md) | :heavy_check_mark: | N/A | | `previousPrice` | [BillingPriceResponse](../../models/components/BillingPriceResponse.md) | :heavy_check_mark: | N/A | | `effectiveAt` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) when the new price takes effect. | | `effectiveMode` | [EffectiveMode](../../models/components/EffectiveMode.md) | :heavy_check_mark: | When the new price takes effect. | diff --git a/docs/models/components/CommercePriceTransitionResponse.md b/docs/models/components/CommercePriceTransitionResponse.md index f4efc82f..98d28126 100644 --- a/docs/models/components/CommercePriceTransitionResponse.md +++ b/docs/models/components/CommercePriceTransitionResponse.md @@ -8,5 +8,5 @@ A commerce price transition. | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `object` | [CommercePriceTransitionResponseObject](../../models/components/CommercePriceTransitionResponseObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `subscriptionItem` | [SchemasCommerceSubscriptionItem](../../models/components/SchemasCommerceSubscriptionItem.md) | :heavy_check_mark: | N/A | +| `subscriptionItem` | [CommerceSubscriptionItem2](../../models/components/CommerceSubscriptionItem2.md) | :heavy_check_mark: | N/A | | `transition` | [CommercePriceTransitionDetails](../../models/components/CommercePriceTransitionDetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2.md b/docs/models/components/CommerceSubscriptionItem2.md new file mode 100644 index 00000000..d70f8690 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2.md @@ -0,0 +1,35 @@ +# CommerceSubscriptionItem2 + +A commerce subscription item. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2Object](../../models/components/CommerceSubscriptionItem2Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the subscription item. | +| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | +| `status` | [CommerceSubscriptionItem2Status](../../models/components/CommerceSubscriptionItem2Status.md) | :heavy_check_mark: | Current status of the subscription item. | +| `credit` | [JsonNullable\](../../models/components/Credit.md) | :heavy_minus_sign: | Credit information (only available in PaymentAttempt events). | +| `planId` | *String* | :heavy_check_mark: | Unique identifier for the associated plan. | +| `priceId` | *Optional\* | :heavy_minus_sign: | Unique identifier for the associated price | +| `plan` | [Optional\](../../models/components/CommerceSubscriptionItem2Plan.md) | :heavy_check_mark: | The associated commerce plan. | +| `planPeriod` | [CommerceSubscriptionItem2PlanPeriod](../../models/components/CommerceSubscriptionItem2PlanPeriod.md) | :heavy_check_mark: | The billing period for this subscription. | +| `paymentSourceId` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | +| `paymentSource` | [JsonNullable\](../../models/components/PaymentSource.md) | :heavy_minus_sign: | The payment source associated with this subscription. | +| `lifetimePaid` | [JsonNullable\](../../models/components/LifetimePaid.md) | :heavy_minus_sign: | Total amount paid over the lifetime of this subscription. | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Amount.md) | :heavy_minus_sign: | Current amount for this subscription. | +| `nextInvoice` | [JsonNullable\](../../models/components/NextInvoice.md) | :heavy_minus_sign: | Information about the next invoice. | +| `nextPayment` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPayment.md) | :heavy_minus_sign: | Information about the next payment. | +| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | +| `payer` | [JsonNullable\](../../models/components/Payer.md) | :heavy_minus_sign: | The payer associated with this subscription. | +| `isFreeTrial` | *boolean* | :heavy_check_mark: | Whether this subscription is currently on a free trial. | +| `periodStart` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period started. | +| `periodEnd` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period ends. | +| `prorationDate` | *String* | :heavy_check_mark: | Date used for proration calculations. | +| `canceledAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription was canceled. | +| `pastDueAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription became past due. | +| `endedAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription ended. | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was last updated. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemAmount.md b/docs/models/components/CommerceSubscriptionItem2Amount.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemAmount.md rename to docs/models/components/CommerceSubscriptionItem2Amount.md index 36b82117..1028b927 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2Amount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemAmount +# CommerceSubscriptionItem2Amount Current amount for this subscription. diff --git a/docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md b/docs/models/components/CommerceSubscriptionItem2AnnualFee.md similarity index 97% rename from docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md rename to docs/models/components/CommerceSubscriptionItem2AnnualFee.md index 1529a0bf..7d3d6a23 100644 --- a/docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md +++ b/docs/models/components/CommerceSubscriptionItem2AnnualFee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanAnnualMonthlyFee +# CommerceSubscriptionItem2AnnualFee ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md b/docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md rename to docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md index bbe998bf..c135c4ab 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md +++ b/docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemAnnualFee +# CommerceSubscriptionItem2AnnualMonthlyFee ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md b/docs/models/components/CommerceSubscriptionItem2CreditAmount.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md rename to docs/models/components/CommerceSubscriptionItem2CreditAmount.md index 636d3916..38a0e3b2 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2CreditAmount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemCreditAmount +# CommerceSubscriptionItem2CreditAmount Credit amount. diff --git a/docs/models/components/CommerceSubscriptionItem2Credits.md b/docs/models/components/CommerceSubscriptionItem2Credits.md new file mode 100644 index 00000000..ac8b9789 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Credits.md @@ -0,0 +1,10 @@ +# CommerceSubscriptionItem2Credits + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2Proration.md) | :heavy_check_mark: | N/A | +| `payer` | [Optional\](../../models/components/CommerceSubscriptionItem2Payer.md) | :heavy_check_mark: | N/A | +| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2Discounts.md b/docs/models/components/CommerceSubscriptionItem2Discounts.md new file mode 100644 index 00000000..e7f9b3d8 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Discounts.md @@ -0,0 +1,9 @@ +# CommerceSubscriptionItem2Discounts + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2NextInvoiceProration.md) | :heavy_check_mark: | N/A | +| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2Fee.md b/docs/models/components/CommerceSubscriptionItem2Fee.md new file mode 100644 index 00000000..13b3d125 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Fee.md @@ -0,0 +1,11 @@ +# CommerceSubscriptionItem2Fee + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `amount` | *long* | :heavy_check_mark: | The amount in cents. | +| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md b/docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md rename to docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md index b92414ea..7d7415d4 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextInvoiceAmount +# CommerceSubscriptionItem2NextInvoiceAmount Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md b/docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md rename to docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md index 445e67be..ae138719 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md +++ b/docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextInvoiceProration +# CommerceSubscriptionItem2NextInvoiceProration ## Fields diff --git a/docs/models/components/CommerceSubscriptionItem2NextPayment.md b/docs/models/components/CommerceSubscriptionItem2NextPayment.md new file mode 100644 index 00000000..8bde7e00 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2NextPayment.md @@ -0,0 +1,13 @@ +# CommerceSubscriptionItem2NextPayment + +Information about the next payment. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | +| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `totals` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md index 4689ffdc..a5033c4d 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentAmount +# CommerceSubscriptionItem2NextPaymentAmount Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. diff --git a/docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md new file mode 100644 index 00000000..f67073c8 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md @@ -0,0 +1,10 @@ +# CommerceSubscriptionItem2NextPaymentCredits + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2NextPaymentProration.md) | :heavy_check_mark: | N/A | +| `payer` | [Optional\](../../models/components/CommerceSubscriptionItem2NextPaymentPayer.md) | :heavy_check_mark: | N/A | +| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md similarity index 90% rename from docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md index 4274f4e1..9e92b23c 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md @@ -1,9 +1,9 @@ -# SchemasCommerceSubscriptionItemDiscounts +# CommerceSubscriptionItem2NextPaymentDiscounts ## Fields | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md) | :heavy_check_mark: | N/A | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md) | :heavy_check_mark: | N/A | | `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md index 4f58f153..beac250c 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentPayer +# CommerceSubscriptionItem2NextPaymentPayer ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md index e974a5a6..5e6fbf67 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentProration +# CommerceSubscriptionItem2NextPaymentProration ## Fields diff --git a/docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md new file mode 100644 index 00000000..47ede786 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md @@ -0,0 +1,16 @@ +# CommerceSubscriptionItem2NextPaymentTotals + +Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentCredits.md) | :heavy_minus_sign: | N/A | +| `discounts` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md index d788c0b7..7eddbc71 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentTotalsProration +# CommerceSubscriptionItem2NextPaymentTotalsProration ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemObject.md b/docs/models/components/CommerceSubscriptionItem2Object.md similarity index 57% rename from docs/models/components/SchemasCommerceSubscriptionItemObject.md rename to docs/models/components/CommerceSubscriptionItem2Object.md index bb419cb0..0598f0e7 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemObject.md +++ b/docs/models/components/CommerceSubscriptionItem2Object.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemObject +# CommerceSubscriptionItem2Object String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemObject; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2Object; -SchemasCommerceSubscriptionItemObject value = SchemasCommerceSubscriptionItemObject.COMMERCE_SUBSCRIPTION_ITEM; +CommerceSubscriptionItem2Object value = CommerceSubscriptionItem2Object.COMMERCE_SUBSCRIPTION_ITEM; ``` diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPayer.md b/docs/models/components/CommerceSubscriptionItem2Payer.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemPayer.md rename to docs/models/components/CommerceSubscriptionItem2Payer.md index 1fbc0913..ed9d485c 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemPayer.md +++ b/docs/models/components/CommerceSubscriptionItem2Payer.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemPayer +# CommerceSubscriptionItem2Payer ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md b/docs/models/components/CommerceSubscriptionItem2PayerObject.md similarity index 50% rename from docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md rename to docs/models/components/CommerceSubscriptionItem2PayerObject.md index c67a0744..389b204f 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md +++ b/docs/models/components/CommerceSubscriptionItem2PayerObject.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemPayerObject +# CommerceSubscriptionItem2PayerObject String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPayerObject; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PayerObject; -SchemasCommerceSubscriptionItemPayerObject value = SchemasCommerceSubscriptionItemPayerObject.COMMERCE_PAYER; +CommerceSubscriptionItem2PayerObject value = CommerceSubscriptionItem2PayerObject.COMMERCE_PAYER; ``` diff --git a/docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md b/docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md new file mode 100644 index 00000000..2ae80e4d --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md @@ -0,0 +1,18 @@ +# CommerceSubscriptionItem2PaymentSourceObject + +String representing the object's type. Objects of the same type share the same value. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PaymentSourceObject; + +CommerceSubscriptionItem2PaymentSourceObject value = CommerceSubscriptionItem2PaymentSourceObject.COMMERCE_SOURCE; +``` + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `COMMERCE_SOURCE` | commerce_source | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md b/docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md new file mode 100644 index 00000000..f2d33091 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md @@ -0,0 +1,19 @@ +# CommerceSubscriptionItem2PaymentSourceStatus + +Status of the payment source. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PaymentSourceStatus; + +CommerceSubscriptionItem2PaymentSourceStatus value = CommerceSubscriptionItem2PaymentSourceStatus.ACTIVE; +``` + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `ACTIVE` | active | +| `DISCONNECTED` | disconnected | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2Plan.md b/docs/models/components/CommerceSubscriptionItem2Plan.md new file mode 100644 index 00000000..274e4e0b --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Plan.md @@ -0,0 +1,38 @@ +# CommerceSubscriptionItem2Plan + +The associated commerce plan. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2PlanObject](../../models/components/CommerceSubscriptionItem2PlanObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | +| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | +| `fee` | [Optional\](../../models/components/CommerceSubscriptionItem2Fee.md) | :heavy_check_mark: | N/A | +| `annualMonthlyFee` | [Optional\](../../models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md) | :heavy_check_mark: | N/A | +| `annualFee` | [Optional\](../../models/components/CommerceSubscriptionItem2AnnualFee.md) | :heavy_check_mark: | N/A | +| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | +| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | +| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | +| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | +| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | +| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | +| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | +| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | +| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | +| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | +| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | +| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | +| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | +| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | +| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | +| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | +| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | +| `features` | List\<[FeatureResponse2](../../models/components/FeatureResponse2.md)> | :heavy_check_mark: | The features included in this plan. | +| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | +| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md b/docs/models/components/CommerceSubscriptionItem2PlanObject.md similarity index 50% rename from docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md rename to docs/models/components/CommerceSubscriptionItem2PlanObject.md index 2d2a25f2..7a26dab0 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md +++ b/docs/models/components/CommerceSubscriptionItem2PlanObject.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemPlanObject +# CommerceSubscriptionItem2PlanObject String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPlanObject; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PlanObject; -SchemasCommerceSubscriptionItemPlanObject value = SchemasCommerceSubscriptionItemPlanObject.COMMERCE_PLAN; +CommerceSubscriptionItem2PlanObject value = CommerceSubscriptionItem2PlanObject.COMMERCE_PLAN; ``` diff --git a/docs/models/components/CommerceSubscriptionItem2PlanPeriod.md b/docs/models/components/CommerceSubscriptionItem2PlanPeriod.md new file mode 100644 index 00000000..71dd6fe0 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2PlanPeriod.md @@ -0,0 +1,19 @@ +# CommerceSubscriptionItem2PlanPeriod + +The billing period for this subscription. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PlanPeriod; + +CommerceSubscriptionItem2PlanPeriod value = CommerceSubscriptionItem2PlanPeriod.MONTH; +``` + + +## Values + +| Name | Value | +| -------- | -------- | +| `MONTH` | month | +| `ANNUAL` | annual | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemProration.md b/docs/models/components/CommerceSubscriptionItem2Proration.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemProration.md rename to docs/models/components/CommerceSubscriptionItem2Proration.md index 3f100e41..4c803147 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemProration.md +++ b/docs/models/components/CommerceSubscriptionItem2Proration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemProration +# CommerceSubscriptionItem2Proration ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemStatus.md b/docs/models/components/CommerceSubscriptionItem2Status.md similarity index 61% rename from docs/models/components/SchemasCommerceSubscriptionItemStatus.md rename to docs/models/components/CommerceSubscriptionItem2Status.md index 3769ff5d..ca82cb4d 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemStatus.md +++ b/docs/models/components/CommerceSubscriptionItem2Status.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemStatus +# CommerceSubscriptionItem2Status Current status of the subscription item. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemStatus; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2Status; -SchemasCommerceSubscriptionItemStatus value = SchemasCommerceSubscriptionItemStatus.ACTIVE; +CommerceSubscriptionItem2Status value = CommerceSubscriptionItem2Status.ACTIVE; ``` diff --git a/docs/models/components/CommerceSubscriptionItem2Totals.md b/docs/models/components/CommerceSubscriptionItem2Totals.md new file mode 100644 index 00000000..2dcdc105 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Totals.md @@ -0,0 +1,16 @@ +# CommerceSubscriptionItem2Totals + +Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Credits.md) | :heavy_minus_sign: | N/A | +| `discounts` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Discounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionNextPayment.md b/docs/models/components/CommerceSubscriptionNextPayment.md index f1ce0c22..7650717f 100644 --- a/docs/models/components/CommerceSubscriptionNextPayment.md +++ b/docs/models/components/CommerceSubscriptionNextPayment.md @@ -7,5 +7,5 @@ | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | `date` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) of the next payment date. | | `amount` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | | `totals` | [JsonNullable\](../../models/components/CommerceSubscriptionNextPaymentTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionNextPaymentTotals.md b/docs/models/components/CommerceSubscriptionNextPaymentTotals.md index dad851c1..daca2771 100644 --- a/docs/models/components/CommerceSubscriptionNextPaymentTotals.md +++ b/docs/models/components/CommerceSubscriptionNextPaymentTotals.md @@ -11,6 +11,6 @@ Breakdown of the recurring amount that will be billed at renewal (base fee + per | `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionNextPaymentCredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [JsonNullable\](../../models/components/CommerceSubscriptionNextPaymentDiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/Credit.md b/docs/models/components/Credit.md index 3f11bb6f..ff1ea1cd 100644 --- a/docs/models/components/Credit.md +++ b/docs/models/components/Credit.md @@ -5,7 +5,7 @@ Credit information (only available in PaymentAttempt events). ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemCreditAmount.md) | :heavy_minus_sign: | Credit amount. | -| `cycleRemainingPercent` | *Optional\* | :heavy_minus_sign: | Percentage of the billing cycle remaining. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2CreditAmount.md) | :heavy_minus_sign: | Credit amount. | +| `cycleRemainingPercent` | *Optional\* | :heavy_minus_sign: | Percentage of the billing cycle remaining. | \ No newline at end of file diff --git a/docs/models/components/EnrollmentMode.md b/docs/models/components/EnrollmentMode.md index e95ee5d6..5b8886c8 100644 --- a/docs/models/components/EnrollmentMode.md +++ b/docs/models/components/EnrollmentMode.md @@ -17,4 +17,5 @@ EnrollmentMode value = EnrollmentMode.MANUAL_INVITATION; | ---------------------- | ---------------------- | | `MANUAL_INVITATION` | manual_invitation | | `AUTOMATIC_INVITATION` | automatic_invitation | -| `AUTOMATIC_SUGGESTION` | automatic_suggestion | \ No newline at end of file +| `AUTOMATIC_SUGGESTION` | automatic_suggestion | +| `ENTERPRISE_SSO` | enterprise_sso | \ No newline at end of file diff --git a/docs/models/components/ErrorClerkError.md b/docs/models/components/ErrorClerkError.md index 43ef0634..f4c70c22 100644 --- a/docs/models/components/ErrorClerkError.md +++ b/docs/models/components/ErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ErrorMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ErrorMeta.md b/docs/models/components/ErrorMeta.md deleted file mode 100644 index e498afa4..00000000 --- a/docs/models/components/ErrorMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ErrorMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/FeatureResponse2.md b/docs/models/components/FeatureResponse2.md new file mode 100644 index 00000000..6e48d8b6 --- /dev/null +++ b/docs/models/components/FeatureResponse2.md @@ -0,0 +1,13 @@ +# FeatureResponse2 + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `object` | [FeatureResponse2Object](../../models/components/FeatureResponse2Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the feature. | +| `name` | *String* | :heavy_check_mark: | The name of the feature. | +| `description` | *String* | :heavy_check_mark: | The description of the feature. | +| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the feature. | +| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the feature's avatar image. | \ No newline at end of file diff --git a/docs/models/components/SchemasFeatureResponseObject.md b/docs/models/components/FeatureResponse2Object.md similarity index 53% rename from docs/models/components/SchemasFeatureResponseObject.md rename to docs/models/components/FeatureResponse2Object.md index aa0095ba..f0c59c84 100644 --- a/docs/models/components/SchemasFeatureResponseObject.md +++ b/docs/models/components/FeatureResponse2Object.md @@ -1,13 +1,13 @@ -# SchemasFeatureResponseObject +# FeatureResponse2Object String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasFeatureResponseObject; +import com.clerk.backend_api.models.components.FeatureResponse2Object; -SchemasFeatureResponseObject value = SchemasFeatureResponseObject.FEATURE; +FeatureResponse2Object value = FeatureResponse2Object.FEATURE; ``` diff --git a/docs/models/components/Meta.md b/docs/models/components/Meta.md deleted file mode 100644 index 93f98d6a..00000000 --- a/docs/models/components/Meta.md +++ /dev/null @@ -1,7 +0,0 @@ -# Meta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/NextInvoice.md b/docs/models/components/NextInvoice.md index 1afdbee4..271470f1 100644 --- a/docs/models/components/NextInvoice.md +++ b/docs/models/components/NextInvoice.md @@ -5,9 +5,9 @@ Information about the next invoice. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | -| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | -| `totals` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextInvoiceAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | +| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `totals` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Totals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/One.md b/docs/models/components/One.md index 8b55d934..55a70fbc 100644 --- a/docs/models/components/One.md +++ b/docs/models/components/One.md @@ -3,32 +3,34 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `object` | [SAMLConnectionObject](../../models/components/SAMLConnectionObject.md) | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| ~~`domain`~~ | *String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `domains` | List\<*String*> | :heavy_minus_sign: | N/A | -| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | -| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | -| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | -| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `acsUrl` | *String* | :heavy_check_mark: | N/A | -| `spEntityId` | *String* | :heavy_check_mark: | N/A | -| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | -| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | -| `active` | *boolean* | :heavy_check_mark: | N/A | -| `provider` | *String* | :heavy_check_mark: | N/A | -| `userCount` | *long* | :heavy_check_mark: | N/A | -| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | -| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | -| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | -| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | -| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | -| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | -| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [SAMLConnectionObject](../../models/components/SAMLConnectionObject.md) | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| ~~`domain`~~ | *String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `domains` | List\<*String*> | :heavy_minus_sign: | N/A | +| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | +| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificateIssuedAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
| +| `idpCertificateExpiresAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
| +| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `acsUrl` | *String* | :heavy_check_mark: | N/A | +| `spEntityId` | *String* | :heavy_check_mark: | N/A | +| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | +| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | +| `active` | *boolean* | :heavy_check_mark: | N/A | +| `provider` | *String* | :heavy_check_mark: | N/A | +| `userCount` | *long* | :heavy_check_mark: | N/A | +| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | +| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | +| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | +| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | +| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | +| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | +| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file diff --git a/docs/models/components/Payer.md b/docs/models/components/Payer.md index cbce6e74..42a584b2 100644 --- a/docs/models/components/Payer.md +++ b/docs/models/components/Payer.md @@ -5,18 +5,18 @@ The payer associated with this subscription. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemPayerObject](../../models/components/SchemasCommerceSubscriptionItemPayerObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the payer. | -| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | -| `userId` | *Optional\* | :heavy_minus_sign: | User ID for user-type payers. | -| `firstName` | *String* | :heavy_check_mark: | First name of the payer. | -| `lastName` | *String* | :heavy_check_mark: | Last name of the payer. | -| `email` | *String* | :heavy_check_mark: | Email address of the payer. | -| `organizationId` | *Optional\* | :heavy_minus_sign: | Organization ID for org-type payers. | -| `organizationName` | *Optional\* | :heavy_minus_sign: | Organization name for org-type payers. | -| `imageUrl` | *String* | :heavy_check_mark: | URL of the payer's image/avatar. | -| `creditsBalance` | [Optional\](../../models/components/CommerceMoneyResponse.md) | :heavy_minus_sign: | N/A | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was created. | -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was last updated. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2PayerObject](../../models/components/CommerceSubscriptionItem2PayerObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the payer. | +| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | +| `userId` | *Optional\* | :heavy_minus_sign: | User ID for user-type payers. | +| `firstName` | *String* | :heavy_check_mark: | First name of the payer. | +| `lastName` | *String* | :heavy_check_mark: | Last name of the payer. | +| `email` | *String* | :heavy_check_mark: | Email address of the payer. | +| `organizationId` | *Optional\* | :heavy_minus_sign: | Organization ID for org-type payers. | +| `organizationName` | *Optional\* | :heavy_minus_sign: | Organization name for org-type payers. | +| `imageUrl` | *String* | :heavy_check_mark: | URL of the payer's image/avatar. | +| `creditsBalance` | [Optional\](../../models/components/CommerceMoneyResponse.md) | :heavy_minus_sign: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was last updated. | \ No newline at end of file diff --git a/docs/models/components/PaymentSource.md b/docs/models/components/PaymentSource.md index 691b5be5..370c0891 100644 --- a/docs/models/components/PaymentSource.md +++ b/docs/models/components/PaymentSource.md @@ -5,22 +5,22 @@ The payment source associated with this subscription. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemPaymentSourceObject](../../models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | -| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | -| `paymentMethod` | [PaymentMethod](../../models/components/PaymentMethod.md) | :heavy_check_mark: | The payment method type. | -| `isDefault` | *JsonNullable\* | :heavy_minus_sign: | Whether this is the default payment source for the payer. | -| `gateway` | *String* | :heavy_check_mark: | The payment gateway. | -| `gatewayExternalId` | *String* | :heavy_check_mark: | External ID in the payment gateway. | -| `gatewayExternalAccountId` | *JsonNullable\* | :heavy_minus_sign: | External account ID in the payment gateway. | -| `last4` | *String* | :heavy_check_mark: | Last 4 digits of the card (for card payment sources). | -| `status` | [SchemasCommerceSubscriptionItemPaymentSourceStatus](../../models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md) | :heavy_check_mark: | Status of the payment source. | -| `walletType` | *String* | :heavy_check_mark: | Type of wallet (if applicable). | -| `cardType` | *String* | :heavy_check_mark: | Type of card (if applicable). | -| `expiryYear` | *Optional\* | :heavy_minus_sign: | Card expiration year (for card payment sources). | -| `expiryMonth` | *Optional\* | :heavy_minus_sign: | Card expiration month (for card payment sources). | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was created. | -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was last updated. | -| `isRemovable` | *JsonNullable\* | :heavy_minus_sign: | Whether this payment source can be removed. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2PaymentSourceObject](../../models/components/CommerceSubscriptionItem2PaymentSourceObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | +| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | +| `paymentMethod` | [PaymentMethod](../../models/components/PaymentMethod.md) | :heavy_check_mark: | The payment method type. | +| `isDefault` | *JsonNullable\* | :heavy_minus_sign: | Whether this is the default payment source for the payer. | +| `gateway` | *String* | :heavy_check_mark: | The payment gateway. | +| `gatewayExternalId` | *String* | :heavy_check_mark: | External ID in the payment gateway. | +| `gatewayExternalAccountId` | *JsonNullable\* | :heavy_minus_sign: | External account ID in the payment gateway. | +| `last4` | *String* | :heavy_check_mark: | Last 4 digits of the card (for card payment sources). | +| `status` | [CommerceSubscriptionItem2PaymentSourceStatus](../../models/components/CommerceSubscriptionItem2PaymentSourceStatus.md) | :heavy_check_mark: | Status of the payment source. | +| `walletType` | *String* | :heavy_check_mark: | Type of wallet (if applicable). | +| `cardType` | *String* | :heavy_check_mark: | Type of card (if applicable). | +| `expiryYear` | *Optional\* | :heavy_minus_sign: | Card expiration year (for card payment sources). | +| `expiryMonth` | *Optional\* | :heavy_minus_sign: | Card expiration month (for card payment sources). | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was last updated. | +| `isRemovable` | *JsonNullable\* | :heavy_minus_sign: | Whether this payment source can be removed. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectory.md b/docs/models/components/SCIMDirectory.md new file mode 100644 index 00000000..d1d5c9e0 --- /dev/null +++ b/docs/models/components/SCIMDirectory.md @@ -0,0 +1,22 @@ +# SCIMDirectory + +A SCIM directory configuration for provisioning users via SCIM protocol. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [SCIMDirectoryObject](../../models/components/SCIMDirectoryObject.md) | :heavy_check_mark: | String representing the object's type. Always "scim_directory". | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the SCIM directory. | +| `name` | *String* | :heavy_check_mark: | A human-friendly name for the SCIM directory. | +| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the associated enterprise connection. | +| `endpointUrl` | *String* | :heavy_check_mark: | The SCIM endpoint URL for this directory. | +| `provider` | *String* | :heavy_check_mark: | The identity provider for this SCIM directory. | +| `enabled` | *boolean* | :heavy_check_mark: | Whether the SCIM directory is enabled. | +| `groupRoleMappingEnabled` | *boolean* | :heavy_check_mark: | Whether group-to-role mapping is enabled for this SCIM directory. | +| `attributeMapping` | Map\ | :heavy_check_mark: | Mapping of user attributes to the SCIM attribute paths they are extracted from. | +| `customAttributes` | List\<[SCIMDirectoryCustomAttributes](../../models/components/SCIMDirectoryCustomAttributes.md)> | :heavy_minus_sign: | Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the custom attributes feature to be enabled for the instance. | +| `apiKey` | *JsonNullable\* | :heavy_minus_sign: | The API key for authenticating SCIM requests. Only returned when the directory is created or the key is rotated. | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp when the SCIM directory was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp when the SCIM directory was last updated. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectoryCustomAttributes.md b/docs/models/components/SCIMDirectoryCustomAttributes.md new file mode 100644 index 00000000..856f62a2 --- /dev/null +++ b/docs/models/components/SCIMDirectoryCustomAttributes.md @@ -0,0 +1,12 @@ +# SCIMDirectoryCustomAttributes + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | Display name for the custom attribute | +| `key` | *Optional\* | :heavy_minus_sign: | Key used to store the attribute in the user's public/private/unsafe metadata | +| `ssoPath` | *Optional\* | :heavy_minus_sign: | Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) | +| `scimPath` | *Optional\* | :heavy_minus_sign: | GJSON path to extract the attribute value from SCIM user resources | +| `multiValued` | *Optional\* | :heavy_minus_sign: | When true, the attribute supports multiple values; values from the IdP are written to public_metadata as an array. Defaults to false. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectoryList.md b/docs/models/components/SCIMDirectoryList.md new file mode 100644 index 00000000..9d027d3f --- /dev/null +++ b/docs/models/components/SCIMDirectoryList.md @@ -0,0 +1,11 @@ +# SCIMDirectoryList + +A list of SCIM directories + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `data` | List\<[SCIMDirectory](../../models/components/SCIMDirectory.md)> | :heavy_check_mark: | N/A | +| `totalCount` | *long* | :heavy_check_mark: | Total number of SCIM directories. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectoryObject.md b/docs/models/components/SCIMDirectoryObject.md new file mode 100644 index 00000000..d8c6ae4b --- /dev/null +++ b/docs/models/components/SCIMDirectoryObject.md @@ -0,0 +1,18 @@ +# SCIMDirectoryObject + +String representing the object's type. Always "scim_directory". + +## Example Usage + +```java +import com.clerk.backend_api.models.components.SCIMDirectoryObject; + +SCIMDirectoryObject value = SCIMDirectoryObject.SCIM_DIRECTORY; +``` + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `SCIM_DIRECTORY` | scim_directory | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMapping.md b/docs/models/components/SCIMGroupRoleMapping.md new file mode 100644 index 00000000..f4e811ec --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMapping.md @@ -0,0 +1,18 @@ +# SCIMGroupRoleMapping + +A mapping from a SCIM group to an organization role. Members of the group are assigned the role; the lowest-precedence match wins when a user belongs to multiple mapped groups. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `object` | [SCIMGroupRoleMappingObject](../../models/components/SCIMGroupRoleMappingObject.md) | :heavy_check_mark: | String representing the object's type. Always "scim_group_role_mapping". | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the SCIM group role mapping. | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory this mapping belongs to. | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `scimGroupDisplayName` | *String* | :heavy_check_mark: | The display name of the SCIM group, as reported by the identity provider. | +| `role` | [Optional\](../../models/components/Role.md) | :heavy_minus_sign: | N/A | +| `precedence` | *long* | :heavy_check_mark: | Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped groups. | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) of when the mapping was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) of when the mapping was last updated. | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingDeleted.md b/docs/models/components/SCIMGroupRoleMappingDeleted.md new file mode 100644 index 00000000..3faa017a --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingDeleted.md @@ -0,0 +1,12 @@ +# SCIMGroupRoleMappingDeleted + +A SCIM group role mapping was deleted. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `object` | [SCIMGroupRoleMappingDeletedObject](../../models/components/SCIMGroupRoleMappingDeletedObject.md) | :heavy_check_mark: | String representing the object's type. | +| `id` | *String* | :heavy_check_mark: | The ID of the deleted SCIM group role mapping. | +| `deleted` | *boolean* | :heavy_check_mark: | Whether the SCIM group role mapping was successfully deleted. | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingDeletedObject.md b/docs/models/components/SCIMGroupRoleMappingDeletedObject.md new file mode 100644 index 00000000..10828753 --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingDeletedObject.md @@ -0,0 +1,18 @@ +# SCIMGroupRoleMappingDeletedObject + +String representing the object's type. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingDeletedObject; + +SCIMGroupRoleMappingDeletedObject value = SCIMGroupRoleMappingDeletedObject.SCIM_GROUP_ROLE_MAPPING; +``` + + +## Values + +| Name | Value | +| ------------------------- | ------------------------- | +| `SCIM_GROUP_ROLE_MAPPING` | scim_group_role_mapping | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingList.md b/docs/models/components/SCIMGroupRoleMappingList.md new file mode 100644 index 00000000..6c75be92 --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingList.md @@ -0,0 +1,11 @@ +# SCIMGroupRoleMappingList + +A list of SCIM group role mappings, ordered by precedence. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `data` | List\<[SCIMGroupRoleMapping](../../models/components/SCIMGroupRoleMapping.md)> | :heavy_check_mark: | N/A | +| `totalCount` | *long* | :heavy_check_mark: | Total number of SCIM group role mappings in the directory. | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingObject.md b/docs/models/components/SCIMGroupRoleMappingObject.md new file mode 100644 index 00000000..273a13e5 --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingObject.md @@ -0,0 +1,18 @@ +# SCIMGroupRoleMappingObject + +String representing the object's type. Always "scim_group_role_mapping". + +## Example Usage + +```java +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingObject; + +SCIMGroupRoleMappingObject value = SCIMGroupRoleMappingObject.SCIM_GROUP_ROLE_MAPPING; +``` + + +## Values + +| Name | Value | +| ------------------------- | ------------------------- | +| `SCIM_GROUP_ROLE_MAPPING` | scim_group_role_mapping | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePerUnitTotal.md b/docs/models/components/SchemasCommercePerUnitTotal.md deleted file mode 100644 index aeedba3f..00000000 --- a/docs/models/components/SchemasCommercePerUnitTotal.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommercePerUnitTotal - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `name` | *String* | :heavy_check_mark: | Name of the billable unit (for example, seats) | -| `blockSize` | *long* | :heavy_check_mark: | Number of units included in each pricing block | -| `tiers` | List\<[SchemasCommercePerUnitTotalTier](../../models/components/SchemasCommercePerUnitTotalTier.md)> | :heavy_check_mark: | Computed totals for each pricing tier | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePlan.md b/docs/models/components/SchemasCommercePlan.md deleted file mode 100644 index a104b3af..00000000 --- a/docs/models/components/SchemasCommercePlan.md +++ /dev/null @@ -1,36 +0,0 @@ -# SchemasCommercePlan - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommercePlanObject](../../models/components/SchemasCommercePlanObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | -| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | -| `fee` | [Optional\](../../models/components/SchemasCommercePlanFee.md) | :heavy_check_mark: | N/A | -| `annualMonthlyFee` | [Optional\](../../models/components/SchemasCommercePlanAnnualMonthlyFee.md) | :heavy_check_mark: | N/A | -| `annualFee` | [Optional\](../../models/components/SchemasCommercePlanAnnualFee.md) | :heavy_check_mark: | N/A | -| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | -| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | -| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | -| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | -| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | -| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | -| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | -| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | -| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | -| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | -| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | -| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | -| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | -| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | -| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | -| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | -| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | -| `features` | List\<[SchemasFeatureResponse](../../models/components/SchemasFeatureResponse.md)> | :heavy_check_mark: | The features included in this plan. | -| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | -| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItem.md b/docs/models/components/SchemasCommerceSubscriptionItem.md deleted file mode 100644 index 6fb77c54..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItem.md +++ /dev/null @@ -1,35 +0,0 @@ -# SchemasCommerceSubscriptionItem - -A commerce subscription item. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemObject](../../models/components/SchemasCommerceSubscriptionItemObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the subscription item. | -| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | -| `status` | [SchemasCommerceSubscriptionItemStatus](../../models/components/SchemasCommerceSubscriptionItemStatus.md) | :heavy_check_mark: | Current status of the subscription item. | -| `credit` | [JsonNullable\](../../models/components/Credit.md) | :heavy_minus_sign: | Credit information (only available in PaymentAttempt events). | -| `planId` | *String* | :heavy_check_mark: | Unique identifier for the associated plan. | -| `priceId` | *Optional\* | :heavy_minus_sign: | Unique identifier for the associated price | -| `plan` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemPlan.md) | :heavy_check_mark: | The associated commerce plan. | -| `planPeriod` | [SchemasCommerceSubscriptionItemPlanPeriod](../../models/components/SchemasCommerceSubscriptionItemPlanPeriod.md) | :heavy_check_mark: | The billing period for this subscription. | -| `paymentSourceId` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | -| `paymentSource` | [JsonNullable\](../../models/components/PaymentSource.md) | :heavy_minus_sign: | The payment source associated with this subscription. | -| `lifetimePaid` | [JsonNullable\](../../models/components/LifetimePaid.md) | :heavy_minus_sign: | Total amount paid over the lifetime of this subscription. | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemAmount.md) | :heavy_minus_sign: | Current amount for this subscription. | -| `nextInvoice` | [JsonNullable\](../../models/components/NextInvoice.md) | :heavy_minus_sign: | Information about the next invoice. | -| `nextPayment` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPayment.md) | :heavy_minus_sign: | Information about the next payment. | -| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | -| `payer` | [JsonNullable\](../../models/components/Payer.md) | :heavy_minus_sign: | The payer associated with this subscription. | -| `isFreeTrial` | *boolean* | :heavy_check_mark: | Whether this subscription is currently on a free trial. | -| `periodStart` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period started. | -| `periodEnd` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period ends. | -| `prorationDate` | *String* | :heavy_check_mark: | Date used for proration calculations. | -| `canceledAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription was canceled. | -| `pastDueAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription became past due. | -| `endedAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription ended. | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was created. | -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was last updated. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md b/docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md deleted file mode 100644 index 74acd4e1..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md +++ /dev/null @@ -1,11 +0,0 @@ -# SchemasCommerceSubscriptionItemAnnualMonthlyFee - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `amount` | *long* | :heavy_check_mark: | The amount in cents. | -| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemCredits.md b/docs/models/components/SchemasCommerceSubscriptionItemCredits.md deleted file mode 100644 index 6dbebdd5..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemCredits.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommerceSubscriptionItemCredits - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemProration.md) | :heavy_check_mark: | N/A | -| `payer` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemPayer.md) | :heavy_check_mark: | N/A | -| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md deleted file mode 100644 index b7227b48..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md +++ /dev/null @@ -1,13 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPayment - -Information about the next payment. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | -| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | -| `totals` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md deleted file mode 100644 index 7e5b0876..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentCredits - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md) | :heavy_check_mark: | N/A | -| `payer` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md) | :heavy_check_mark: | N/A | -| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md deleted file mode 100644 index 399b4cdb..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md +++ /dev/null @@ -1,9 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentDiscounts - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md) | :heavy_check_mark: | N/A | -| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md deleted file mode 100644 index cf0b09df..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md +++ /dev/null @@ -1,16 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentTotals - -Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | -| `credits` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md) | :heavy_minus_sign: | N/A | -| `discounts` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md b/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md deleted file mode 100644 index eca4d7f5..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md +++ /dev/null @@ -1,18 +0,0 @@ -# SchemasCommerceSubscriptionItemPaymentSourceObject - -String representing the object's type. Objects of the same type share the same value. - -## Example Usage - -```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPaymentSourceObject; - -SchemasCommerceSubscriptionItemPaymentSourceObject value = SchemasCommerceSubscriptionItemPaymentSourceObject.COMMERCE_SOURCE; -``` - - -## Values - -| Name | Value | -| ----------------- | ----------------- | -| `COMMERCE_SOURCE` | commerce_source | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md b/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md deleted file mode 100644 index d3fbd416..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# SchemasCommerceSubscriptionItemPaymentSourceStatus - -Status of the payment source. - -## Example Usage - -```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPaymentSourceStatus; - -SchemasCommerceSubscriptionItemPaymentSourceStatus value = SchemasCommerceSubscriptionItemPaymentSourceStatus.ACTIVE; -``` - - -## Values - -| Name | Value | -| -------------- | -------------- | -| `ACTIVE` | active | -| `DISCONNECTED` | disconnected | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPlan.md b/docs/models/components/SchemasCommerceSubscriptionItemPlan.md deleted file mode 100644 index f2a84b68..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPlan.md +++ /dev/null @@ -1,38 +0,0 @@ -# SchemasCommerceSubscriptionItemPlan - -The associated commerce plan. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemPlanObject](../../models/components/SchemasCommerceSubscriptionItemPlanObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | -| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | -| `fee` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemFee.md) | :heavy_check_mark: | N/A | -| `annualMonthlyFee` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md) | :heavy_check_mark: | N/A | -| `annualFee` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemAnnualFee.md) | :heavy_check_mark: | N/A | -| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | -| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | -| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | -| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | -| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | -| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | -| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | -| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | -| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | -| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | -| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | -| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | -| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | -| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | -| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | -| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | -| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | -| `features` | List\<[SchemasFeatureResponse](../../models/components/SchemasFeatureResponse.md)> | :heavy_check_mark: | The features included in this plan. | -| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | -| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md b/docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md deleted file mode 100644 index 5226c091..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md +++ /dev/null @@ -1,19 +0,0 @@ -# SchemasCommerceSubscriptionItemPlanPeriod - -The billing period for this subscription. - -## Example Usage - -```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPlanPeriod; - -SchemasCommerceSubscriptionItemPlanPeriod value = SchemasCommerceSubscriptionItemPlanPeriod.MONTH; -``` - - -## Values - -| Name | Value | -| -------- | -------- | -| `MONTH` | month | -| `ANNUAL` | annual | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemTotals.md b/docs/models/components/SchemasCommerceSubscriptionItemTotals.md deleted file mode 100644 index cd8b588f..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemTotals.md +++ /dev/null @@ -1,16 +0,0 @@ -# SchemasCommerceSubscriptionItemTotals - -Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | -| `credits` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemCredits.md) | :heavy_minus_sign: | N/A | -| `discounts` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemDiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasFeatureResponse.md b/docs/models/components/SchemasFeatureResponse.md deleted file mode 100644 index 3671ee20..00000000 --- a/docs/models/components/SchemasFeatureResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SchemasFeatureResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `object` | [SchemasFeatureResponseObject](../../models/components/SchemasFeatureResponseObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the feature. | -| `name` | *String* | :heavy_check_mark: | The name of the feature. | -| `description` | *String* | :heavy_check_mark: | The description of the feature. | -| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the feature. | -| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the feature's avatar image. | \ No newline at end of file diff --git a/docs/models/components/Seats.md b/docs/models/components/Seats.md index c2c05c2d..18a54364 100644 --- a/docs/models/components/Seats.md +++ b/docs/models/components/Seats.md @@ -5,7 +5,7 @@ Seat quantity for seat-based billing. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `quantity` | *Optional\* | :heavy_check_mark: | Seat quantity being billed; null means unlimited | -| `tiers` | List\<[SchemasCommercePerUnitTotalTier](../../models/components/SchemasCommercePerUnitTotalTier.md)> | :heavy_minus_sign: | Per-unit cost breakdown by pricing tier | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `quantity` | *Optional\* | :heavy_check_mark: | Seat quantity being billed; null means unlimited | +| `tiers` | List\<[CommercePerUnitTotalTier2](../../models/components/CommercePerUnitTotalTier2.md)> | :heavy_minus_sign: | Per-unit cost breakdown by pricing tier | \ No newline at end of file diff --git a/docs/models/components/Totals.md b/docs/models/components/Totals.md index 75f051f1..32414b67 100644 --- a/docs/models/components/Totals.md +++ b/docs/models/components/Totals.md @@ -11,6 +11,6 @@ Totals for this subscription item. | `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionItemCredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [JsonNullable\](../../models/components/Discounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/Two.md b/docs/models/components/Two.md index 3a3cb546..40b1cdfc 100644 --- a/docs/models/components/Two.md +++ b/docs/models/components/Two.md @@ -3,32 +3,34 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `object` | [SAMLConnection2Object](../../models/components/SAMLConnection2Object.md) | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| ~~`domain`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `domains` | List\<*String*> | :heavy_check_mark: | N/A | -| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | -| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | -| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | -| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `acsUrl` | *String* | :heavy_check_mark: | N/A | -| `spEntityId` | *String* | :heavy_check_mark: | N/A | -| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | -| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | -| `active` | *boolean* | :heavy_check_mark: | N/A | -| `provider` | *String* | :heavy_check_mark: | N/A | -| `userCount` | *long* | :heavy_check_mark: | N/A | -| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | -| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | -| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | -| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | -| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | -| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | -| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [SAMLConnection2Object](../../models/components/SAMLConnection2Object.md) | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| ~~`domain`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `domains` | List\<*String*> | :heavy_check_mark: | N/A | +| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | +| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificateIssuedAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
| +| `idpCertificateExpiresAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
| +| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `acsUrl` | *String* | :heavy_check_mark: | N/A | +| `spEntityId` | *String* | :heavy_check_mark: | N/A | +| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | +| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | +| `active` | *boolean* | :heavy_check_mark: | N/A | +| `provider` | *String* | :heavy_check_mark: | N/A | +| `userCount` | *long* | :heavy_check_mark: | N/A | +| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | +| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | +| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | +| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | +| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | +| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | +| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file diff --git a/docs/models/components/VerificationGoogleOneTapErrorClerkError.md b/docs/models/components/VerificationGoogleOneTapErrorClerkError.md index f6ea715c..e127ba4a 100644 --- a/docs/models/components/VerificationGoogleOneTapErrorClerkError.md +++ b/docs/models/components/VerificationGoogleOneTapErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationOauthErrorClerkError.md b/docs/models/components/VerificationOauthErrorClerkError.md index c1585841..adc5b8ea 100644 --- a/docs/models/components/VerificationOauthErrorClerkError.md +++ b/docs/models/components/VerificationOauthErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md b/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md index 41eb739e..7c6faa13 100644 --- a/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md +++ b/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md b/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md index 514bca5f..e177a50c 100644 --- a/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md +++ b/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorSAMLAccountMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationSamlErrorClerkError.md b/docs/models/components/VerificationSamlErrorClerkError.md index 63ff0a97..8f0c06d5 100644 --- a/docs/models/components/VerificationSamlErrorClerkError.md +++ b/docs/models/components/VerificationSamlErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md b/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md index c6dcc00a..cbff1ec3 100644 --- a/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md +++ b/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorEnterpriseAccountMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/ClerkErrors.md b/docs/models/errors/ClerkErrors.md index 76fd9712..a9f48db7 100644 --- a/docs/models/errors/ClerkErrors.md +++ b/docs/models/errors/ClerkErrors.md @@ -8,4 +8,4 @@ Request was not successful | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | | `errors` | List\<[ClerkError](../../models/components/ClerkError.md)> | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/Meta.md b/docs/models/errors/Meta.md deleted file mode 100644 index 93f98d6a..00000000 --- a/docs/models/errors/Meta.md +++ /dev/null @@ -1,7 +0,0 @@ -# Meta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/CreateOrganizationDomainRequestBody.md b/docs/models/operations/CreateOrganizationDomainRequestBody.md index d3389b5a..f33d0a7e 100644 --- a/docs/models/operations/CreateOrganizationDomainRequestBody.md +++ b/docs/models/operations/CreateOrganizationDomainRequestBody.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | The name of the new domain | -| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` | -| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of domain's verification. Defaults to true | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | The name of the new domain | +| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` | +| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of domain's verification. Defaults to true | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMDirectoryRequestBody.md b/docs/models/operations/CreateSCIMDirectoryRequestBody.md new file mode 100644 index 00000000..b6e0266d --- /dev/null +++ b/docs/models/operations/CreateSCIMDirectoryRequestBody.md @@ -0,0 +1,11 @@ +# CreateSCIMDirectoryRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `enterpriseConnectionId` | *String* | :heavy_check_mark: | The ID of the enterprise connection to associate with this SCIM directory. | +| `name` | *Optional\* | :heavy_minus_sign: | A human-friendly name for the SCIM directory. | +| `provider` | *String* | :heavy_check_mark: | The identity provider for this SCIM directory. | +| `groupRoleMappings` | List\<[GroupRoleMappings](../../models/operations/GroupRoleMappings.md)> | :heavy_minus_sign: | Optional SCIM group to organization role mappings to create with the directory. | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMDirectoryResponse.md b/docs/models/operations/CreateSCIMDirectoryResponse.md new file mode 100644 index 00000000..ea2d41a0 --- /dev/null +++ b/docs/models/operations/CreateSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# CreateSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMGroupRoleMappingRequest.md b/docs/models/operations/CreateSCIMGroupRoleMappingRequest.md new file mode 100644 index 00000000..624ffc85 --- /dev/null +++ b/docs/models/operations/CreateSCIMGroupRoleMappingRequest.md @@ -0,0 +1,9 @@ +# CreateSCIMGroupRoleMappingRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [CreateSCIMGroupRoleMappingRequestBody](../../models/operations/CreateSCIMGroupRoleMappingRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md b/docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md new file mode 100644 index 00000000..5250ec29 --- /dev/null +++ b/docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md @@ -0,0 +1,10 @@ +# CreateSCIMGroupRoleMappingRequestBody + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `roleId` | *String* | :heavy_check_mark: | The ID of the organization role to assign to members of the SCIM group. | +| `precedence` | *Optional\* | :heavy_minus_sign: | The precedence for this mapping. Lower values take priority when a user belongs
to multiple mapped groups. If omitted, the mapping is appended with the
next-highest precedence. | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMGroupRoleMappingResponse.md b/docs/models/operations/CreateSCIMGroupRoleMappingResponse.md new file mode 100644 index 00000000..309eaa29 --- /dev/null +++ b/docs/models/operations/CreateSCIMGroupRoleMappingResponse.md @@ -0,0 +1,11 @@ +# CreateSCIMGroupRoleMappingResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMapping` | [Optional\](../../models/components/SCIMGroupRoleMapping.md) | :heavy_minus_sign: | A SCIM group role mapping | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMDirectoryRequest.md b/docs/models/operations/DeleteSCIMDirectoryRequest.md new file mode 100644 index 00000000..31a928ac --- /dev/null +++ b/docs/models/operations/DeleteSCIMDirectoryRequest.md @@ -0,0 +1,8 @@ +# DeleteSCIMDirectoryRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to delete | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMDirectoryResponse.md b/docs/models/operations/DeleteSCIMDirectoryResponse.md new file mode 100644 index 00000000..bc8dfd53 --- /dev/null +++ b/docs/models/operations/DeleteSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# DeleteSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `deletedObject` | [Optional\](../../models/components/DeletedObject.md) | :heavy_minus_sign: | Deleted Object | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md b/docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md new file mode 100644 index 00000000..75261c19 --- /dev/null +++ b/docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md @@ -0,0 +1,9 @@ +# DeleteSCIMGroupRoleMappingRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `mappingId` | *String* | :heavy_check_mark: | The ID of the SCIM group role mapping to delete. | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md b/docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md new file mode 100644 index 00000000..0db0ec8a --- /dev/null +++ b/docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md @@ -0,0 +1,11 @@ +# DeleteSCIMGroupRoleMappingResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMappingDeleted` | [Optional\](../../models/components/SCIMGroupRoleMappingDeleted.md) | :heavy_minus_sign: | A SCIM group role mapping was deleted. | \ No newline at end of file diff --git a/docs/models/operations/EnrollmentMode.md b/docs/models/operations/EnrollmentMode.md index 025654a5..94b2ff9d 100644 --- a/docs/models/operations/EnrollmentMode.md +++ b/docs/models/operations/EnrollmentMode.md @@ -11,8 +11,13 @@ EnrollmentMode value = EnrollmentMode.MANUAL_INVITATION; ## Values -| Name | Value | -| ---------------------- | ---------------------- | -| `MANUAL_INVITATION` | manual_invitation | -| `AUTOMATIC_INVITATION` | automatic_invitation | -| `AUTOMATIC_SUGGESTION` | automatic_suggestion | \ No newline at end of file +| Name | Value | +| ---------------------------- | ---------------------------- | +| `MANUAL_INVITATION` | manual_invitation | +| `AUTOMATIC_INVITATION` | automatic_invitation | +| `AUTOMATIC_SUGGESTION` | automatic_suggestion | +| `ENTERPRISE_SSO` | enterprise_sso | +| `MINUS_MANUAL_INVITATION` | -manual_invitation | +| `MINUS_AUTOMATIC_INVITATION` | -automatic_invitation | +| `MINUS_AUTOMATIC_SUGGESTION` | -automatic_suggestion | +| `MINUS_ENTERPRISE_SSO` | -enterprise_sso | \ No newline at end of file diff --git a/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md b/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md index 82e399b0..d8c7c9c7 100644 --- a/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md +++ b/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `schemasCommerceSubscriptionItem` | [Optional\](../../models/components/SchemasCommerceSubscriptionItem.md) | :heavy_minus_sign: | A commerce subscription item. | \ No newline at end of file +| `commerceSubscriptionItem2` | [Optional\](../../models/components/CommerceSubscriptionItem2.md) | :heavy_minus_sign: | A commerce subscription item. | \ No newline at end of file diff --git a/docs/models/operations/GetSCIMDirectoryRequest.md b/docs/models/operations/GetSCIMDirectoryRequest.md new file mode 100644 index 00000000..c089034f --- /dev/null +++ b/docs/models/operations/GetSCIMDirectoryRequest.md @@ -0,0 +1,8 @@ +# GetSCIMDirectoryRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to retrieve | \ No newline at end of file diff --git a/docs/models/operations/GetSCIMDirectoryResponse.md b/docs/models/operations/GetSCIMDirectoryResponse.md new file mode 100644 index 00000000..d27457ab --- /dev/null +++ b/docs/models/operations/GetSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# GetSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/GroupRoleMappings.md b/docs/models/operations/GroupRoleMappings.md new file mode 100644 index 00000000..c90766c6 --- /dev/null +++ b/docs/models/operations/GroupRoleMappings.md @@ -0,0 +1,11 @@ +# GroupRoleMappings + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `scimGroupDisplayName` | *Optional\* | :heavy_minus_sign: | Optional display name for the SCIM group. | +| `roleId` | *String* | :heavy_check_mark: | The organization role ID to assign to members of the SCIM group. | +| `precedence` | *Optional\* | :heavy_minus_sign: | The precedence for this mapping. If omitted, precedence is assigned by array order. | \ No newline at end of file diff --git a/docs/models/operations/ListAllOrganizationDomainsRequest.md b/docs/models/operations/ListAllOrganizationDomainsRequest.md index c0c83f34..b2b649cf 100644 --- a/docs/models/operations/ListAllOrganizationDomainsRequest.md +++ b/docs/models/operations/ListAllOrganizationDomainsRequest.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `organizationId` | *Optional\* | :heavy_minus_sign: | The ID of the organization to filter domains by | | `verified` | [Optional\](../../models/operations/Verified.md) | :heavy_minus_sign: | Filter by verification status | -| `enrollmentMode` | List\<[EnrollmentMode](../../models/operations/EnrollmentMode.md)> | :heavy_minus_sign: | Filter by enrollment mode | +| `enrollmentMode` | List\<[EnrollmentMode](../../models/operations/EnrollmentMode.md)> | :heavy_minus_sign: | Filter by enrollment mode. Prefix a value with `-` to exclude it instead
(e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. | | `query` | *Optional\* | :heavy_minus_sign: | Search domains by name or organization ID.
If the query starts with "org_", it will search by exact organization ID match.
Otherwise, it performs a case-insensitive partial match on the domain name.

Note: An empty string or whitespace-only value is not allowed and will result in a validation error.
| | `domains` | List\<*String*> | :heavy_minus_sign: | Filter by exact domain names. Accepts multiple values (e.g. domains=example.com&domains=test.org). | | `orderBy` | *Optional\* | :heavy_minus_sign: | Allows to return organization domains in a particular order.
At the moment, you can order the returned domains by their `name` or `created_at`.
In order to specify the direction, you can use the `+/-` symbols prepended to the property to order by.
For example, if you want domains to be returned in descending order according to their `created_at` property, you can use `-created_at`.
If you don't use `+` or `-`, then `+` is implied.
Defaults to `-created_at`.
| diff --git a/docs/models/operations/ListOrganizationDomainsRequest.md b/docs/models/operations/ListOrganizationDomainsRequest.md index 57590245..3edb0fd9 100644 --- a/docs/models/operations/ListOrganizationDomainsRequest.md +++ b/docs/models/operations/ListOrganizationDomainsRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `organizationId` | *String* | :heavy_check_mark: | The organization ID. | -| `verified` | *Optional\* | :heavy_minus_sign: | Filter domains by their verification status. `true` or `false` | -| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | Filter domains by their enrollment mode | -| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `organizationId` | *String* | :heavy_check_mark: | The organization ID. | +| `verified` | *Optional\* | :heavy_minus_sign: | Filter domains by their verification status. `true` or `false` | +| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso`.
Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. | +| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMDirectoriesRequest.md b/docs/models/operations/ListSCIMDirectoriesRequest.md new file mode 100644 index 00000000..46b57e14 --- /dev/null +++ b/docs/models/operations/ListSCIMDirectoriesRequest.md @@ -0,0 +1,9 @@ +# ListSCIMDirectoriesRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMDirectoriesResponse.md b/docs/models/operations/ListSCIMDirectoriesResponse.md new file mode 100644 index 00000000..d8cce0d0 --- /dev/null +++ b/docs/models/operations/ListSCIMDirectoriesResponse.md @@ -0,0 +1,11 @@ +# ListSCIMDirectoriesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectoryList` | [Optional\](../../models/components/SCIMDirectoryList.md) | :heavy_minus_sign: | A list of SCIM directories | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMGroupRoleMappingsRequest.md b/docs/models/operations/ListSCIMGroupRoleMappingsRequest.md new file mode 100644 index 00000000..0d2d308f --- /dev/null +++ b/docs/models/operations/ListSCIMGroupRoleMappingsRequest.md @@ -0,0 +1,8 @@ +# ListSCIMGroupRoleMappingsRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMGroupRoleMappingsResponse.md b/docs/models/operations/ListSCIMGroupRoleMappingsResponse.md new file mode 100644 index 00000000..e278e943 --- /dev/null +++ b/docs/models/operations/ListSCIMGroupRoleMappingsResponse.md @@ -0,0 +1,11 @@ +# ListSCIMGroupRoleMappingsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMappingList` | [Optional\](../../models/components/SCIMGroupRoleMappingList.md) | :heavy_minus_sign: | A list of SCIM group role mappings, ordered by precedence. | \ No newline at end of file diff --git a/docs/models/operations/Mappings.md b/docs/models/operations/Mappings.md new file mode 100644 index 00000000..df3b0b55 --- /dev/null +++ b/docs/models/operations/Mappings.md @@ -0,0 +1,9 @@ +# Mappings + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `roleId` | *String* | :heavy_check_mark: | The ID of the organization role to assign to members of the SCIM group. | \ No newline at end of file diff --git a/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md new file mode 100644 index 00000000..d6b43037 --- /dev/null +++ b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md @@ -0,0 +1,9 @@ +# ReplaceSCIMGroupRoleMappingsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [ReplaceSCIMGroupRoleMappingsRequestBody](../../models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md new file mode 100644 index 00000000..589b3a7c --- /dev/null +++ b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md @@ -0,0 +1,8 @@ +# ReplaceSCIMGroupRoleMappingsRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `mappings` | List\<[Mappings](../../models/operations/Mappings.md)> | :heavy_check_mark: | The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all mappings. | \ No newline at end of file diff --git a/docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md b/docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md new file mode 100644 index 00000000..40b2f770 --- /dev/null +++ b/docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md @@ -0,0 +1,11 @@ +# ReplaceSCIMGroupRoleMappingsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMappingList` | [Optional\](../../models/components/SCIMGroupRoleMappingList.md) | :heavy_minus_sign: | A list of SCIM group role mappings, ordered by precedence. | \ No newline at end of file diff --git a/docs/models/operations/RevokeOAuthApplicationTokenRequest.md b/docs/models/operations/RevokeOAuthApplicationTokenRequest.md new file mode 100644 index 00000000..11ef4da3 --- /dev/null +++ b/docs/models/operations/RevokeOAuthApplicationTokenRequest.md @@ -0,0 +1,9 @@ +# RevokeOAuthApplicationTokenRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `oauthApplicationId` | *String* | :heavy_check_mark: | The ID of the OAuth application for which to revoke the token | +| `requestBody` | [RevokeOAuthApplicationTokenRequestBody](../../models/operations/RevokeOAuthApplicationTokenRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md b/docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md new file mode 100644 index 00000000..0d3d86e9 --- /dev/null +++ b/docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md @@ -0,0 +1,8 @@ +# RevokeOAuthApplicationTokenRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `token` | *String* | :heavy_check_mark: | The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth grant are also revoked. | \ No newline at end of file diff --git a/docs/models/operations/RevokeOAuthApplicationTokenResponse.md b/docs/models/operations/RevokeOAuthApplicationTokenResponse.md new file mode 100644 index 00000000..8633a5bc --- /dev/null +++ b/docs/models/operations/RevokeOAuthApplicationTokenResponse.md @@ -0,0 +1,10 @@ +# RevokeOAuthApplicationTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md b/docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md new file mode 100644 index 00000000..052a100f --- /dev/null +++ b/docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md @@ -0,0 +1,8 @@ +# RotateSCIMDirectoryAPIKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory whose API key to rotate | \ No newline at end of file diff --git a/docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md b/docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md new file mode 100644 index 00000000..6dd15dd7 --- /dev/null +++ b/docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md @@ -0,0 +1,11 @@ +# RotateSCIMDirectoryAPIKeyResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/UpdateOrganizationDomainRequestBody.md b/docs/models/operations/UpdateOrganizationDomainRequestBody.md index 9f685a8e..db683ea7 100644 --- a/docs/models/operations/UpdateOrganizationDomainRequestBody.md +++ b/docs/models/operations/UpdateOrganizationDomainRequestBody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `enrollmentMode` | *JsonNullable\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` | -| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of the domain's verification | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `enrollmentMode` | *JsonNullable\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` | +| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of the domain's verification | \ No newline at end of file diff --git a/docs/models/operations/UpdateSCIMDirectoryRequest.md b/docs/models/operations/UpdateSCIMDirectoryRequest.md new file mode 100644 index 00000000..0d96a0c4 --- /dev/null +++ b/docs/models/operations/UpdateSCIMDirectoryRequest.md @@ -0,0 +1,9 @@ +# UpdateSCIMDirectoryRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to update | +| `requestBody` | [Optional\](../../models/operations/UpdateSCIMDirectoryRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateSCIMDirectoryRequestBody.md b/docs/models/operations/UpdateSCIMDirectoryRequestBody.md new file mode 100644 index 00000000..c01180ae --- /dev/null +++ b/docs/models/operations/UpdateSCIMDirectoryRequestBody.md @@ -0,0 +1,12 @@ +# UpdateSCIMDirectoryRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | A human-friendly name for the SCIM directory. | +| `enabled` | *Optional\* | :heavy_minus_sign: | Whether the SCIM directory is enabled. | +| `provider` | *Optional\* | :heavy_minus_sign: | The identity provider for this SCIM directory. | +| `attributeMapping` | Map\ | :heavy_minus_sign: | Attribute-to-SCIM-path entries to merge into the directory's attribute mapping.
Set a key to `null` to remove it from the mapping. | +| `groupRoleMappingEnabled` | *Optional\* | :heavy_minus_sign: | Whether group-to-role mapping is enabled for this SCIM directory. | \ No newline at end of file diff --git a/docs/models/operations/UpdateSCIMDirectoryResponse.md b/docs/models/operations/UpdateSCIMDirectoryResponse.md new file mode 100644 index 00000000..11f18a91 --- /dev/null +++ b/docs/models/operations/UpdateSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# UpdateSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/sdks/billing/README.md b/docs/sdks/billing/README.md index 4264f7f7..4c317f10 100644 --- a/docs/sdks/billing/README.md +++ b/docs/sdks/billing/README.md @@ -334,8 +334,8 @@ public class Application { .build()) .call(); - if (res.schemasCommerceSubscriptionItem().isPresent()) { - System.out.println(res.schemasCommerceSubscriptionItem().get()); + if (res.commerceSubscriptionItem2().isPresent()) { + System.out.println(res.commerceSubscriptionItem2().get()); } } } diff --git a/docs/sdks/oauthapplications/README.md b/docs/sdks/oauthapplications/README.md index 70b35fdb..974edfac 100644 --- a/docs/sdks/oauthapplications/README.md +++ b/docs/sdks/oauthapplications/README.md @@ -11,6 +11,7 @@ * [delete](#delete) - Delete an OAuth application * [uploadLogo](#uploadlogo) - Upload a logo for the OAuth application * [rotateSecret](#rotatesecret) - Rotate the client secret of the given OAuth application +* [revokeToken](#revoketoken) - Revoke an OAuth application token ## list @@ -391,4 +392,60 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | | models/errors/ClerkErrors | 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## revokeToken + +Revoke both OAuth access token and refresh token for the associated grant for the given OAuth application. +The request may specify either token. +JWT access tokens cannot be revoked. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequestBody; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + RevokeOAuthApplicationTokenResponse res = sdk.oauthApplications().revokeToken() + .oauthApplicationId("") + .requestBody(RevokeOAuthApplicationTokenRequestBody.builder() + .token("") + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `oauthApplicationId` | *String* | :heavy_check_mark: | The ID of the OAuth application for which to revoke the token | +| `requestBody` | [RevokeOAuthApplicationTokenRequestBody](../../models/operations/RevokeOAuthApplicationTokenRequestBody.md) | :heavy_check_mark: | N/A | + +### Response + +**[RevokeOAuthApplicationTokenResponse](../../models/operations/RevokeOAuthApplicationTokenResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 403, 404, 422 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/organizationdomains/README.md b/docs/sdks/organizationdomains/README.md index 4bc63e3f..30e37d2b 100644 --- a/docs/sdks/organizationdomains/README.md +++ b/docs/sdks/organizationdomains/README.md @@ -176,7 +176,7 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models/errors/ClerkErrors | 400, 404, 422 | application/json | +| models/errors/ClerkErrors | 400, 403, 404, 422 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -229,7 +229,7 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models/errors/ClerkErrors | 400, 401, 404 | application/json | +| models/errors/ClerkErrors | 400, 401, 403, 404 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | ## verifyOwnership diff --git a/docs/sdks/scimdirectories/README.md b/docs/sdks/scimdirectories/README.md new file mode 100644 index 00000000..c5e9eb34 --- /dev/null +++ b/docs/sdks/scimdirectories/README.md @@ -0,0 +1,551 @@ +# ScimDirectories + +## Overview + +### Available Operations + +* [list](#list) - List all SCIM directories +* [create](#create) - Create a SCIM directory +* [get](#get) - Retrieve a SCIM directory +* [update](#update) - Update a SCIM directory +* [delete](#delete) - Delete a SCIM directory +* [rotateApiKey](#rotateapikey) - Rotate a SCIM directory's API key +* [listGroupRoleMappings](#listgrouprolemappings) - List SCIM group role mappings +* [createGroupRoleMapping](#creategrouprolemapping) - Create a SCIM group role mapping +* [replaceGroupRoleMappings](#replacegrouprolemappings) - Replace SCIM group role mappings +* [deleteGroupRoleMapping](#deletegrouprolemapping) - Delete a SCIM group role mapping + +## list + +Returns a list of all SCIM directories for the instance. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ListSCIMDirectoriesResponse res = sdk.scimDirectories().list() + .limit(10L) + .offset(0L) + .call(); + + if (res.scimDirectoryList().isPresent()) { + System.out.println(res.scimDirectoryList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | + +### Response + +**[ListSCIMDirectoriesResponse](../../models/operations/ListSCIMDirectoriesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## create + +Create a new SCIM directory for the instance. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + CreateSCIMDirectoryResponse res = sdk.scimDirectories().create() + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [CreateSCIMDirectoryRequestBody](../../models/operations/CreateSCIMDirectoryRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateSCIMDirectoryResponse](../../models/operations/CreateSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## get + +Returns the details of a SCIM directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + GetSCIMDirectoryResponse res = sdk.scimDirectories().get() + .scimDirectoryId("") + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to retrieve | + +### Response + +**[GetSCIMDirectoryResponse](../../models/operations/GetSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## update + +Updates a SCIM directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + UpdateSCIMDirectoryResponse res = sdk.scimDirectories().update() + .scimDirectoryId("") + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to update | +| `requestBody` | [Optional\](../../models/operations/UpdateSCIMDirectoryRequestBody.md) | :heavy_minus_sign: | N/A | + +### Response + +**[UpdateSCIMDirectoryResponse](../../models/operations/UpdateSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## delete + +Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated +with the directory's API key are rejected afterwards. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + DeleteSCIMDirectoryResponse res = sdk.scimDirectories().delete() + .scimDirectoryId("") + .call(); + + if (res.deletedObject().isPresent()) { + System.out.println(res.deletedObject().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to delete | + +### Response + +**[DeleteSCIMDirectoryResponse](../../models/operations/DeleteSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## rotateApiKey + +Generates a new API key for the SCIM directory and returns it in the `api_key` field. +This is the only way to obtain the key after creation, so make sure to update it in +your identity provider. The previous key remains valid for a short grace period before +it expires. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + RotateSCIMDirectoryAPIKeyResponse res = sdk.scimDirectories().rotateApiKey() + .scimDirectoryId("") + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory whose API key to rotate | + +### Response + +**[RotateSCIMDirectoryAPIKeyResponse](../../models/operations/RotateSCIMDirectoryAPIKeyResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## listGroupRoleMappings + +Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by precedence. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ListSCIMGroupRoleMappingsResponse res = sdk.scimDirectories().listGroupRoleMappings() + .scimDirectoryId("") + .call(); + + if (res.scimGroupRoleMappingList().isPresent()) { + System.out.println(res.scimGroupRoleMappingList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | + +### Response + +**[ListSCIMGroupRoleMappingsResponse](../../models/operations/ListSCIMGroupRoleMappingsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## createGroupRoleMapping + +Creates a new SCIM group to organization role mapping for a SCIM directory. +Group role mapping must be enabled on the directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + CreateSCIMGroupRoleMappingResponse res = sdk.scimDirectories().createGroupRoleMapping() + .scimDirectoryId("") + .requestBody(CreateSCIMGroupRoleMappingRequestBody.builder() + .scimGroupId("") + .roleId("") + .build()) + .call(); + + if (res.scimGroupRoleMapping().isPresent()) { + System.out.println(res.scimGroupRoleMapping().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [CreateSCIMGroupRoleMappingRequestBody](../../models/operations/CreateSCIMGroupRoleMappingRequestBody.md) | :heavy_check_mark: | N/A | + +### Response + +**[CreateSCIMGroupRoleMappingResponse](../../models/operations/CreateSCIMGroupRoleMappingResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## replaceGroupRoleMappings + +Replaces the entire set of SCIM group role mappings for a directory. The position of +each item in the `mappings` array determines its precedence (the first item gets +precedence 1). Passing an empty array removes all mappings. Group role mapping must be +enabled on the directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequestBody; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ReplaceSCIMGroupRoleMappingsResponse res = sdk.scimDirectories().replaceGroupRoleMappings() + .scimDirectoryId("") + .requestBody(ReplaceSCIMGroupRoleMappingsRequestBody.builder() + .mappings(List.of()) + .build()) + .call(); + + if (res.scimGroupRoleMappingList().isPresent()) { + System.out.println(res.scimGroupRoleMappingList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [ReplaceSCIMGroupRoleMappingsRequestBody](../../models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md) | :heavy_check_mark: | N/A | + +### Response + +**[ReplaceSCIMGroupRoleMappingsResponse](../../models/operations/ReplaceSCIMGroupRoleMappingsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## deleteGroupRoleMapping + +Deletes a single SCIM group role mapping. Group role mapping must be enabled on the +directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + DeleteSCIMGroupRoleMappingResponse res = sdk.scimDirectories().deleteGroupRoleMapping() + .scimDirectoryId("") + .mappingId("") + .call(); + + if (res.scimGroupRoleMappingDeleted().isPresent()) { + System.out.println(res.scimGroupRoleMappingDeleted().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `mappingId` | *String* | :heavy_check_mark: | The ID of the SCIM group role mapping to delete. | + +### Response + +**[DeleteSCIMGroupRoleMappingResponse](../../models/operations/DeleteSCIMGroupRoleMappingResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index dc92a7a5..5e100794 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -1756,6 +1756,8 @@ public class Application { Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in. +If the user is in reserved-email password quarantine, the quarantine is preserved and the returned user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can only be cleared by completing a password reset or changing/removing the password. + ### Example Usage diff --git a/gradle.properties b/gradle.properties index 3cd7a5f6..3fe94eee 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.clerk artifactId=backend-api -version=5.0.0 +version=5.0.1 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/clerk/backend_api/Clerk.java b/src/main/java/com/clerk/backend_api/Clerk.java index 773c40aa..54389ef4 100644 --- a/src/main/java/com/clerk/backend_api/Clerk.java +++ b/src/main/java/com/clerk/backend_api/Clerk.java @@ -159,6 +159,9 @@ public class Clerk { private final RoleSets roleSets; + private final ScimDirectories scimDirectories; + + private final AdminPortalLinkTokens adminPortalLinkTokens; /** @@ -365,6 +368,11 @@ public RoleSets roleSets() { } + public ScimDirectories scimDirectories() { + return scimDirectories; + } + + public AdminPortalLinkTokens adminPortalLinkTokens() { return adminPortalLinkTokens; } @@ -572,6 +580,7 @@ private Clerk(SDKConfiguration sdkConfiguration) { this.billing = new Billing(sdkConfiguration); this.organizationPermissions = new OrganizationPermissions(sdkConfiguration); this.roleSets = new RoleSets(sdkConfiguration); + this.scimDirectories = new ScimDirectories(sdkConfiguration); this.adminPortalLinkTokens = new AdminPortalLinkTokens(sdkConfiguration); this.apiKeys = new APIKeys(sdkConfiguration); this.m2m = new M2m(sdkConfiguration); diff --git a/src/main/java/com/clerk/backend_api/OauthApplications.java b/src/main/java/com/clerk/backend_api/OauthApplications.java index dd70f885..939293e4 100644 --- a/src/main/java/com/clerk/backend_api/OauthApplications.java +++ b/src/main/java/com/clerk/backend_api/OauthApplications.java @@ -17,6 +17,10 @@ import com.clerk.backend_api.models.operations.ListOAuthApplicationsRequest; import com.clerk.backend_api.models.operations.ListOAuthApplicationsRequestBuilder; import com.clerk.backend_api.models.operations.ListOAuthApplicationsResponse; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequest; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequestBody; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequestBuilder; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenResponse; import com.clerk.backend_api.models.operations.RotateOAuthApplicationSecretRequest; import com.clerk.backend_api.models.operations.RotateOAuthApplicationSecretRequestBuilder; import com.clerk.backend_api.models.operations.RotateOAuthApplicationSecretResponse; @@ -32,6 +36,7 @@ import com.clerk.backend_api.operations.DeleteOAuthApplication; import com.clerk.backend_api.operations.GetOAuthApplication; import com.clerk.backend_api.operations.ListOAuthApplications; +import com.clerk.backend_api.operations.RevokeOAuthApplicationToken; import com.clerk.backend_api.operations.RotateOAuthApplicationSecret; import com.clerk.backend_api.operations.UpdateOAuthApplication; import com.clerk.backend_api.operations.UploadOAuthApplicationLogo; @@ -418,4 +423,63 @@ public RotateOAuthApplicationSecretResponse rotateSecret(String oauthApplication return operation.handleResponse(operation.doRequest(request)); } + /** + * Revoke an OAuth application token + * + *

Revoke both OAuth access token and refresh token for the associated grant for the given OAuth + * application. + * The request may specify either token. + * JWT access tokens cannot be revoked. + * + * @return The call builder + */ + public RevokeOAuthApplicationTokenRequestBuilder revokeToken() { + return new RevokeOAuthApplicationTokenRequestBuilder(sdkConfiguration); + } + + /** + * Revoke an OAuth application token + * + *

Revoke both OAuth access token and refresh token for the associated grant for the given OAuth + * application. + * The request may specify either token. + * JWT access tokens cannot be revoked. + * + * @param oauthApplicationId The ID of the OAuth application for which to revoke the token + * @param requestBody + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevokeOAuthApplicationTokenResponse revokeToken(String oauthApplicationId, RevokeOAuthApplicationTokenRequestBody requestBody) { + return revokeToken(oauthApplicationId, requestBody, Optional.empty()); + } + + /** + * Revoke an OAuth application token + * + *

Revoke both OAuth access token and refresh token for the associated grant for the given OAuth + * application. + * The request may specify either token. + * JWT access tokens cannot be revoked. + * + * @param oauthApplicationId The ID of the OAuth application for which to revoke the token + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevokeOAuthApplicationTokenResponse revokeToken( + String oauthApplicationId, RevokeOAuthApplicationTokenRequestBody requestBody, + Optional options) { + RevokeOAuthApplicationTokenRequest request = + RevokeOAuthApplicationTokenRequest + .builder() + .oauthApplicationId(oauthApplicationId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new RevokeOAuthApplicationToken.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + } diff --git a/src/main/java/com/clerk/backend_api/SDKConfiguration.java b/src/main/java/com/clerk/backend_api/SDKConfiguration.java index 4794d32b..17c2ea4a 100644 --- a/src/main/java/com/clerk/backend_api/SDKConfiguration.java +++ b/src/main/java/com/clerk/backend_api/SDKConfiguration.java @@ -16,8 +16,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "2026-05-12"; - public static final String SDK_VERSION = "5.0.0"; - public static final String GEN_VERSION = "2.903.0"; + public static final String SDK_VERSION = "5.0.1"; + public static final String GEN_VERSION = "2.916.2"; private static final String BASE_PACKAGE = "com.clerk.backend_api"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/clerk/backend_api/ScimDirectories.java b/src/main/java/com/clerk/backend_api/ScimDirectories.java new file mode 100644 index 00000000..56c22e5d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/ScimDirectories.java @@ -0,0 +1,565 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryResponse; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequestBuilder; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryResponse; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingRequestBuilder; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryResponse; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesRequest; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesRequestBuilder; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesResponse; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsRequestBuilder; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequestBody; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequestBuilder; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyRequest; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyRequestBuilder; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyResponse; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequestBody; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryResponse; +import com.clerk.backend_api.operations.CreateSCIMDirectory; +import com.clerk.backend_api.operations.CreateSCIMGroupRoleMapping; +import com.clerk.backend_api.operations.DeleteSCIMDirectory; +import com.clerk.backend_api.operations.DeleteSCIMGroupRoleMapping; +import com.clerk.backend_api.operations.GetSCIMDirectory; +import com.clerk.backend_api.operations.ListSCIMDirectories; +import com.clerk.backend_api.operations.ListSCIMGroupRoleMappings; +import com.clerk.backend_api.operations.ReplaceSCIMGroupRoleMappings; +import com.clerk.backend_api.operations.RotateSCIMDirectoryAPIKey; +import com.clerk.backend_api.operations.UpdateSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import java.lang.Long; +import java.lang.String; +import java.util.Optional; + + +public class ScimDirectories { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + + ScimDirectories(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * List all SCIM directories + * + *

Returns a list of all SCIM directories for the instance. + * + * @return The call builder + */ + public ListSCIMDirectoriesRequestBuilder list() { + return new ListSCIMDirectoriesRequestBuilder(sdkConfiguration); + } + + /** + * List all SCIM directories + * + *

Returns a list of all SCIM directories for the instance. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMDirectoriesResponse listDirect() { + return list(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * List all SCIM directories + * + *

Returns a list of all SCIM directories for the instance. + * + * @param limit Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + * @param offset Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMDirectoriesResponse list( + Optional limit, Optional offset, + Optional options) { + ListSCIMDirectoriesRequest request = + ListSCIMDirectoriesRequest + .builder() + .limit(limit) + .offset(offset) + .build(); + RequestOperation operation + = new ListSCIMDirectories.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Create a SCIM directory + * + *

Create a new SCIM directory for the instance. + * + * @return The call builder + */ + public CreateSCIMDirectoryRequestBuilder create() { + return new CreateSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Create a SCIM directory + * + *

Create a new SCIM directory for the instance. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMDirectoryResponse createDirect() { + return create(Optional.empty(), Optional.empty()); + } + + /** + * Create a SCIM directory + * + *

Create a new SCIM directory for the instance. + * + * @param request The request object containing all the parameters for the API call. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMDirectoryResponse create(Optional request, Optional options) { + RequestOperation, CreateSCIMDirectoryResponse> operation + = new CreateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Retrieve a SCIM directory + * + *

Returns the details of a SCIM directory. + * + * @return The call builder + */ + public GetSCIMDirectoryRequestBuilder get() { + return new GetSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Retrieve a SCIM directory + * + *

Returns the details of a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to retrieve + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetSCIMDirectoryResponse get(String scimDirectoryId) { + return get(scimDirectoryId, Optional.empty()); + } + + /** + * Retrieve a SCIM directory + * + *

Returns the details of a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to retrieve + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetSCIMDirectoryResponse get(String scimDirectoryId, Optional options) { + GetSCIMDirectoryRequest request = + GetSCIMDirectoryRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new GetSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Update a SCIM directory + * + *

Updates a SCIM directory. + * + * @return The call builder + */ + public UpdateSCIMDirectoryRequestBuilder update() { + return new UpdateSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Update a SCIM directory + * + *

Updates a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to update + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateSCIMDirectoryResponse update(String scimDirectoryId) { + return update(scimDirectoryId, Optional.empty(), Optional.empty()); + } + + /** + * Update a SCIM directory + * + *

Updates a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to update + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateSCIMDirectoryResponse update( + String scimDirectoryId, Optional requestBody, + Optional options) { + UpdateSCIMDirectoryRequest request = + UpdateSCIMDirectoryRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new UpdateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Delete a SCIM directory + * + *

Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated + * with the directory's API key are rejected afterwards. + * + * @return The call builder + */ + public DeleteSCIMDirectoryRequestBuilder delete() { + return new DeleteSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Delete a SCIM directory + * + *

Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated + * with the directory's API key are rejected afterwards. + * + * @param scimDirectoryId The ID of the SCIM directory to delete + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMDirectoryResponse delete(String scimDirectoryId) { + return delete(scimDirectoryId, Optional.empty()); + } + + /** + * Delete a SCIM directory + * + *

Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated + * with the directory's API key are rejected afterwards. + * + * @param scimDirectoryId The ID of the SCIM directory to delete + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMDirectoryResponse delete(String scimDirectoryId, Optional options) { + DeleteSCIMDirectoryRequest request = + DeleteSCIMDirectoryRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new DeleteSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Rotate a SCIM directory's API key + * + *

Generates a new API key for the SCIM directory and returns it in the `api_key` field. + * This is the only way to obtain the key after creation, so make sure to update it in + * your identity provider. The previous key remains valid for a short grace period before + * it expires. + * + * @return The call builder + */ + public RotateSCIMDirectoryAPIKeyRequestBuilder rotateApiKey() { + return new RotateSCIMDirectoryAPIKeyRequestBuilder(sdkConfiguration); + } + + /** + * Rotate a SCIM directory's API key + * + *

Generates a new API key for the SCIM directory and returns it in the `api_key` field. + * This is the only way to obtain the key after creation, so make sure to update it in + * your identity provider. The previous key remains valid for a short grace period before + * it expires. + * + * @param scimDirectoryId The ID of the SCIM directory whose API key to rotate + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RotateSCIMDirectoryAPIKeyResponse rotateApiKey(String scimDirectoryId) { + return rotateApiKey(scimDirectoryId, Optional.empty()); + } + + /** + * Rotate a SCIM directory's API key + * + *

Generates a new API key for the SCIM directory and returns it in the `api_key` field. + * This is the only way to obtain the key after creation, so make sure to update it in + * your identity provider. The previous key remains valid for a short grace period before + * it expires. + * + * @param scimDirectoryId The ID of the SCIM directory whose API key to rotate + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RotateSCIMDirectoryAPIKeyResponse rotateApiKey(String scimDirectoryId, Optional options) { + RotateSCIMDirectoryAPIKeyRequest request = + RotateSCIMDirectoryAPIKeyRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new RotateSCIMDirectoryAPIKey.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * List SCIM group role mappings + * + *

Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by + * precedence. + * + * @return The call builder + */ + public ListSCIMGroupRoleMappingsRequestBuilder listGroupRoleMappings() { + return new ListSCIMGroupRoleMappingsRequestBuilder(sdkConfiguration); + } + + /** + * List SCIM group role mappings + * + *

Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by + * precedence. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMGroupRoleMappingsResponse listGroupRoleMappings(String scimDirectoryId) { + return listGroupRoleMappings(scimDirectoryId, Optional.empty()); + } + + /** + * List SCIM group role mappings + * + *

Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by + * precedence. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMGroupRoleMappingsResponse listGroupRoleMappings(String scimDirectoryId, Optional options) { + ListSCIMGroupRoleMappingsRequest request = + ListSCIMGroupRoleMappingsRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new ListSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Create a SCIM group role mapping + * + *

Creates a new SCIM group to organization role mapping for a SCIM directory. + * Group role mapping must be enabled on the directory. + * + * @return The call builder + */ + public CreateSCIMGroupRoleMappingRequestBuilder createGroupRoleMapping() { + return new CreateSCIMGroupRoleMappingRequestBuilder(sdkConfiguration); + } + + /** + * Create a SCIM group role mapping + * + *

Creates a new SCIM group to organization role mapping for a SCIM directory. + * Group role mapping must be enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMGroupRoleMappingResponse createGroupRoleMapping(String scimDirectoryId, CreateSCIMGroupRoleMappingRequestBody requestBody) { + return createGroupRoleMapping(scimDirectoryId, requestBody, Optional.empty()); + } + + /** + * Create a SCIM group role mapping + * + *

Creates a new SCIM group to organization role mapping for a SCIM directory. + * Group role mapping must be enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMGroupRoleMappingResponse createGroupRoleMapping( + String scimDirectoryId, CreateSCIMGroupRoleMappingRequestBody requestBody, + Optional options) { + CreateSCIMGroupRoleMappingRequest request = + CreateSCIMGroupRoleMappingRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new CreateSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Replace SCIM group role mappings + * + *

Replaces the entire set of SCIM group role mappings for a directory. The position of + * each item in the `mappings` array determines its precedence (the first item gets + * precedence 1). Passing an empty array removes all mappings. Group role mapping must be + * enabled on the directory. + * + * @return The call builder + */ + public ReplaceSCIMGroupRoleMappingsRequestBuilder replaceGroupRoleMappings() { + return new ReplaceSCIMGroupRoleMappingsRequestBuilder(sdkConfiguration); + } + + /** + * Replace SCIM group role mappings + * + *

Replaces the entire set of SCIM group role mappings for a directory. The position of + * each item in the `mappings` array determines its precedence (the first item gets + * precedence 1). Passing an empty array removes all mappings. Group role mapping must be + * enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReplaceSCIMGroupRoleMappingsResponse replaceGroupRoleMappings(String scimDirectoryId, ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + return replaceGroupRoleMappings(scimDirectoryId, requestBody, Optional.empty()); + } + + /** + * Replace SCIM group role mappings + * + *

Replaces the entire set of SCIM group role mappings for a directory. The position of + * each item in the `mappings` array determines its precedence (the first item gets + * precedence 1). Passing an empty array removes all mappings. Group role mapping must be + * enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReplaceSCIMGroupRoleMappingsResponse replaceGroupRoleMappings( + String scimDirectoryId, ReplaceSCIMGroupRoleMappingsRequestBody requestBody, + Optional options) { + ReplaceSCIMGroupRoleMappingsRequest request = + ReplaceSCIMGroupRoleMappingsRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new ReplaceSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Delete a SCIM group role mapping + * + *

Deletes a single SCIM group role mapping. Group role mapping must be enabled on the + * directory. + * + * @return The call builder + */ + public DeleteSCIMGroupRoleMappingRequestBuilder deleteGroupRoleMapping() { + return new DeleteSCIMGroupRoleMappingRequestBuilder(sdkConfiguration); + } + + /** + * Delete a SCIM group role mapping + * + *

Deletes a single SCIM group role mapping. Group role mapping must be enabled on the + * directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param mappingId The ID of the SCIM group role mapping to delete. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMGroupRoleMappingResponse deleteGroupRoleMapping(String scimDirectoryId, String mappingId) { + return deleteGroupRoleMapping(scimDirectoryId, mappingId, Optional.empty()); + } + + /** + * Delete a SCIM group role mapping + * + *

Deletes a single SCIM group role mapping. Group role mapping must be enabled on the + * directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param mappingId The ID of the SCIM group role mapping to delete. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMGroupRoleMappingResponse deleteGroupRoleMapping( + String scimDirectoryId, String mappingId, + Optional options) { + DeleteSCIMGroupRoleMappingRequest request = + DeleteSCIMGroupRoleMappingRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .mappingId(mappingId) + .build(); + RequestOperation operation + = new DeleteSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + +} diff --git a/src/main/java/com/clerk/backend_api/Users.java b/src/main/java/com/clerk/backend_api/Users.java index 089dac5d..64a19411 100644 --- a/src/main/java/com/clerk/backend_api/Users.java +++ b/src/main/java/com/clerk/backend_api/Users.java @@ -1779,6 +1779,10 @@ public SetUserPasswordCompromisedResponse setPasswordCompromised( *

Sets the given user's password as no longer compromised. The user will no longer be prompted to * reset their password on their next sign-in. * + *

If the user is in reserved-email password quarantine, the quarantine is preserved and the returned + * user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can + * only be cleared by completing a password reset or changing/removing the password. + * * @return The call builder */ public UnsetUserPasswordCompromisedRequestBuilder unsetPasswordCompromised() { @@ -1791,6 +1795,10 @@ public UnsetUserPasswordCompromisedRequestBuilder unsetPasswordCompromised() { *

Sets the given user's password as no longer compromised. The user will no longer be prompted to * reset their password on their next sign-in. * + *

If the user is in reserved-email password quarantine, the quarantine is preserved and the returned + * user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can + * only be cleared by completing a password reset or changing/removing the password. + * * @param userId The ID of the user to unset the compromised status for * @return The response from the API call * @throws RuntimeException subclass if the API call fails @@ -1805,6 +1813,10 @@ public UnsetUserPasswordCompromisedResponse unsetPasswordCompromised(String user *

Sets the given user's password as no longer compromised. The user will no longer be prompted to * reset their password on their next sign-in. * + *

If the user is in reserved-email password quarantine, the quarantine is preserved and the returned + * user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can + * only be cleared by completing a password reset or changing/removing the password. + * * @param userId The ID of the user to unset the compromised status for * @param options additional options * @return The response from the API call diff --git a/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java b/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java index 9e3129ae..ec28242b 100644 --- a/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java @@ -41,7 +41,7 @@ public class BillingPaymentAttemptTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; @JsonInclude(Include.NON_ABSENT) @@ -61,7 +61,7 @@ public BillingPaymentAttemptTotals( @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("credits") JsonNullable credits, @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); @@ -112,8 +112,8 @@ public CommerceMoneyResponse grandTotal() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } @SuppressWarnings("unchecked") @@ -160,14 +160,14 @@ public BillingPaymentAttemptTotals withGrandTotal(CommerceMoneyResponse grandTot return this; } - public BillingPaymentAttemptTotals withPerUnitTotals(List perUnitTotals) { + public BillingPaymentAttemptTotals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public BillingPaymentAttemptTotals withPerUnitTotals(Optional> perUnitTotals) { + public BillingPaymentAttemptTotals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -253,7 +253,7 @@ public final static class Builder { private CommerceMoneyResponse grandTotal; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable credits = JsonNullable.undefined(); @@ -292,13 +292,13 @@ public Builder grandTotal(CommerceMoneyResponse grandTotal) { } - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkError.java b/src/main/java/com/clerk/backend_api/models/components/ClerkError.java index 13355bb0..fea937df 100644 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/ClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class ClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public ClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public ClerkError withCode(String code) { return this; } - public ClerkError withMeta(Meta meta) { + public ClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public ClerkError withMeta(Optional meta) { + public ClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(Meta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java deleted file mode 100644 index 9c08edf5..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorEnterpriseAccountMeta { - @JsonCreator - public ClerkErrorErrorEnterpriseAccountMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorEnterpriseAccountMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorEnterpriseAccountMeta build() { - - return new ClerkErrorErrorEnterpriseAccountMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java deleted file mode 100644 index 8034b5dc..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorEnterpriseAccountVerificationMeta { - @JsonCreator - public ClerkErrorErrorEnterpriseAccountVerificationMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorEnterpriseAccountVerificationMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorEnterpriseAccountVerificationMeta build() { - - return new ClerkErrorErrorEnterpriseAccountVerificationMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java deleted file mode 100644 index 742fe99a..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorExternalAccountWithVerificationMeta { - @JsonCreator - public ClerkErrorErrorExternalAccountWithVerificationMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorExternalAccountWithVerificationMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorExternalAccountWithVerificationMeta build() { - - return new ClerkErrorErrorExternalAccountWithVerificationMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java deleted file mode 100644 index dfbac845..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorExternalAccountWithVerificationVerificationMeta { - @JsonCreator - public ClerkErrorErrorExternalAccountWithVerificationVerificationMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorExternalAccountWithVerificationVerificationMeta build() { - - return new ClerkErrorErrorExternalAccountWithVerificationVerificationMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java deleted file mode 100644 index 66476fdd..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorMeta { - @JsonCreator - public ClerkErrorErrorMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorMeta build() { - - return new ClerkErrorErrorMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java deleted file mode 100644 index 259b3df8..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorSAMLAccountMeta { - @JsonCreator - public ClerkErrorErrorSAMLAccountMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorSAMLAccountMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorSAMLAccountMeta build() { - - return new ClerkErrorErrorSAMLAccountMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java b/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java index 9897c305..9d6d3b31 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; @@ -39,17 +38,9 @@ public class CommerceCreditLedgerResponse { @JsonProperty("payer_id") private String payerId; - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ - @JsonProperty("amount") - private long amount; - /** - * The currency code of the credit adjustment. - */ - @JsonProperty("currency") - private String currency; + @JsonProperty("amount") + private CommerceMoneyResponse amount; /** * The type of source that originated the adjustment (e.g. "grant"). @@ -81,8 +72,7 @@ public CommerceCreditLedgerResponse( @JsonProperty("object") String object, @JsonProperty("id") String id, @JsonProperty("payer_id") String payerId, - @JsonProperty("amount") long amount, - @JsonProperty("currency") String currency, + @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("source_type") String sourceType, @JsonProperty("source_id") String sourceId, @JsonProperty("note") JsonNullable note, @@ -91,7 +81,6 @@ public CommerceCreditLedgerResponse( Utils.checkNotNull(id, "id"); Utils.checkNotNull(payerId, "payerId"); Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); Utils.checkNotNull(sourceType, "sourceType"); Utils.checkNotNull(sourceId, "sourceId"); Utils.checkNotNull(note, "note"); @@ -100,7 +89,6 @@ public CommerceCreditLedgerResponse( this.id = id; this.payerId = payerId; this.amount = amount; - this.currency = currency; this.sourceType = sourceType; this.sourceId = sourceId; this.note = note; @@ -111,14 +99,13 @@ public CommerceCreditLedgerResponse( String object, String id, String payerId, - long amount, - String currency, + CommerceMoneyResponse amount, String sourceType, String sourceId, OffsetDateTime createdAt) { this(object, id, payerId, - amount, currency, sourceType, - sourceId, JsonNullable.undefined(), createdAt); + amount, sourceType, sourceId, + JsonNullable.undefined(), createdAt); } /** @@ -145,22 +132,11 @@ public String payerId() { return payerId; } - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ @JsonIgnore - public long amount() { + public CommerceMoneyResponse amount() { return amount; } - /** - * The currency code of the credit adjustment. - */ - @JsonIgnore - public String currency() { - return currency; - } - /** * The type of source that originated the adjustment (e.g. "grant"). */ @@ -225,24 +201,12 @@ public CommerceCreditLedgerResponse withPayerId(String payerId) { return this; } - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ - public CommerceCreditLedgerResponse withAmount(long amount) { + public CommerceCreditLedgerResponse withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - /** - * The currency code of the credit adjustment. - */ - public CommerceCreditLedgerResponse withCurrency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - /** * The type of source that originated the adjustment (e.g. "grant"). */ @@ -302,7 +266,6 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.payerId, other.payerId) && Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.currency, other.currency) && Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && Utils.enhancedDeepEquals(this.sourceId, other.sourceId) && Utils.enhancedDeepEquals(this.note, other.note) && @@ -313,8 +276,8 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( object, id, payerId, - amount, currency, sourceType, - sourceId, note, createdAt); + amount, sourceType, sourceId, + note, createdAt); } @Override @@ -324,7 +287,6 @@ public String toString() { "id", id, "payerId", payerId, "amount", amount, - "currency", currency, "sourceType", sourceType, "sourceId", sourceId, "note", note, @@ -340,9 +302,7 @@ public final static class Builder { private String payerId; - private Long amount; - - private String currency; + private CommerceMoneyResponse amount; private String sourceType; @@ -387,26 +347,13 @@ public Builder payerId(String payerId) { } - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ - public Builder amount(long amount) { + public Builder amount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - /** - * The currency code of the credit adjustment. - */ - public Builder currency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** * The type of source that originated the adjustment (e.g. "grant"). */ @@ -459,8 +406,8 @@ public CommerceCreditLedgerResponse build() { return new CommerceCreditLedgerResponse( object, id, payerId, - amount, currency, sourceType, - sourceId, note, createdAt); + amount, sourceType, sourceId, + note, createdAt); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java similarity index 81% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java index 1de35538..3d32a069 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java @@ -13,7 +13,7 @@ import java.util.List; -public class SchemasCommercePerUnitTotal { +public class CommercePerUnitTotal2 { /** * Name of the billable unit (for example, seats) */ @@ -30,13 +30,13 @@ public class SchemasCommercePerUnitTotal { * Computed totals for each pricing tier */ @JsonProperty("tiers") - private List tiers; + private List tiers; @JsonCreator - public SchemasCommercePerUnitTotal( + public CommercePerUnitTotal2( @JsonProperty("name") String name, @JsonProperty("block_size") long blockSize, - @JsonProperty("tiers") List tiers) { + @JsonProperty("tiers") List tiers) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(blockSize, "blockSize"); Utils.checkNotNull(tiers, "tiers"); @@ -65,7 +65,7 @@ public long blockSize() { * Computed totals for each pricing tier */ @JsonIgnore - public List tiers() { + public List tiers() { return tiers; } @@ -77,7 +77,7 @@ public static Builder builder() { /** * Name of the billable unit (for example, seats) */ - public SchemasCommercePerUnitTotal withName(String name) { + public CommercePerUnitTotal2 withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -86,7 +86,7 @@ public SchemasCommercePerUnitTotal withName(String name) { /** * Number of units included in each pricing block */ - public SchemasCommercePerUnitTotal withBlockSize(long blockSize) { + public CommercePerUnitTotal2 withBlockSize(long blockSize) { Utils.checkNotNull(blockSize, "blockSize"); this.blockSize = blockSize; return this; @@ -95,7 +95,7 @@ public SchemasCommercePerUnitTotal withBlockSize(long blockSize) { /** * Computed totals for each pricing tier */ - public SchemasCommercePerUnitTotal withTiers(List tiers) { + public CommercePerUnitTotal2 withTiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; @@ -109,7 +109,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePerUnitTotal other = (SchemasCommercePerUnitTotal) o; + CommercePerUnitTotal2 other = (CommercePerUnitTotal2) o; return Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.blockSize, other.blockSize) && @@ -124,7 +124,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePerUnitTotal.class, + return Utils.toString(CommercePerUnitTotal2.class, "name", name, "blockSize", blockSize, "tiers", tiers); @@ -137,7 +137,7 @@ public final static class Builder { private Long blockSize; - private List tiers; + private List tiers; private Builder() { // force use of static builder() method @@ -167,15 +167,15 @@ public Builder blockSize(long blockSize) { /** * Computed totals for each pricing tier */ - public Builder tiers(List tiers) { + public Builder tiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; } - public SchemasCommercePerUnitTotal build() { + public CommercePerUnitTotal2 build() { - return new SchemasCommercePerUnitTotal( + return new CommercePerUnitTotal2( name, blockSize, tiers); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java similarity index 86% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java index d706dcc9..369ac250 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java @@ -15,7 +15,7 @@ import org.openapitools.jackson.nullable.JsonNullable; -public class SchemasCommercePerUnitTotalTier { +public class CommercePerUnitTotalTier2 { /** * Units billed in this tier; null means unlimited */ @@ -32,7 +32,7 @@ public class SchemasCommercePerUnitTotalTier { private CommerceMoneyResponse total; @JsonCreator - public SchemasCommercePerUnitTotalTier( + public CommercePerUnitTotalTier2( @JsonProperty("quantity") JsonNullable quantity, @JsonProperty("fee_per_block") CommerceMoneyResponse feePerBlock, @JsonProperty("total") CommerceMoneyResponse total) { @@ -44,7 +44,7 @@ public SchemasCommercePerUnitTotalTier( this.total = total; } - public SchemasCommercePerUnitTotalTier( + public CommercePerUnitTotalTier2( CommerceMoneyResponse feePerBlock, CommerceMoneyResponse total) { this(JsonNullable.undefined(), feePerBlock, total); @@ -76,7 +76,7 @@ public static Builder builder() { /** * Units billed in this tier; null means unlimited */ - public SchemasCommercePerUnitTotalTier withQuantity(long quantity) { + public CommercePerUnitTotalTier2 withQuantity(long quantity) { Utils.checkNotNull(quantity, "quantity"); this.quantity = JsonNullable.of(quantity); return this; @@ -85,19 +85,19 @@ public SchemasCommercePerUnitTotalTier withQuantity(long quantity) { /** * Units billed in this tier; null means unlimited */ - public SchemasCommercePerUnitTotalTier withQuantity(JsonNullable quantity) { + public CommercePerUnitTotalTier2 withQuantity(JsonNullable quantity) { Utils.checkNotNull(quantity, "quantity"); this.quantity = quantity; return this; } - public SchemasCommercePerUnitTotalTier withFeePerBlock(CommerceMoneyResponse feePerBlock) { + public CommercePerUnitTotalTier2 withFeePerBlock(CommerceMoneyResponse feePerBlock) { Utils.checkNotNull(feePerBlock, "feePerBlock"); this.feePerBlock = feePerBlock; return this; } - public SchemasCommercePerUnitTotalTier withTotal(CommerceMoneyResponse total) { + public CommercePerUnitTotalTier2 withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -111,7 +111,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePerUnitTotalTier other = (SchemasCommercePerUnitTotalTier) o; + CommercePerUnitTotalTier2 other = (CommercePerUnitTotalTier2) o; return Utils.enhancedDeepEquals(this.quantity, other.quantity) && Utils.enhancedDeepEquals(this.feePerBlock, other.feePerBlock) && @@ -126,7 +126,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePerUnitTotalTier.class, + return Utils.toString(CommercePerUnitTotalTier2.class, "quantity", quantity, "feePerBlock", feePerBlock, "total", total); @@ -178,9 +178,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommercePerUnitTotalTier build() { + public CommercePerUnitTotalTier2 build() { - return new SchemasCommercePerUnitTotalTier( + return new CommercePerUnitTotalTier2( quantity, feePerBlock, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java similarity index 87% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java index 7f9afaab..cb1dce84 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java @@ -19,12 +19,12 @@ import org.openapitools.jackson.nullable.JsonNullable; -public class SchemasCommercePlan { +public class CommercePlan2 { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommercePlanObject object; + private CommercePlan2Object object; /** * Unique identifier for the commerce plan. @@ -41,17 +41,17 @@ public class SchemasCommercePlan { @JsonInclude(Include.ALWAYS) @JsonProperty("fee") - private Optional fee; + private Optional fee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_monthly_fee") - private Optional annualMonthlyFee; + private Optional annualMonthlyFee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_fee") - private Optional annualFee; + private Optional annualFee; /** * The amount in cents for the plan. @@ -179,7 +179,7 @@ public class SchemasCommercePlan { * The features included in this plan. */ @JsonProperty("features") - private List features; + private List features; /** * Whether free trial is enabled for this plan. @@ -196,13 +196,13 @@ public class SchemasCommercePlan { private JsonNullable freeTrialDays; @JsonCreator - public SchemasCommercePlan( - @JsonProperty("object") SchemasCommercePlanObject object, + public CommercePlan2( + @JsonProperty("object") CommercePlan2Object object, @JsonProperty("id") String id, @JsonProperty("name") String name, - @JsonProperty("fee") Optional fee, - @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, - @JsonProperty("annual_fee") Optional annualFee, + @JsonProperty("fee") Optional fee, + @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, + @JsonProperty("annual_fee") Optional annualFee, @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("annual_monthly_amount") long annualMonthlyAmount, @@ -223,7 +223,7 @@ public SchemasCommercePlan( @JsonProperty("avatar_url") String avatarUrl, @JsonProperty("period") Optional period, @JsonProperty("interval") Optional interval, - @JsonProperty("features") List features, + @JsonProperty("features") List features, @JsonProperty("free_trial_enabled") Optional freeTrialEnabled, @JsonProperty("free_trial_days") JsonNullable freeTrialDays) { Utils.checkNotNull(object, "object"); @@ -286,8 +286,8 @@ public SchemasCommercePlan( this.freeTrialDays = freeTrialDays; } - public SchemasCommercePlan( - SchemasCommercePlanObject object, + public CommercePlan2( + CommercePlan2Object object, String id, String name, long amount, @@ -308,7 +308,7 @@ public SchemasCommercePlan( String forPayerType, String slug, String avatarUrl, - List features) { + List features) { this(object, id, name, Optional.empty(), Optional.empty(), Optional.empty(), amount, amountFormatted, annualMonthlyAmount, @@ -325,7 +325,7 @@ public SchemasCommercePlan( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommercePlanObject object() { + public CommercePlan2Object object() { return object; } @@ -347,20 +347,20 @@ public String name() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional fee() { - return (Optional) fee; + public Optional fee() { + return (Optional) fee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualMonthlyFee() { - return (Optional) annualMonthlyFee; + public Optional annualMonthlyFee() { + return (Optional) annualMonthlyFee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualFee() { - return (Optional) annualFee; + public Optional annualFee() { + return (Optional) annualFee; } /** @@ -527,7 +527,7 @@ public Optional interval() { * The features included in this plan. */ @JsonIgnore - public List features() { + public List features() { return features; } @@ -555,7 +555,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasCommercePlan withObject(SchemasCommercePlanObject object) { + public CommercePlan2 withObject(CommercePlan2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -564,7 +564,7 @@ public SchemasCommercePlan withObject(SchemasCommercePlanObject object) { /** * Unique identifier for the commerce plan. */ - public SchemasCommercePlan withId(String id) { + public CommercePlan2 withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -573,46 +573,46 @@ public SchemasCommercePlan withId(String id) { /** * The name of the commerce plan. */ - public SchemasCommercePlan withName(String name) { + public CommercePlan2 withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - public SchemasCommercePlan withFee(SchemasCommercePlanFee fee) { + public CommercePlan2 withFee(CommercePlan2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public SchemasCommercePlan withFee(Optional fee) { + public CommercePlan2 withFee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public SchemasCommercePlan withAnnualMonthlyFee(SchemasCommercePlanAnnualMonthlyFee annualMonthlyFee) { + public CommercePlan2 withAnnualMonthlyFee(CommercePlan2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public SchemasCommercePlan withAnnualMonthlyFee(Optional annualMonthlyFee) { + public CommercePlan2 withAnnualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public SchemasCommercePlan withAnnualFee(SchemasCommercePlanAnnualFee annualFee) { + public CommercePlan2 withAnnualFee(CommercePlan2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public SchemasCommercePlan withAnnualFee(Optional annualFee) { + public CommercePlan2 withAnnualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -621,7 +621,7 @@ public SchemasCommercePlan withAnnualFee(Optional payerType) { + public CommercePlan2 withPayerType(List payerType) { Utils.checkNotNull(payerType, "payerType"); this.payerType = payerType; return this; @@ -756,7 +756,7 @@ public SchemasCommercePlan withPayerType(List payerType) { /** * The payer type this plan is designed for. */ - public SchemasCommercePlan withForPayerType(String forPayerType) { + public CommercePlan2 withForPayerType(String forPayerType) { Utils.checkNotNull(forPayerType, "forPayerType"); this.forPayerType = forPayerType; return this; @@ -765,7 +765,7 @@ public SchemasCommercePlan withForPayerType(String forPayerType) { /** * The URL-friendly slug for the plan. */ - public SchemasCommercePlan withSlug(String slug) { + public CommercePlan2 withSlug(String slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -774,7 +774,7 @@ public SchemasCommercePlan withSlug(String slug) { /** * The URL of the plan's avatar image. */ - public SchemasCommercePlan withAvatarUrl(String avatarUrl) { + public CommercePlan2 withAvatarUrl(String avatarUrl) { Utils.checkNotNull(avatarUrl, "avatarUrl"); this.avatarUrl = avatarUrl; return this; @@ -783,7 +783,7 @@ public SchemasCommercePlan withAvatarUrl(String avatarUrl) { /** * The billing period for the plan. */ - public SchemasCommercePlan withPeriod(String period) { + public CommercePlan2 withPeriod(String period) { Utils.checkNotNull(period, "period"); this.period = Optional.ofNullable(period); return this; @@ -793,7 +793,7 @@ public SchemasCommercePlan withPeriod(String period) { /** * The billing period for the plan. */ - public SchemasCommercePlan withPeriod(Optional period) { + public CommercePlan2 withPeriod(Optional period) { Utils.checkNotNull(period, "period"); this.period = period; return this; @@ -802,7 +802,7 @@ public SchemasCommercePlan withPeriod(Optional period) { /** * The billing interval. */ - public SchemasCommercePlan withInterval(long interval) { + public CommercePlan2 withInterval(long interval) { Utils.checkNotNull(interval, "interval"); this.interval = Optional.ofNullable(interval); return this; @@ -812,7 +812,7 @@ public SchemasCommercePlan withInterval(long interval) { /** * The billing interval. */ - public SchemasCommercePlan withInterval(Optional interval) { + public CommercePlan2 withInterval(Optional interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -821,7 +821,7 @@ public SchemasCommercePlan withInterval(Optional interval) { /** * The features included in this plan. */ - public SchemasCommercePlan withFeatures(List features) { + public CommercePlan2 withFeatures(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -830,7 +830,7 @@ public SchemasCommercePlan withFeatures(List features) { /** * Whether free trial is enabled for this plan. */ - public SchemasCommercePlan withFreeTrialEnabled(boolean freeTrialEnabled) { + public CommercePlan2 withFreeTrialEnabled(boolean freeTrialEnabled) { Utils.checkNotNull(freeTrialEnabled, "freeTrialEnabled"); this.freeTrialEnabled = Optional.ofNullable(freeTrialEnabled); return this; @@ -840,7 +840,7 @@ public SchemasCommercePlan withFreeTrialEnabled(boolean freeTrialEnabled) { /** * Whether free trial is enabled for this plan. */ - public SchemasCommercePlan withFreeTrialEnabled(Optional freeTrialEnabled) { + public CommercePlan2 withFreeTrialEnabled(Optional freeTrialEnabled) { Utils.checkNotNull(freeTrialEnabled, "freeTrialEnabled"); this.freeTrialEnabled = freeTrialEnabled; return this; @@ -849,7 +849,7 @@ public SchemasCommercePlan withFreeTrialEnabled(Optional freeTrialEnabl /** * Number of free trial days for this plan. */ - public SchemasCommercePlan withFreeTrialDays(long freeTrialDays) { + public CommercePlan2 withFreeTrialDays(long freeTrialDays) { Utils.checkNotNull(freeTrialDays, "freeTrialDays"); this.freeTrialDays = JsonNullable.of(freeTrialDays); return this; @@ -858,7 +858,7 @@ public SchemasCommercePlan withFreeTrialDays(long freeTrialDays) { /** * Number of free trial days for this plan. */ - public SchemasCommercePlan withFreeTrialDays(JsonNullable freeTrialDays) { + public CommercePlan2 withFreeTrialDays(JsonNullable freeTrialDays) { Utils.checkNotNull(freeTrialDays, "freeTrialDays"); this.freeTrialDays = freeTrialDays; return this; @@ -872,7 +872,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlan other = (SchemasCommercePlan) o; + CommercePlan2 other = (CommercePlan2) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -922,7 +922,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlan.class, + return Utils.toString(CommercePlan2.class, "object", object, "id", id, "name", name, @@ -957,17 +957,17 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommercePlanObject object; + private CommercePlan2Object object; private String id; private String name; - private Optional fee = Optional.empty(); + private Optional fee = Optional.empty(); - private Optional annualMonthlyFee = Optional.empty(); + private Optional annualMonthlyFee = Optional.empty(); - private Optional annualFee = Optional.empty(); + private Optional annualFee = Optional.empty(); private Long amount; @@ -1009,7 +1009,7 @@ public final static class Builder { private Optional interval = Optional.empty(); - private List features; + private List features; private Optional freeTrialEnabled = Optional.empty(); @@ -1023,7 +1023,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommercePlanObject object) { + public Builder object(CommercePlan2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -1050,39 +1050,39 @@ public Builder name(String name) { } - public Builder fee(SchemasCommercePlanFee fee) { + public Builder fee(CommercePlan2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public Builder fee(Optional fee) { + public Builder fee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public Builder annualMonthlyFee(SchemasCommercePlanAnnualMonthlyFee annualMonthlyFee) { + public Builder annualMonthlyFee(CommercePlan2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public Builder annualMonthlyFee(Optional annualMonthlyFee) { + public Builder annualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public Builder annualFee(SchemasCommercePlanAnnualFee annualFee) { + public Builder annualFee(CommercePlan2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public Builder annualFee(Optional annualFee) { + public Builder annualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -1310,7 +1310,7 @@ public Builder interval(Optional interval) { /** * The features included in this plan. */ - public Builder features(List features) { + public Builder features(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -1354,9 +1354,9 @@ public Builder freeTrialDays(JsonNullable freeTrialDays) { return this; } - public SchemasCommercePlan build() { + public CommercePlan2 build() { - return new SchemasCommercePlan( + return new CommercePlan2( object, id, name, fee, annualMonthlyFee, annualFee, amount, amountFormatted, annualMonthlyAmount, diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java similarity index 90% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java index 56fc4d80..557a29a8 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommercePlanFee { +public class CommercePlan2AnnualFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommercePlanFee { private String currencySymbol; @JsonCreator - public SchemasCommercePlanFee( + public CommercePlan2AnnualFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommercePlanFee withAmount(long amount) { + public CommercePlan2AnnualFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommercePlanFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommercePlanFee withAmountFormatted(String amountFormatted) { + public CommercePlan2AnnualFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommercePlanFee withAmountFormatted(String amountFormatted) { /** * The currency code (e.g., "USD"). */ - public SchemasCommercePlanFee withCurrency(String currency) { + public CommercePlan2AnnualFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommercePlanFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommercePlanFee withCurrencySymbol(String currencySymbol) { + public CommercePlan2AnnualFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlanFee other = (SchemasCommercePlanFee) o; + CommercePlan2AnnualFee other = (CommercePlan2AnnualFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlanFee.class, + return Utils.toString(CommercePlan2AnnualFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommercePlanFee build() { + public CommercePlan2AnnualFee build() { - return new SchemasCommercePlanFee( + return new CommercePlan2AnnualFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java similarity index 88% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java index e794b899..629d5176 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommercePlanAnnualMonthlyFee { +public class CommercePlan2AnnualMonthlyFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommercePlanAnnualMonthlyFee { private String currencySymbol; @JsonCreator - public SchemasCommercePlanAnnualMonthlyFee( + public CommercePlan2AnnualMonthlyFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommercePlanAnnualMonthlyFee withAmount(long amount) { + public CommercePlan2AnnualMonthlyFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommercePlanAnnualMonthlyFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommercePlanAnnualMonthlyFee withAmountFormatted(String amountFormatted) { + public CommercePlan2AnnualMonthlyFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommercePlanAnnualMonthlyFee withAmountFormatted(String amountForm /** * The currency code (e.g., "USD"). */ - public SchemasCommercePlanAnnualMonthlyFee withCurrency(String currency) { + public CommercePlan2AnnualMonthlyFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommercePlanAnnualMonthlyFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommercePlanAnnualMonthlyFee withCurrencySymbol(String currencySymbol) { + public CommercePlan2AnnualMonthlyFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlanAnnualMonthlyFee other = (SchemasCommercePlanAnnualMonthlyFee) o; + CommercePlan2AnnualMonthlyFee other = (CommercePlan2AnnualMonthlyFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlanAnnualMonthlyFee.class, + return Utils.toString(CommercePlan2AnnualMonthlyFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommercePlanAnnualMonthlyFee build() { + public CommercePlan2AnnualMonthlyFee build() { - return new SchemasCommercePlanAnnualMonthlyFee( + return new CommercePlan2AnnualMonthlyFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java new file mode 100644 index 00000000..eafd8542 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java @@ -0,0 +1,224 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + + +public class CommercePlan2Fee { + /** + * The amount in cents. + */ + @JsonProperty("amount") + private long amount; + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonProperty("amount_formatted") + private String amountFormatted; + + /** + * The currency code (e.g., "USD"). + */ + @JsonProperty("currency") + private String currency; + + /** + * The currency symbol (e.g., "$"). + */ + @JsonProperty("currency_symbol") + private String currencySymbol; + + @JsonCreator + public CommercePlan2Fee( + @JsonProperty("amount") long amount, + @JsonProperty("amount_formatted") String amountFormatted, + @JsonProperty("currency") String currency, + @JsonProperty("currency_symbol") String currencySymbol) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(amountFormatted, "amountFormatted"); + Utils.checkNotNull(currency, "currency"); + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.amount = amount; + this.amountFormatted = amountFormatted; + this.currency = currency; + this.currencySymbol = currencySymbol; + } + + /** + * The amount in cents. + */ + @JsonIgnore + public long amount() { + return amount; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonIgnore + public String amountFormatted() { + return amountFormatted; + } + + /** + * The currency code (e.g., "USD"). + */ + @JsonIgnore + public String currency() { + return currency; + } + + /** + * The currency symbol (e.g., "$"). + */ + @JsonIgnore + public String currencySymbol() { + return currencySymbol; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The amount in cents. + */ + public CommercePlan2Fee withAmount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public CommercePlan2Fee withAmountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + /** + * The currency code (e.g., "USD"). + */ + public CommercePlan2Fee withCurrency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + /** + * The currency symbol (e.g., "$"). + */ + public CommercePlan2Fee withCurrencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CommercePlan2Fee other = (CommercePlan2Fee) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && + Utils.enhancedDeepEquals(this.currency, other.currency) && + Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, amountFormatted, currency, + currencySymbol); + } + + @Override + public String toString() { + return Utils.toString(CommercePlan2Fee.class, + "amount", amount, + "amountFormatted", amountFormatted, + "currency", currency, + "currencySymbol", currencySymbol); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Long amount; + + private String amountFormatted; + + private String currency; + + private String currencySymbol; + + private Builder() { + // force use of static builder() method + } + + + /** + * The amount in cents. + */ + public Builder amount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public Builder amountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + + /** + * The currency code (e.g., "USD"). + */ + public Builder currency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + + /** + * The currency symbol (e.g., "$"). + */ + public Builder currencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + public CommercePlan2Fee build() { + + return new CommercePlan2Fee( + amount, amountFormatted, currency, + currencySymbol); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java similarity index 71% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java index ac1736cc..eeb0f31b 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommercePlanObject + * CommercePlan2Object * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommercePlanObject { +public enum CommercePlan2Object { COMMERCE_PLAN("commerce_plan"); @JsonValue private final String value; - SchemasCommercePlanObject(String value) { + CommercePlan2Object(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommercePlanObject o: SchemasCommercePlanObject.values()) { + public static Optional fromValue(String value) { + for (CommercePlan2Object o: CommercePlan2Object.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java index 31c56a5b..9f0b50b7 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java @@ -20,7 +20,7 @@ public class CommercePriceTransitionDetails { @JsonProperty("previous_plan") - private SchemasCommercePlan previousPlan; + private CommercePlan2 previousPlan; @JsonProperty("previous_price") @@ -72,7 +72,7 @@ public class CommercePriceTransitionDetails { @JsonCreator public CommercePriceTransitionDetails( - @JsonProperty("previous_plan") SchemasCommercePlan previousPlan, + @JsonProperty("previous_plan") CommercePlan2 previousPlan, @JsonProperty("previous_price") BillingPriceResponse previousPrice, @JsonProperty("effective_at") long effectiveAt, @JsonProperty("effective_mode") EffectiveMode effectiveMode, @@ -102,7 +102,7 @@ public CommercePriceTransitionDetails( } public CommercePriceTransitionDetails( - SchemasCommercePlan previousPlan, + CommercePlan2 previousPlan, BillingPriceResponse previousPrice, long effectiveAt, EffectiveMode effectiveMode, @@ -115,7 +115,7 @@ public CommercePriceTransitionDetails( } @JsonIgnore - public SchemasCommercePlan previousPlan() { + public CommercePlan2 previousPlan() { return previousPlan; } @@ -186,7 +186,7 @@ public static Builder builder() { } - public CommercePriceTransitionDetails withPreviousPlan(SchemasCommercePlan previousPlan) { + public CommercePriceTransitionDetails withPreviousPlan(CommercePlan2 previousPlan) { Utils.checkNotNull(previousPlan, "previousPlan"); this.previousPlan = previousPlan; return this; @@ -325,7 +325,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommercePlan previousPlan; + private CommercePlan2 previousPlan; private BillingPriceResponse previousPrice; @@ -348,7 +348,7 @@ private Builder() { } - public Builder previousPlan(SchemasCommercePlan previousPlan) { + public Builder previousPlan(CommercePlan2 previousPlan) { Utils.checkNotNull(previousPlan, "previousPlan"); this.previousPlan = previousPlan; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java index 68e238e0..f67bdc30 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java @@ -24,7 +24,7 @@ public class CommercePriceTransitionResponse { @JsonProperty("subscription_item") - private SchemasCommerceSubscriptionItem subscriptionItem; + private CommerceSubscriptionItem2 subscriptionItem; @JsonProperty("transition") @@ -33,7 +33,7 @@ public class CommercePriceTransitionResponse { @JsonCreator public CommercePriceTransitionResponse( @JsonProperty("object") CommercePriceTransitionResponseObject object, - @JsonProperty("subscription_item") SchemasCommerceSubscriptionItem subscriptionItem, + @JsonProperty("subscription_item") CommerceSubscriptionItem2 subscriptionItem, @JsonProperty("transition") CommercePriceTransitionDetails transition) { Utils.checkNotNull(object, "object"); Utils.checkNotNull(subscriptionItem, "subscriptionItem"); @@ -52,7 +52,7 @@ public CommercePriceTransitionResponseObject object() { } @JsonIgnore - public SchemasCommerceSubscriptionItem subscriptionItem() { + public CommerceSubscriptionItem2 subscriptionItem() { return subscriptionItem; } @@ -75,7 +75,7 @@ public CommercePriceTransitionResponse withObject(CommercePriceTransitionRespons return this; } - public CommercePriceTransitionResponse withSubscriptionItem(SchemasCommerceSubscriptionItem subscriptionItem) { + public CommercePriceTransitionResponse withSubscriptionItem(CommerceSubscriptionItem2 subscriptionItem) { Utils.checkNotNull(subscriptionItem, "subscriptionItem"); this.subscriptionItem = subscriptionItem; return this; @@ -121,7 +121,7 @@ public final static class Builder { private CommercePriceTransitionResponseObject object; - private SchemasCommerceSubscriptionItem subscriptionItem; + private CommerceSubscriptionItem2 subscriptionItem; private CommercePriceTransitionDetails transition; @@ -140,7 +140,7 @@ public Builder object(CommercePriceTransitionResponseObject object) { } - public Builder subscriptionItem(SchemasCommerceSubscriptionItem subscriptionItem) { + public Builder subscriptionItem(CommerceSubscriptionItem2 subscriptionItem) { Utils.checkNotNull(subscriptionItem, "subscriptionItem"); this.subscriptionItem = subscriptionItem; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java similarity index 84% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java index 1e546859..ed8336cd 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java @@ -18,16 +18,16 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItem + * CommerceSubscriptionItem2 * *

A commerce subscription item. */ -public class SchemasCommerceSubscriptionItem { +public class CommerceSubscriptionItem2 { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemObject object; + private CommerceSubscriptionItem2Object object; /** * Unique identifier for the subscription item. @@ -45,7 +45,7 @@ public class SchemasCommerceSubscriptionItem { * Current status of the subscription item. */ @JsonProperty("status") - private SchemasCommerceSubscriptionItemStatus status; + private CommerceSubscriptionItem2Status status; /** * Credit information (only available in PaymentAttempt events). @@ -72,13 +72,13 @@ public class SchemasCommerceSubscriptionItem { */ @JsonInclude(Include.ALWAYS) @JsonProperty("plan") - private Optional plan; + private Optional plan; /** * The billing period for this subscription. */ @JsonProperty("plan_period") - private SchemasCommerceSubscriptionItemPlanPeriod planPeriod; + private CommerceSubscriptionItem2PlanPeriod planPeriod; /** * Unique identifier for the payment source. @@ -105,7 +105,7 @@ public class SchemasCommerceSubscriptionItem { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Information about the next invoice. @@ -119,7 +119,7 @@ public class SchemasCommerceSubscriptionItem { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("next_payment") - private JsonNullable nextPayment; + private JsonNullable nextPayment; /** * Unique identifier for the payer. @@ -194,22 +194,22 @@ public class SchemasCommerceSubscriptionItem { private long updatedAt; @JsonCreator - public SchemasCommerceSubscriptionItem( - @JsonProperty("object") SchemasCommerceSubscriptionItemObject object, + public CommerceSubscriptionItem2( + @JsonProperty("object") CommerceSubscriptionItem2Object object, @JsonProperty("id") String id, @JsonProperty("instance_id") String instanceId, - @JsonProperty("status") SchemasCommerceSubscriptionItemStatus status, + @JsonProperty("status") CommerceSubscriptionItem2Status status, @JsonProperty("credit") JsonNullable credit, @JsonProperty("plan_id") String planId, @JsonProperty("price_id") Optional priceId, - @JsonProperty("plan") Optional plan, - @JsonProperty("plan_period") SchemasCommerceSubscriptionItemPlanPeriod planPeriod, + @JsonProperty("plan") Optional plan, + @JsonProperty("plan_period") CommerceSubscriptionItem2PlanPeriod planPeriod, @JsonProperty("payment_source_id") String paymentSourceId, @JsonProperty("payment_source") JsonNullable paymentSource, @JsonProperty("lifetime_paid") JsonNullable lifetimePaid, - @JsonProperty("amount") JsonNullable amount, + @JsonProperty("amount") JsonNullable amount, @JsonProperty("next_invoice") JsonNullable nextInvoice, - @JsonProperty("next_payment") JsonNullable nextPayment, + @JsonProperty("next_payment") JsonNullable nextPayment, @JsonProperty("payer_id") String payerId, @JsonProperty("payer") JsonNullable payer, @JsonProperty("is_free_trial") boolean isFreeTrial, @@ -275,13 +275,13 @@ public SchemasCommerceSubscriptionItem( this.updatedAt = updatedAt; } - public SchemasCommerceSubscriptionItem( - SchemasCommerceSubscriptionItemObject object, + public CommerceSubscriptionItem2( + CommerceSubscriptionItem2Object object, String id, String instanceId, - SchemasCommerceSubscriptionItemStatus status, + CommerceSubscriptionItem2Status status, String planId, - SchemasCommerceSubscriptionItemPlanPeriod planPeriod, + CommerceSubscriptionItem2PlanPeriod planPeriod, String paymentSourceId, String payerId, boolean isFreeTrial, @@ -303,7 +303,7 @@ public SchemasCommerceSubscriptionItem( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemObject object() { + public CommerceSubscriptionItem2Object object() { return object; } @@ -327,7 +327,7 @@ public String instanceId() { * Current status of the subscription item. */ @JsonIgnore - public SchemasCommerceSubscriptionItemStatus status() { + public CommerceSubscriptionItem2Status status() { return status; } @@ -361,15 +361,15 @@ public Optional priceId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional plan() { - return (Optional) plan; + public Optional plan() { + return (Optional) plan; } /** * The billing period for this subscription. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPlanPeriod planPeriod() { + public CommerceSubscriptionItem2PlanPeriod planPeriod() { return planPeriod; } @@ -404,8 +404,8 @@ public JsonNullable lifetimePaid() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -422,8 +422,8 @@ public JsonNullable nextInvoice() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable nextPayment() { - return (JsonNullable) nextPayment; + public JsonNullable nextPayment() { + return (JsonNullable) nextPayment; } /** @@ -523,7 +523,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasCommerceSubscriptionItem withObject(SchemasCommerceSubscriptionItemObject object) { + public CommerceSubscriptionItem2 withObject(CommerceSubscriptionItem2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -532,7 +532,7 @@ public SchemasCommerceSubscriptionItem withObject(SchemasCommerceSubscriptionIte /** * Unique identifier for the subscription item. */ - public SchemasCommerceSubscriptionItem withId(String id) { + public CommerceSubscriptionItem2 withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -541,7 +541,7 @@ public SchemasCommerceSubscriptionItem withId(String id) { /** * Unique identifier for the Clerk instance. */ - public SchemasCommerceSubscriptionItem withInstanceId(String instanceId) { + public CommerceSubscriptionItem2 withInstanceId(String instanceId) { Utils.checkNotNull(instanceId, "instanceId"); this.instanceId = instanceId; return this; @@ -550,7 +550,7 @@ public SchemasCommerceSubscriptionItem withInstanceId(String instanceId) { /** * Current status of the subscription item. */ - public SchemasCommerceSubscriptionItem withStatus(SchemasCommerceSubscriptionItemStatus status) { + public CommerceSubscriptionItem2 withStatus(CommerceSubscriptionItem2Status status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -559,7 +559,7 @@ public SchemasCommerceSubscriptionItem withStatus(SchemasCommerceSubscriptionIte /** * Credit information (only available in PaymentAttempt events). */ - public SchemasCommerceSubscriptionItem withCredit(Credit credit) { + public CommerceSubscriptionItem2 withCredit(Credit credit) { Utils.checkNotNull(credit, "credit"); this.credit = JsonNullable.of(credit); return this; @@ -568,7 +568,7 @@ public SchemasCommerceSubscriptionItem withCredit(Credit credit) { /** * Credit information (only available in PaymentAttempt events). */ - public SchemasCommerceSubscriptionItem withCredit(JsonNullable credit) { + public CommerceSubscriptionItem2 withCredit(JsonNullable credit) { Utils.checkNotNull(credit, "credit"); this.credit = credit; return this; @@ -577,7 +577,7 @@ public SchemasCommerceSubscriptionItem withCredit(JsonNullable /** * Unique identifier for the associated plan. */ - public SchemasCommerceSubscriptionItem withPlanId(String planId) { + public CommerceSubscriptionItem2 withPlanId(String planId) { Utils.checkNotNull(planId, "planId"); this.planId = planId; return this; @@ -586,7 +586,7 @@ public SchemasCommerceSubscriptionItem withPlanId(String planId) { /** * Unique identifier for the associated price */ - public SchemasCommerceSubscriptionItem withPriceId(String priceId) { + public CommerceSubscriptionItem2 withPriceId(String priceId) { Utils.checkNotNull(priceId, "priceId"); this.priceId = Optional.ofNullable(priceId); return this; @@ -596,7 +596,7 @@ public SchemasCommerceSubscriptionItem withPriceId(String priceId) { /** * Unique identifier for the associated price */ - public SchemasCommerceSubscriptionItem withPriceId(Optional priceId) { + public CommerceSubscriptionItem2 withPriceId(Optional priceId) { Utils.checkNotNull(priceId, "priceId"); this.priceId = priceId; return this; @@ -605,7 +605,7 @@ public SchemasCommerceSubscriptionItem withPriceId(Optional priceId) { /** * The associated commerce plan. */ - public SchemasCommerceSubscriptionItem withPlan(SchemasCommerceSubscriptionItemPlan plan) { + public CommerceSubscriptionItem2 withPlan(CommerceSubscriptionItem2Plan plan) { Utils.checkNotNull(plan, "plan"); this.plan = Optional.ofNullable(plan); return this; @@ -615,7 +615,7 @@ public SchemasCommerceSubscriptionItem withPlan(SchemasCommerceSubscriptionItemP /** * The associated commerce plan. */ - public SchemasCommerceSubscriptionItem withPlan(Optional plan) { + public CommerceSubscriptionItem2 withPlan(Optional plan) { Utils.checkNotNull(plan, "plan"); this.plan = plan; return this; @@ -624,7 +624,7 @@ public SchemasCommerceSubscriptionItem withPlan(Optional paymentSource) { + public CommerceSubscriptionItem2 withPaymentSource(JsonNullable paymentSource) { Utils.checkNotNull(paymentSource, "paymentSource"); this.paymentSource = paymentSource; return this; @@ -660,7 +660,7 @@ public SchemasCommerceSubscriptionItem withPaymentSource(JsonNullable lifetimePaid) { + public CommerceSubscriptionItem2 withLifetimePaid(JsonNullable lifetimePaid) { Utils.checkNotNull(lifetimePaid, "lifetimePaid"); this.lifetimePaid = lifetimePaid; return this; @@ -678,7 +678,7 @@ public SchemasCommerceSubscriptionItem withLifetimePaid(JsonNullable amount) { + public CommerceSubscriptionItem2 withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -696,7 +696,7 @@ public SchemasCommerceSubscriptionItem withAmount(JsonNullable nextInvoice) { + public CommerceSubscriptionItem2 withNextInvoice(JsonNullable nextInvoice) { Utils.checkNotNull(nextInvoice, "nextInvoice"); this.nextInvoice = nextInvoice; return this; @@ -714,7 +714,7 @@ public SchemasCommerceSubscriptionItem withNextInvoice(JsonNullable nextPayment) { + public CommerceSubscriptionItem2 withNextPayment(JsonNullable nextPayment) { Utils.checkNotNull(nextPayment, "nextPayment"); this.nextPayment = nextPayment; return this; @@ -732,7 +732,7 @@ public SchemasCommerceSubscriptionItem withNextPayment(JsonNullable payer) { + public CommerceSubscriptionItem2 withPayer(JsonNullable payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; @@ -759,7 +759,7 @@ public SchemasCommerceSubscriptionItem withPayer(JsonNullable p /** * Whether this subscription is currently on a free trial. */ - public SchemasCommerceSubscriptionItem withIsFreeTrial(boolean isFreeTrial) { + public CommerceSubscriptionItem2 withIsFreeTrial(boolean isFreeTrial) { Utils.checkNotNull(isFreeTrial, "isFreeTrial"); this.isFreeTrial = isFreeTrial; return this; @@ -768,7 +768,7 @@ public SchemasCommerceSubscriptionItem withIsFreeTrial(boolean isFreeTrial) { /** * Unix timestamp (in milliseconds) when the current period started. */ - public SchemasCommerceSubscriptionItem withPeriodStart(long periodStart) { + public CommerceSubscriptionItem2 withPeriodStart(long periodStart) { Utils.checkNotNull(periodStart, "periodStart"); this.periodStart = JsonNullable.of(periodStart); return this; @@ -777,7 +777,7 @@ public SchemasCommerceSubscriptionItem withPeriodStart(long periodStart) { /** * Unix timestamp (in milliseconds) when the current period started. */ - public SchemasCommerceSubscriptionItem withPeriodStart(JsonNullable periodStart) { + public CommerceSubscriptionItem2 withPeriodStart(JsonNullable periodStart) { Utils.checkNotNull(periodStart, "periodStart"); this.periodStart = periodStart; return this; @@ -786,7 +786,7 @@ public SchemasCommerceSubscriptionItem withPeriodStart(JsonNullable period /** * Unix timestamp (in milliseconds) when the current period ends. */ - public SchemasCommerceSubscriptionItem withPeriodEnd(long periodEnd) { + public CommerceSubscriptionItem2 withPeriodEnd(long periodEnd) { Utils.checkNotNull(periodEnd, "periodEnd"); this.periodEnd = JsonNullable.of(periodEnd); return this; @@ -795,7 +795,7 @@ public SchemasCommerceSubscriptionItem withPeriodEnd(long periodEnd) { /** * Unix timestamp (in milliseconds) when the current period ends. */ - public SchemasCommerceSubscriptionItem withPeriodEnd(JsonNullable periodEnd) { + public CommerceSubscriptionItem2 withPeriodEnd(JsonNullable periodEnd) { Utils.checkNotNull(periodEnd, "periodEnd"); this.periodEnd = periodEnd; return this; @@ -804,7 +804,7 @@ public SchemasCommerceSubscriptionItem withPeriodEnd(JsonNullable periodEn /** * Date used for proration calculations. */ - public SchemasCommerceSubscriptionItem withProrationDate(String prorationDate) { + public CommerceSubscriptionItem2 withProrationDate(String prorationDate) { Utils.checkNotNull(prorationDate, "prorationDate"); this.prorationDate = prorationDate; return this; @@ -813,7 +813,7 @@ public SchemasCommerceSubscriptionItem withProrationDate(String prorationDate) { /** * Unix timestamp (in milliseconds) when the subscription was canceled. */ - public SchemasCommerceSubscriptionItem withCanceledAt(long canceledAt) { + public CommerceSubscriptionItem2 withCanceledAt(long canceledAt) { Utils.checkNotNull(canceledAt, "canceledAt"); this.canceledAt = JsonNullable.of(canceledAt); return this; @@ -822,7 +822,7 @@ public SchemasCommerceSubscriptionItem withCanceledAt(long canceledAt) { /** * Unix timestamp (in milliseconds) when the subscription was canceled. */ - public SchemasCommerceSubscriptionItem withCanceledAt(JsonNullable canceledAt) { + public CommerceSubscriptionItem2 withCanceledAt(JsonNullable canceledAt) { Utils.checkNotNull(canceledAt, "canceledAt"); this.canceledAt = canceledAt; return this; @@ -831,7 +831,7 @@ public SchemasCommerceSubscriptionItem withCanceledAt(JsonNullable cancele /** * Unix timestamp (in milliseconds) when the subscription became past due. */ - public SchemasCommerceSubscriptionItem withPastDueAt(long pastDueAt) { + public CommerceSubscriptionItem2 withPastDueAt(long pastDueAt) { Utils.checkNotNull(pastDueAt, "pastDueAt"); this.pastDueAt = JsonNullable.of(pastDueAt); return this; @@ -840,7 +840,7 @@ public SchemasCommerceSubscriptionItem withPastDueAt(long pastDueAt) { /** * Unix timestamp (in milliseconds) when the subscription became past due. */ - public SchemasCommerceSubscriptionItem withPastDueAt(JsonNullable pastDueAt) { + public CommerceSubscriptionItem2 withPastDueAt(JsonNullable pastDueAt) { Utils.checkNotNull(pastDueAt, "pastDueAt"); this.pastDueAt = pastDueAt; return this; @@ -849,7 +849,7 @@ public SchemasCommerceSubscriptionItem withPastDueAt(JsonNullable pastDueA /** * Unix timestamp (in milliseconds) when the subscription ended. */ - public SchemasCommerceSubscriptionItem withEndedAt(long endedAt) { + public CommerceSubscriptionItem2 withEndedAt(long endedAt) { Utils.checkNotNull(endedAt, "endedAt"); this.endedAt = JsonNullable.of(endedAt); return this; @@ -858,7 +858,7 @@ public SchemasCommerceSubscriptionItem withEndedAt(long endedAt) { /** * Unix timestamp (in milliseconds) when the subscription ended. */ - public SchemasCommerceSubscriptionItem withEndedAt(JsonNullable endedAt) { + public CommerceSubscriptionItem2 withEndedAt(JsonNullable endedAt) { Utils.checkNotNull(endedAt, "endedAt"); this.endedAt = endedAt; return this; @@ -867,7 +867,7 @@ public SchemasCommerceSubscriptionItem withEndedAt(JsonNullable endedAt) { /** * Unix timestamp (in milliseconds) when the subscription was created. */ - public SchemasCommerceSubscriptionItem withCreatedAt(long createdAt) { + public CommerceSubscriptionItem2 withCreatedAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -876,7 +876,7 @@ public SchemasCommerceSubscriptionItem withCreatedAt(long createdAt) { /** * Unix timestamp (in milliseconds) when the subscription was last updated. */ - public SchemasCommerceSubscriptionItem withUpdatedAt(long updatedAt) { + public CommerceSubscriptionItem2 withUpdatedAt(long updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -890,7 +890,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItem other = (SchemasCommerceSubscriptionItem) o; + CommerceSubscriptionItem2 other = (CommerceSubscriptionItem2) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -936,7 +936,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItem.class, + return Utils.toString(CommerceSubscriptionItem2.class, "object", object, "id", id, "instanceId", instanceId, @@ -968,13 +968,13 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemObject object; + private CommerceSubscriptionItem2Object object; private String id; private String instanceId; - private SchemasCommerceSubscriptionItemStatus status; + private CommerceSubscriptionItem2Status status; private JsonNullable credit = JsonNullable.undefined(); @@ -982,9 +982,9 @@ public final static class Builder { private Optional priceId = Optional.empty(); - private Optional plan = Optional.empty(); + private Optional plan = Optional.empty(); - private SchemasCommerceSubscriptionItemPlanPeriod planPeriod; + private CommerceSubscriptionItem2PlanPeriod planPeriod; private String paymentSourceId; @@ -992,11 +992,11 @@ public final static class Builder { private JsonNullable lifetimePaid = JsonNullable.undefined(); - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private JsonNullable nextInvoice = JsonNullable.undefined(); - private JsonNullable nextPayment = JsonNullable.undefined(); + private JsonNullable nextPayment = JsonNullable.undefined(); private String payerId; @@ -1028,7 +1028,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemObject object) { + public Builder object(CommerceSubscriptionItem2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -1058,7 +1058,7 @@ public Builder instanceId(String instanceId) { /** * Current status of the subscription item. */ - public Builder status(SchemasCommerceSubscriptionItemStatus status) { + public Builder status(CommerceSubscriptionItem2Status status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -1116,7 +1116,7 @@ public Builder priceId(Optional priceId) { /** * The associated commerce plan. */ - public Builder plan(SchemasCommerceSubscriptionItemPlan plan) { + public Builder plan(CommerceSubscriptionItem2Plan plan) { Utils.checkNotNull(plan, "plan"); this.plan = Optional.ofNullable(plan); return this; @@ -1125,7 +1125,7 @@ public Builder plan(SchemasCommerceSubscriptionItemPlan plan) { /** * The associated commerce plan. */ - public Builder plan(Optional plan) { + public Builder plan(Optional plan) { Utils.checkNotNull(plan, "plan"); this.plan = plan; return this; @@ -1135,7 +1135,7 @@ public Builder plan(Optional plan /** * The billing period for this subscription. */ - public Builder planPeriod(SchemasCommerceSubscriptionItemPlanPeriod planPeriod) { + public Builder planPeriod(CommerceSubscriptionItem2PlanPeriod planPeriod) { Utils.checkNotNull(planPeriod, "planPeriod"); this.planPeriod = planPeriod; return this; @@ -1193,7 +1193,7 @@ public Builder lifetimePaid(JsonNullable lifetimePaid) { /** * Current amount for this subscription. */ - public Builder amount(SchemasCommerceSubscriptionItemAmount amount) { + public Builder amount(CommerceSubscriptionItem2Amount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -1202,7 +1202,7 @@ public Builder amount(SchemasCommerceSubscriptionItemAmount amount) { /** * Current amount for this subscription. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -1231,7 +1231,7 @@ public Builder nextInvoice(JsonNullable nextInvoice) { /** * Information about the next payment. */ - public Builder nextPayment(SchemasCommerceSubscriptionItemNextPayment nextPayment) { + public Builder nextPayment(CommerceSubscriptionItem2NextPayment nextPayment) { Utils.checkNotNull(nextPayment, "nextPayment"); this.nextPayment = JsonNullable.of(nextPayment); return this; @@ -1240,7 +1240,7 @@ public Builder nextPayment(SchemasCommerceSubscriptionItemNextPayment nextPaymen /** * Information about the next payment. */ - public Builder nextPayment(JsonNullable nextPayment) { + public Builder nextPayment(JsonNullable nextPayment) { Utils.checkNotNull(nextPayment, "nextPayment"); this.nextPayment = nextPayment; return this; @@ -1410,9 +1410,9 @@ public Builder updatedAt(long updatedAt) { return this; } - public SchemasCommerceSubscriptionItem build() { + public CommerceSubscriptionItem2 build() { - return new SchemasCommerceSubscriptionItem( + return new CommerceSubscriptionItem2( object, id, instanceId, status, credit, planId, priceId, plan, planPeriod, diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java new file mode 100644 index 00000000..04633e94 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java @@ -0,0 +1,228 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + +/** + * CommerceSubscriptionItem2Amount + * + *

Current amount for this subscription. + */ +public class CommerceSubscriptionItem2Amount { + /** + * The amount in cents. + */ + @JsonProperty("amount") + private long amount; + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonProperty("amount_formatted") + private String amountFormatted; + + /** + * The currency code (e.g., "USD"). + */ + @JsonProperty("currency") + private String currency; + + /** + * The currency symbol (e.g., "$"). + */ + @JsonProperty("currency_symbol") + private String currencySymbol; + + @JsonCreator + public CommerceSubscriptionItem2Amount( + @JsonProperty("amount") long amount, + @JsonProperty("amount_formatted") String amountFormatted, + @JsonProperty("currency") String currency, + @JsonProperty("currency_symbol") String currencySymbol) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(amountFormatted, "amountFormatted"); + Utils.checkNotNull(currency, "currency"); + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.amount = amount; + this.amountFormatted = amountFormatted; + this.currency = currency; + this.currencySymbol = currencySymbol; + } + + /** + * The amount in cents. + */ + @JsonIgnore + public long amount() { + return amount; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonIgnore + public String amountFormatted() { + return amountFormatted; + } + + /** + * The currency code (e.g., "USD"). + */ + @JsonIgnore + public String currency() { + return currency; + } + + /** + * The currency symbol (e.g., "$"). + */ + @JsonIgnore + public String currencySymbol() { + return currencySymbol; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The amount in cents. + */ + public CommerceSubscriptionItem2Amount withAmount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public CommerceSubscriptionItem2Amount withAmountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + /** + * The currency code (e.g., "USD"). + */ + public CommerceSubscriptionItem2Amount withCurrency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + /** + * The currency symbol (e.g., "$"). + */ + public CommerceSubscriptionItem2Amount withCurrencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CommerceSubscriptionItem2Amount other = (CommerceSubscriptionItem2Amount) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && + Utils.enhancedDeepEquals(this.currency, other.currency) && + Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, amountFormatted, currency, + currencySymbol); + } + + @Override + public String toString() { + return Utils.toString(CommerceSubscriptionItem2Amount.class, + "amount", amount, + "amountFormatted", amountFormatted, + "currency", currency, + "currencySymbol", currencySymbol); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Long amount; + + private String amountFormatted; + + private String currency; + + private String currencySymbol; + + private Builder() { + // force use of static builder() method + } + + + /** + * The amount in cents. + */ + public Builder amount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public Builder amountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + + /** + * The currency code (e.g., "USD"). + */ + public Builder currency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + + /** + * The currency symbol (e.g., "$"). + */ + public Builder currencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + public CommerceSubscriptionItem2Amount build() { + + return new CommerceSubscriptionItem2Amount( + amount, amountFormatted, currency, + currencySymbol); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java similarity index 89% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java index fb3c20fd..8eb056d2 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemFee { +public class CommerceSubscriptionItem2AnnualFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommerceSubscriptionItemFee { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemFee( + public CommerceSubscriptionItem2AnnualFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemFee withAmount(long amount) { + public CommerceSubscriptionItem2AnnualFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommerceSubscriptionItemFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemFee withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2AnnualFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommerceSubscriptionItemFee withAmountFormatted(String amountForma /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemFee withCurrency(String currency) { + public CommerceSubscriptionItem2AnnualFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommerceSubscriptionItemFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemFee withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2AnnualFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemFee other = (SchemasCommerceSubscriptionItemFee) o; + CommerceSubscriptionItem2AnnualFee other = (CommerceSubscriptionItem2AnnualFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemFee.class, + return Utils.toString(CommerceSubscriptionItem2AnnualFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemFee build() { + public CommerceSubscriptionItem2AnnualFee build() { - return new SchemasCommerceSubscriptionItemFee( + return new CommerceSubscriptionItem2AnnualFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java similarity index 87% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java index 1f6d6a77..c7386acd 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemAnnualFee { +public class CommerceSubscriptionItem2AnnualMonthlyFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommerceSubscriptionItemAnnualFee { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemAnnualFee( + public CommerceSubscriptionItem2AnnualMonthlyFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemAnnualFee withAmount(long amount) { + public CommerceSubscriptionItem2AnnualMonthlyFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommerceSubscriptionItemAnnualFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemAnnualFee withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2AnnualMonthlyFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommerceSubscriptionItemAnnualFee withAmountFormatted(String amoun /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemAnnualFee withCurrency(String currency) { + public CommerceSubscriptionItem2AnnualMonthlyFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommerceSubscriptionItemAnnualFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemAnnualFee withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2AnnualMonthlyFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemAnnualFee other = (SchemasCommerceSubscriptionItemAnnualFee) o; + CommerceSubscriptionItem2AnnualMonthlyFee other = (CommerceSubscriptionItem2AnnualMonthlyFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemAnnualFee.class, + return Utils.toString(CommerceSubscriptionItem2AnnualMonthlyFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemAnnualFee build() { + public CommerceSubscriptionItem2AnnualMonthlyFee build() { - return new SchemasCommerceSubscriptionItemAnnualFee( + return new CommerceSubscriptionItem2AnnualMonthlyFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java similarity index 88% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java index 6924ad8b..5bb5a816 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java @@ -12,11 +12,11 @@ import java.lang.String; /** - * SchemasCommerceSubscriptionItemAmount + * CommerceSubscriptionItem2CreditAmount * - *

Current amount for this subscription. + *

Credit amount. */ -public class SchemasCommerceSubscriptionItemAmount { +public class CommerceSubscriptionItem2CreditAmount { /** * The amount in cents. */ @@ -42,7 +42,7 @@ public class SchemasCommerceSubscriptionItemAmount { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemAmount( + public CommerceSubscriptionItem2CreditAmount( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -97,7 +97,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemAmount withAmount(long amount) { + public CommerceSubscriptionItem2CreditAmount withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -106,7 +106,7 @@ public SchemasCommerceSubscriptionItemAmount withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemAmount withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2CreditAmount withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -115,7 +115,7 @@ public SchemasCommerceSubscriptionItemAmount withAmountFormatted(String amountFo /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemAmount withCurrency(String currency) { + public CommerceSubscriptionItem2CreditAmount withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -124,7 +124,7 @@ public SchemasCommerceSubscriptionItemAmount withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemAmount withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2CreditAmount withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -138,7 +138,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemAmount other = (SchemasCommerceSubscriptionItemAmount) o; + CommerceSubscriptionItem2CreditAmount other = (CommerceSubscriptionItem2CreditAmount) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -155,7 +155,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemAmount.class, + return Utils.toString(CommerceSubscriptionItem2CreditAmount.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -217,9 +217,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemAmount build() { + public CommerceSubscriptionItem2CreditAmount build() { - return new SchemasCommerceSubscriptionItemAmount( + return new CommerceSubscriptionItem2CreditAmount( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java similarity index 62% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java index 068ae38b..94ee5f36 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java @@ -15,25 +15,25 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemCredits { +public class CommerceSubscriptionItem2Credits { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonInclude(Include.ALWAYS) @JsonProperty("payer") - private Optional payer; + private Optional payer; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemCredits( - @JsonProperty("proration") Optional proration, - @JsonProperty("payer") Optional payer, + public CommerceSubscriptionItem2Credits( + @JsonProperty("proration") Optional proration, + @JsonProperty("payer") Optional payer, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(payer, "payer"); @@ -43,21 +43,21 @@ public SchemasCommerceSubscriptionItemCredits( this.total = total; } - public SchemasCommerceSubscriptionItemCredits( + public CommerceSubscriptionItem2Credits( CommerceMoneyResponse total) { this(Optional.empty(), Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional payer() { - return (Optional) payer; + public Optional payer() { + return (Optional) payer; } @JsonIgnore @@ -70,33 +70,33 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemCredits withProration(SchemasCommerceSubscriptionItemProration proration) { + public CommerceSubscriptionItem2Credits withProration(CommerceSubscriptionItem2Proration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemCredits withProration(Optional proration) { + public CommerceSubscriptionItem2Credits withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemCredits withPayer(SchemasCommerceSubscriptionItemPayer payer) { + public CommerceSubscriptionItem2Credits withPayer(CommerceSubscriptionItem2Payer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public SchemasCommerceSubscriptionItemCredits withPayer(Optional payer) { + public CommerceSubscriptionItem2Credits withPayer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; } - public SchemasCommerceSubscriptionItemCredits withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2Credits withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -110,7 +110,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemCredits other = (SchemasCommerceSubscriptionItemCredits) o; + CommerceSubscriptionItem2Credits other = (CommerceSubscriptionItem2Credits) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.payer, other.payer) && @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemCredits.class, + return Utils.toString(CommerceSubscriptionItem2Credits.class, "proration", proration, "payer", payer, "total", total); @@ -134,9 +134,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); - private Optional payer = Optional.empty(); + private Optional payer = Optional.empty(); private CommerceMoneyResponse total; @@ -145,26 +145,26 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemProration proration) { + public Builder proration(CommerceSubscriptionItem2Proration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public Builder payer(SchemasCommerceSubscriptionItemPayer payer) { + public Builder payer(CommerceSubscriptionItem2Payer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public Builder payer(Optional payer) { + public Builder payer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; @@ -177,9 +177,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemCredits build() { + public CommerceSubscriptionItem2Credits build() { - return new SchemasCommerceSubscriptionItemCredits( + return new CommerceSubscriptionItem2Credits( proration, payer, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java similarity index 65% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java index 78da3cfd..be988269 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java @@ -15,19 +15,19 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemDiscounts { +public class CommerceSubscriptionItem2Discounts { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemDiscounts( - @JsonProperty("proration") Optional proration, + public CommerceSubscriptionItem2Discounts( + @JsonProperty("proration") Optional proration, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(total, "total"); @@ -35,15 +35,15 @@ public SchemasCommerceSubscriptionItemDiscounts( this.total = total; } - public SchemasCommerceSubscriptionItemDiscounts( + public CommerceSubscriptionItem2Discounts( CommerceMoneyResponse total) { this(Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @JsonIgnore @@ -56,20 +56,20 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemDiscounts withProration(SchemasCommerceSubscriptionItemNextInvoiceProration proration) { + public CommerceSubscriptionItem2Discounts withProration(CommerceSubscriptionItem2NextInvoiceProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemDiscounts withProration(Optional proration) { + public CommerceSubscriptionItem2Discounts withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemDiscounts withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2Discounts withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -83,7 +83,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemDiscounts other = (SchemasCommerceSubscriptionItemDiscounts) o; + CommerceSubscriptionItem2Discounts other = (CommerceSubscriptionItem2Discounts) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.total, other.total); @@ -97,7 +97,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemDiscounts.class, + return Utils.toString(CommerceSubscriptionItem2Discounts.class, "proration", proration, "total", total); } @@ -105,7 +105,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); private CommerceMoneyResponse total; @@ -114,13 +114,13 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemNextInvoiceProration proration) { + public Builder proration(CommerceSubscriptionItem2NextInvoiceProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; @@ -133,9 +133,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemDiscounts build() { + public CommerceSubscriptionItem2Discounts build() { - return new SchemasCommerceSubscriptionItemDiscounts( + return new CommerceSubscriptionItem2Discounts( proration, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java similarity index 90% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java index a0de8a27..5c52fb74 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommercePlanAnnualFee { +public class CommerceSubscriptionItem2Fee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommercePlanAnnualFee { private String currencySymbol; @JsonCreator - public SchemasCommercePlanAnnualFee( + public CommerceSubscriptionItem2Fee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommercePlanAnnualFee withAmount(long amount) { + public CommerceSubscriptionItem2Fee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommercePlanAnnualFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommercePlanAnnualFee withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2Fee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommercePlanAnnualFee withAmountFormatted(String amountFormatted) /** * The currency code (e.g., "USD"). */ - public SchemasCommercePlanAnnualFee withCurrency(String currency) { + public CommerceSubscriptionItem2Fee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommercePlanAnnualFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommercePlanAnnualFee withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2Fee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlanAnnualFee other = (SchemasCommercePlanAnnualFee) o; + CommerceSubscriptionItem2Fee other = (CommerceSubscriptionItem2Fee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlanAnnualFee.class, + return Utils.toString(CommerceSubscriptionItem2Fee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommercePlanAnnualFee build() { + public CommerceSubscriptionItem2Fee build() { - return new SchemasCommercePlanAnnualFee( + return new CommerceSubscriptionItem2Fee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java similarity index 85% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java index e856a532..b14c94a6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java @@ -12,12 +12,12 @@ import java.lang.String; /** - * SchemasCommerceSubscriptionItemNextInvoiceAmount + * CommerceSubscriptionItem2NextInvoiceAmount * *

Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ -public class SchemasCommerceSubscriptionItemNextInvoiceAmount { +public class CommerceSubscriptionItem2NextInvoiceAmount { /** * The amount in cents. */ @@ -43,7 +43,7 @@ public class SchemasCommerceSubscriptionItemNextInvoiceAmount { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemNextInvoiceAmount( + public CommerceSubscriptionItem2NextInvoiceAmount( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -98,7 +98,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmount(long amount) { + public CommerceSubscriptionItem2NextInvoiceAmount withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -107,7 +107,7 @@ public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmount(long amount) /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2NextInvoiceAmount withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -116,7 +116,7 @@ public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmountFormatted(Stri /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withCurrency(String currency) { + public CommerceSubscriptionItem2NextInvoiceAmount withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -125,7 +125,7 @@ public SchemasCommerceSubscriptionItemNextInvoiceAmount withCurrency(String curr /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2NextInvoiceAmount withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -139,7 +139,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextInvoiceAmount other = (SchemasCommerceSubscriptionItemNextInvoiceAmount) o; + CommerceSubscriptionItem2NextInvoiceAmount other = (CommerceSubscriptionItem2NextInvoiceAmount) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -156,7 +156,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextInvoiceAmount.class, + return Utils.toString(CommerceSubscriptionItem2NextInvoiceAmount.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -218,9 +218,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemNextInvoiceAmount build() { + public CommerceSubscriptionItem2NextInvoiceAmount build() { - return new SchemasCommerceSubscriptionItemNextInvoiceAmount( + return new CommerceSubscriptionItem2NextInvoiceAmount( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java similarity index 82% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java index 6bf07131..8376086e 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextPaymentTotalsProration { +public class CommerceSubscriptionItem2NextInvoiceProration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentTotalsProration { private float cyclePassedPercent; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration( + public CommerceSubscriptionItem2NextInvoiceProration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_passed") long cycleDaysPassed, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2NextInvoiceProration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withCycleDaysPassed(long cycleDaysPassed) { + public CommerceSubscriptionItem2NextInvoiceProration withCycleDaysPassed(long cycleDaysPassed) { Utils.checkNotNull(cycleDaysPassed, "cycleDaysPassed"); this.cycleDaysPassed = cycleDaysPassed; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2NextInvoiceProration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withCyclePassedPercent(float cyclePassedPercent) { + public CommerceSubscriptionItem2NextInvoiceProration withCyclePassedPercent(float cyclePassedPercent) { Utils.checkNotNull(cyclePassedPercent, "cyclePassedPercent"); this.cyclePassedPercent = cyclePassedPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentTotalsProration other = (SchemasCommerceSubscriptionItemNextPaymentTotalsProration) o; + CommerceSubscriptionItem2NextInvoiceProration other = (CommerceSubscriptionItem2NextInvoiceProration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysPassed, other.cycleDaysPassed) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentTotalsProration.class, + return Utils.toString(CommerceSubscriptionItem2NextInvoiceProration.class, "amount", amount, "cycleDaysPassed", cycleDaysPassed, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cyclePassedPercent(float cyclePassedPercent) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration build() { + public CommerceSubscriptionItem2NextInvoiceProration build() { - return new SchemasCommerceSubscriptionItemNextPaymentTotalsProration( + return new CommerceSubscriptionItem2NextInvoiceProration( amount, cycleDaysPassed, cycleDaysTotal, cyclePassedPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java similarity index 75% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java index e203189d..6883eda5 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java @@ -18,18 +18,18 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemNextPayment + * CommerceSubscriptionItem2NextPayment * *

Information about the next payment. */ -public class SchemasCommerceSubscriptionItemNextPayment { +public class CommerceSubscriptionItem2NextPayment { /** * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Unix timestamp (in milliseconds) for the next payment date. @@ -51,14 +51,14 @@ public class SchemasCommerceSubscriptionItemNextPayment { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("totals") - private JsonNullable totals; + private JsonNullable totals; @JsonCreator - public SchemasCommerceSubscriptionItemNextPayment( - @JsonProperty("amount") JsonNullable amount, + public CommerceSubscriptionItem2NextPayment( + @JsonProperty("amount") JsonNullable amount, @JsonProperty("date") JsonNullable date, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("totals") JsonNullable totals) { + @JsonProperty("totals") JsonNullable totals) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(perUnitTotals, "perUnitTotals"); @@ -69,7 +69,7 @@ public SchemasCommerceSubscriptionItemNextPayment( this.totals = totals; } - public SchemasCommerceSubscriptionItemNextPayment() { + public CommerceSubscriptionItem2NextPayment() { this(JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); } @@ -80,8 +80,8 @@ public SchemasCommerceSubscriptionItemNextPayment() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -107,8 +107,8 @@ public Optional> perUnitTotals() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable totals() { - return (JsonNullable) totals; + public JsonNullable totals() { + return (JsonNullable) totals; } public static Builder builder() { @@ -120,7 +120,7 @@ public static Builder builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public SchemasCommerceSubscriptionItemNextPayment withAmount(SchemasCommerceSubscriptionItemNextPaymentAmount amount) { + public CommerceSubscriptionItem2NextPayment withAmount(CommerceSubscriptionItem2NextPaymentAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -130,7 +130,7 @@ public SchemasCommerceSubscriptionItemNextPayment withAmount(SchemasCommerceSubs * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public SchemasCommerceSubscriptionItemNextPayment withAmount(JsonNullable amount) { + public CommerceSubscriptionItem2NextPayment withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -139,7 +139,7 @@ public SchemasCommerceSubscriptionItemNextPayment withAmount(JsonNullable date) { + public CommerceSubscriptionItem2NextPayment withDate(JsonNullable date) { Utils.checkNotNull(date, "date"); this.date = date; return this; @@ -157,7 +157,7 @@ public SchemasCommerceSubscriptionItemNextPayment withDate(JsonNullable da /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public SchemasCommerceSubscriptionItemNextPayment withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionItem2NextPayment withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; @@ -167,7 +167,7 @@ public SchemasCommerceSubscriptionItemNextPayment withPerUnitTotals(List> perUnitTotals) { + public CommerceSubscriptionItem2NextPayment withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -177,7 +177,7 @@ public SchemasCommerceSubscriptionItemNextPayment withPerUnitTotals(Optional totals) { + public CommerceSubscriptionItem2NextPayment withTotals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPayment other = (SchemasCommerceSubscriptionItemNextPayment) o; + CommerceSubscriptionItem2NextPayment other = (CommerceSubscriptionItem2NextPayment) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.date, other.date) && @@ -218,7 +218,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPayment.class, + return Utils.toString(CommerceSubscriptionItem2NextPayment.class, "amount", amount, "date", date, "perUnitTotals", perUnitTotals, @@ -228,13 +228,13 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private JsonNullable date = JsonNullable.undefined(); private Optional> perUnitTotals = Optional.empty(); - private JsonNullable totals = JsonNullable.undefined(); + private JsonNullable totals = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -245,7 +245,7 @@ private Builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(SchemasCommerceSubscriptionItemNextPaymentAmount amount) { + public Builder amount(CommerceSubscriptionItem2NextPaymentAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -255,7 +255,7 @@ public Builder amount(SchemasCommerceSubscriptionItemNextPaymentAmount amount) { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -304,7 +304,7 @@ public Builder perUnitTotals(Optional> perU * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(SchemasCommerceSubscriptionItemNextPaymentTotals totals) { + public Builder totals(CommerceSubscriptionItem2NextPaymentTotals totals) { Utils.checkNotNull(totals, "totals"); this.totals = JsonNullable.of(totals); return this; @@ -314,15 +314,15 @@ public Builder totals(SchemasCommerceSubscriptionItemNextPaymentTotals totals) { * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(JsonNullable totals) { + public Builder totals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; } - public SchemasCommerceSubscriptionItemNextPayment build() { + public CommerceSubscriptionItem2NextPayment build() { - return new SchemasCommerceSubscriptionItemNextPayment( + return new CommerceSubscriptionItem2NextPayment( amount, date, perUnitTotals, totals); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java similarity index 85% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java index 88c2cb49..a8088102 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java @@ -12,12 +12,12 @@ import java.lang.String; /** - * SchemasCommerceSubscriptionItemNextPaymentAmount + * CommerceSubscriptionItem2NextPaymentAmount * *

Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ -public class SchemasCommerceSubscriptionItemNextPaymentAmount { +public class CommerceSubscriptionItem2NextPaymentAmount { /** * The amount in cents. */ @@ -43,7 +43,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentAmount { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentAmount( + public CommerceSubscriptionItem2NextPaymentAmount( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -98,7 +98,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withAmount(long amount) { + public CommerceSubscriptionItem2NextPaymentAmount withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -107,7 +107,7 @@ public SchemasCommerceSubscriptionItemNextPaymentAmount withAmount(long amount) /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2NextPaymentAmount withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -116,7 +116,7 @@ public SchemasCommerceSubscriptionItemNextPaymentAmount withAmountFormatted(Stri /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withCurrency(String currency) { + public CommerceSubscriptionItem2NextPaymentAmount withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -125,7 +125,7 @@ public SchemasCommerceSubscriptionItemNextPaymentAmount withCurrency(String curr /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2NextPaymentAmount withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -139,7 +139,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentAmount other = (SchemasCommerceSubscriptionItemNextPaymentAmount) o; + CommerceSubscriptionItem2NextPaymentAmount other = (CommerceSubscriptionItem2NextPaymentAmount) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -156,7 +156,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentAmount.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentAmount.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -218,9 +218,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentAmount build() { + public CommerceSubscriptionItem2NextPaymentAmount build() { - return new SchemasCommerceSubscriptionItemNextPaymentAmount( + return new CommerceSubscriptionItem2NextPaymentAmount( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java similarity index 59% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java index e548d4af..a5b63bd7 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java @@ -15,25 +15,25 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemNextPaymentCredits { +public class CommerceSubscriptionItem2NextPaymentCredits { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonInclude(Include.ALWAYS) @JsonProperty("payer") - private Optional payer; + private Optional payer; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentCredits( - @JsonProperty("proration") Optional proration, - @JsonProperty("payer") Optional payer, + public CommerceSubscriptionItem2NextPaymentCredits( + @JsonProperty("proration") Optional proration, + @JsonProperty("payer") Optional payer, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(payer, "payer"); @@ -43,21 +43,21 @@ public SchemasCommerceSubscriptionItemNextPaymentCredits( this.total = total; } - public SchemasCommerceSubscriptionItemNextPaymentCredits( + public CommerceSubscriptionItem2NextPaymentCredits( CommerceMoneyResponse total) { this(Optional.empty(), Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional payer() { - return (Optional) payer; + public Optional payer() { + return (Optional) payer; } @JsonIgnore @@ -70,33 +70,33 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentCredits withProration(SchemasCommerceSubscriptionItemNextPaymentProration proration) { + public CommerceSubscriptionItem2NextPaymentCredits withProration(CommerceSubscriptionItem2NextPaymentProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withProration(Optional proration) { + public CommerceSubscriptionItem2NextPaymentCredits withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withPayer(SchemasCommerceSubscriptionItemNextPaymentPayer payer) { + public CommerceSubscriptionItem2NextPaymentCredits withPayer(CommerceSubscriptionItem2NextPaymentPayer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withPayer(Optional payer) { + public CommerceSubscriptionItem2NextPaymentCredits withPayer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2NextPaymentCredits withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -110,7 +110,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentCredits other = (SchemasCommerceSubscriptionItemNextPaymentCredits) o; + CommerceSubscriptionItem2NextPaymentCredits other = (CommerceSubscriptionItem2NextPaymentCredits) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.payer, other.payer) && @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentCredits.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentCredits.class, "proration", proration, "payer", payer, "total", total); @@ -134,9 +134,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); - private Optional payer = Optional.empty(); + private Optional payer = Optional.empty(); private CommerceMoneyResponse total; @@ -145,26 +145,26 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemNextPaymentProration proration) { + public Builder proration(CommerceSubscriptionItem2NextPaymentProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public Builder payer(SchemasCommerceSubscriptionItemNextPaymentPayer payer) { + public Builder payer(CommerceSubscriptionItem2NextPaymentPayer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public Builder payer(Optional payer) { + public Builder payer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; @@ -177,9 +177,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits build() { + public CommerceSubscriptionItem2NextPaymentCredits build() { - return new SchemasCommerceSubscriptionItemNextPaymentCredits( + return new CommerceSubscriptionItem2NextPaymentCredits( proration, payer, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java similarity index 62% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java index 0f6c3f20..01fcafb6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java @@ -15,19 +15,19 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemNextPaymentDiscounts { +public class CommerceSubscriptionItem2NextPaymentDiscounts { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentDiscounts( - @JsonProperty("proration") Optional proration, + public CommerceSubscriptionItem2NextPaymentDiscounts( + @JsonProperty("proration") Optional proration, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(total, "total"); @@ -35,15 +35,15 @@ public SchemasCommerceSubscriptionItemNextPaymentDiscounts( this.total = total; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts( + public CommerceSubscriptionItem2NextPaymentDiscounts( CommerceMoneyResponse total) { this(Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @JsonIgnore @@ -56,20 +56,20 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts withProration(SchemasCommerceSubscriptionItemNextPaymentTotalsProration proration) { + public CommerceSubscriptionItem2NextPaymentDiscounts withProration(CommerceSubscriptionItem2NextPaymentTotalsProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts withProration(Optional proration) { + public CommerceSubscriptionItem2NextPaymentDiscounts withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2NextPaymentDiscounts withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -83,7 +83,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentDiscounts other = (SchemasCommerceSubscriptionItemNextPaymentDiscounts) o; + CommerceSubscriptionItem2NextPaymentDiscounts other = (CommerceSubscriptionItem2NextPaymentDiscounts) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.total, other.total); @@ -97,7 +97,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentDiscounts.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentDiscounts.class, "proration", proration, "total", total); } @@ -105,7 +105,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); private CommerceMoneyResponse total; @@ -114,13 +114,13 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemNextPaymentTotalsProration proration) { + public Builder proration(CommerceSubscriptionItem2NextPaymentTotalsProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; @@ -133,9 +133,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts build() { + public CommerceSubscriptionItem2NextPaymentDiscounts build() { - return new SchemasCommerceSubscriptionItemNextPaymentDiscounts( + return new CommerceSubscriptionItem2NextPaymentDiscounts( proration, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java similarity index 81% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java index a8987676..431ea3b6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java @@ -11,7 +11,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextPaymentPayer { +public class CommerceSubscriptionItem2NextPaymentPayer { @JsonProperty("remaining_balance") private CommerceMoneyResponse remainingBalance; @@ -21,7 +21,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentPayer { private CommerceMoneyResponse appliedAmount; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentPayer( + public CommerceSubscriptionItem2NextPaymentPayer( @JsonProperty("remaining_balance") CommerceMoneyResponse remainingBalance, @JsonProperty("applied_amount") CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(remainingBalance, "remainingBalance"); @@ -45,13 +45,13 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentPayer withRemainingBalance(CommerceMoneyResponse remainingBalance) { + public CommerceSubscriptionItem2NextPaymentPayer withRemainingBalance(CommerceMoneyResponse remainingBalance) { Utils.checkNotNull(remainingBalance, "remainingBalance"); this.remainingBalance = remainingBalance; return this; } - public SchemasCommerceSubscriptionItemNextPaymentPayer withAppliedAmount(CommerceMoneyResponse appliedAmount) { + public CommerceSubscriptionItem2NextPaymentPayer withAppliedAmount(CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(appliedAmount, "appliedAmount"); this.appliedAmount = appliedAmount; return this; @@ -65,7 +65,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentPayer other = (SchemasCommerceSubscriptionItemNextPaymentPayer) o; + CommerceSubscriptionItem2NextPaymentPayer other = (CommerceSubscriptionItem2NextPaymentPayer) o; return Utils.enhancedDeepEquals(this.remainingBalance, other.remainingBalance) && Utils.enhancedDeepEquals(this.appliedAmount, other.appliedAmount); @@ -79,7 +79,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentPayer.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentPayer.class, "remainingBalance", remainingBalance, "appliedAmount", appliedAmount); } @@ -109,9 +109,9 @@ public Builder appliedAmount(CommerceMoneyResponse appliedAmount) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentPayer build() { + public CommerceSubscriptionItem2NextPaymentPayer build() { - return new SchemasCommerceSubscriptionItemNextPaymentPayer( + return new CommerceSubscriptionItem2NextPaymentPayer( remainingBalance, appliedAmount); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java similarity index 83% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java index 9336045d..76e59b87 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextPaymentProration { +public class CommerceSubscriptionItem2NextPaymentProration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentProration { private double cycleRemainingPercent; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentProration( + public CommerceSubscriptionItem2NextPaymentProration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_remaining") long cycleDaysRemaining, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2NextPaymentProration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration withCycleDaysRemaining(long cycleDaysRemaining) { + public CommerceSubscriptionItem2NextPaymentProration withCycleDaysRemaining(long cycleDaysRemaining) { Utils.checkNotNull(cycleDaysRemaining, "cycleDaysRemaining"); this.cycleDaysRemaining = cycleDaysRemaining; return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2NextPaymentProration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration withCycleRemainingPercent(double cycleRemainingPercent) { + public CommerceSubscriptionItem2NextPaymentProration withCycleRemainingPercent(double cycleRemainingPercent) { Utils.checkNotNull(cycleRemainingPercent, "cycleRemainingPercent"); this.cycleRemainingPercent = cycleRemainingPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentProration other = (SchemasCommerceSubscriptionItemNextPaymentProration) o; + CommerceSubscriptionItem2NextPaymentProration other = (CommerceSubscriptionItem2NextPaymentProration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysRemaining, other.cycleDaysRemaining) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentProration.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentProration.class, "amount", amount, "cycleDaysRemaining", cycleDaysRemaining, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cycleRemainingPercent(double cycleRemainingPercent) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration build() { + public CommerceSubscriptionItem2NextPaymentProration build() { - return new SchemasCommerceSubscriptionItemNextPaymentProration( + return new CommerceSubscriptionItem2NextPaymentProration( amount, cycleDaysRemaining, cycleDaysTotal, cycleRemainingPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java similarity index 71% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java index 07b44a7a..299a4387 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java @@ -17,12 +17,12 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemNextPaymentTotals + * CommerceSubscriptionItem2NextPaymentTotals * *

Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ -public class SchemasCommerceSubscriptionItemNextPaymentTotals { +public class CommerceSubscriptionItem2NextPaymentTotals { @JsonProperty("subtotal") private CommerceMoneyResponse subtotal; @@ -47,22 +47,22 @@ public class SchemasCommerceSubscriptionItemNextPaymentTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credits") - private JsonNullable credits; + private JsonNullable credits; @JsonInclude(Include.NON_ABSENT) @JsonProperty("discounts") - private JsonNullable discounts; + private JsonNullable discounts; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentTotals( + public CommerceSubscriptionItem2NextPaymentTotals( @JsonProperty("subtotal") CommerceMoneyResponse subtotal, @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("credits") JsonNullable credits, - @JsonProperty("discounts") JsonNullable discounts) { + @JsonProperty("credits") JsonNullable credits, + @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); Utils.checkNotNull(baseFee, "baseFee"); Utils.checkNotNull(taxTotal, "taxTotal"); @@ -79,7 +79,7 @@ public SchemasCommerceSubscriptionItemNextPaymentTotals( this.discounts = discounts; } - public SchemasCommerceSubscriptionItemNextPaymentTotals( + public CommerceSubscriptionItem2NextPaymentTotals( CommerceMoneyResponse subtotal, CommerceMoneyResponse baseFee, CommerceMoneyResponse taxTotal, @@ -117,14 +117,14 @@ public Optional> perUnitTotals() { @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable credits() { - return (JsonNullable) credits; + public JsonNullable credits() { + return (JsonNullable) credits; } @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable discounts() { - return (JsonNullable) discounts; + public JsonNullable discounts() { + return (JsonNullable) discounts; } public static Builder builder() { @@ -132,62 +132,62 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentTotals withSubtotal(CommerceMoneyResponse subtotal) { + public CommerceSubscriptionItem2NextPaymentTotals withSubtotal(CommerceMoneyResponse subtotal) { Utils.checkNotNull(subtotal, "subtotal"); this.subtotal = subtotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withBaseFee(CommerceMoneyResponse baseFee) { + public CommerceSubscriptionItem2NextPaymentTotals withBaseFee(CommerceMoneyResponse baseFee) { Utils.checkNotNull(baseFee, "baseFee"); this.baseFee = baseFee; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withTaxTotal(CommerceMoneyResponse taxTotal) { + public CommerceSubscriptionItem2NextPaymentTotals withTaxTotal(CommerceMoneyResponse taxTotal) { Utils.checkNotNull(taxTotal, "taxTotal"); this.taxTotal = taxTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withGrandTotal(CommerceMoneyResponse grandTotal) { + public CommerceSubscriptionItem2NextPaymentTotals withGrandTotal(CommerceMoneyResponse grandTotal) { Utils.checkNotNull(grandTotal, "grandTotal"); this.grandTotal = grandTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionItem2NextPaymentTotals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { + public CommerceSubscriptionItem2NextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withCredits(SchemasCommerceSubscriptionItemNextPaymentCredits credits) { + public CommerceSubscriptionItem2NextPaymentTotals withCredits(CommerceSubscriptionItem2NextPaymentCredits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withCredits(JsonNullable credits) { + public CommerceSubscriptionItem2NextPaymentTotals withCredits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withDiscounts(SchemasCommerceSubscriptionItemNextPaymentDiscounts discounts) { + public CommerceSubscriptionItem2NextPaymentTotals withDiscounts(CommerceSubscriptionItem2NextPaymentDiscounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withDiscounts(JsonNullable discounts) { + public CommerceSubscriptionItem2NextPaymentTotals withDiscounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentTotals other = (SchemasCommerceSubscriptionItemNextPaymentTotals) o; + CommerceSubscriptionItem2NextPaymentTotals other = (CommerceSubscriptionItem2NextPaymentTotals) o; return Utils.enhancedDeepEquals(this.subtotal, other.subtotal) && Utils.enhancedDeepEquals(this.baseFee, other.baseFee) && @@ -222,7 +222,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentTotals.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentTotals.class, "subtotal", subtotal, "baseFee", baseFee, "taxTotal", taxTotal, @@ -245,9 +245,9 @@ public final static class Builder { private Optional> perUnitTotals = Optional.empty(); - private JsonNullable credits = JsonNullable.undefined(); + private JsonNullable credits = JsonNullable.undefined(); - private JsonNullable discounts = JsonNullable.undefined(); + private JsonNullable discounts = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -295,34 +295,34 @@ public Builder perUnitTotals(Optional> perU } - public Builder credits(SchemasCommerceSubscriptionItemNextPaymentCredits credits) { + public Builder credits(CommerceSubscriptionItem2NextPaymentCredits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public Builder credits(JsonNullable credits) { + public Builder credits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public Builder discounts(SchemasCommerceSubscriptionItemNextPaymentDiscounts discounts) { + public Builder discounts(CommerceSubscriptionItem2NextPaymentDiscounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public Builder discounts(JsonNullable discounts) { + public Builder discounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals build() { + public CommerceSubscriptionItem2NextPaymentTotals build() { - return new SchemasCommerceSubscriptionItemNextPaymentTotals( + return new CommerceSubscriptionItem2NextPaymentTotals( subtotal, baseFee, taxTotal, grandTotal, perUnitTotals, credits, discounts); diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java similarity index 86% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java index be16e369..ff38bc5d 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextInvoiceProration { +public class CommerceSubscriptionItem2NextPaymentTotalsProration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemNextInvoiceProration { private float cyclePassedPercent; @JsonCreator - public SchemasCommerceSubscriptionItemNextInvoiceProration( + public CommerceSubscriptionItem2NextPaymentTotalsProration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_passed") long cycleDaysPassed, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextInvoiceProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration withCycleDaysPassed(long cycleDaysPassed) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withCycleDaysPassed(long cycleDaysPassed) { Utils.checkNotNull(cycleDaysPassed, "cycleDaysPassed"); this.cycleDaysPassed = cycleDaysPassed; return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration withCyclePassedPercent(float cyclePassedPercent) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withCyclePassedPercent(float cyclePassedPercent) { Utils.checkNotNull(cyclePassedPercent, "cyclePassedPercent"); this.cyclePassedPercent = cyclePassedPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextInvoiceProration other = (SchemasCommerceSubscriptionItemNextInvoiceProration) o; + CommerceSubscriptionItem2NextPaymentTotalsProration other = (CommerceSubscriptionItem2NextPaymentTotalsProration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysPassed, other.cycleDaysPassed) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextInvoiceProration.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentTotalsProration.class, "amount", amount, "cycleDaysPassed", cycleDaysPassed, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cyclePassedPercent(float cyclePassedPercent) { return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration build() { + public CommerceSubscriptionItem2NextPaymentTotalsProration build() { - return new SchemasCommerceSubscriptionItemNextInvoiceProration( + return new CommerceSubscriptionItem2NextPaymentTotalsProration( amount, cycleDaysPassed, cycleDaysTotal, cyclePassedPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java similarity index 67% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java index a7f3f67e..22c1319c 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemObject + * CommerceSubscriptionItem2Object * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemObject { +public enum CommerceSubscriptionItem2Object { COMMERCE_SUBSCRIPTION_ITEM("commerce_subscription_item"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemObject(String value) { + CommerceSubscriptionItem2Object(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemObject o: SchemasCommerceSubscriptionItemObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2Object o: CommerceSubscriptionItem2Object.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java similarity index 83% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java index 166c01ae..038858cb 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java @@ -11,7 +11,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemPayer { +public class CommerceSubscriptionItem2Payer { @JsonProperty("remaining_balance") private CommerceMoneyResponse remainingBalance; @@ -21,7 +21,7 @@ public class SchemasCommerceSubscriptionItemPayer { private CommerceMoneyResponse appliedAmount; @JsonCreator - public SchemasCommerceSubscriptionItemPayer( + public CommerceSubscriptionItem2Payer( @JsonProperty("remaining_balance") CommerceMoneyResponse remainingBalance, @JsonProperty("applied_amount") CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(remainingBalance, "remainingBalance"); @@ -45,13 +45,13 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemPayer withRemainingBalance(CommerceMoneyResponse remainingBalance) { + public CommerceSubscriptionItem2Payer withRemainingBalance(CommerceMoneyResponse remainingBalance) { Utils.checkNotNull(remainingBalance, "remainingBalance"); this.remainingBalance = remainingBalance; return this; } - public SchemasCommerceSubscriptionItemPayer withAppliedAmount(CommerceMoneyResponse appliedAmount) { + public CommerceSubscriptionItem2Payer withAppliedAmount(CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(appliedAmount, "appliedAmount"); this.appliedAmount = appliedAmount; return this; @@ -65,7 +65,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemPayer other = (SchemasCommerceSubscriptionItemPayer) o; + CommerceSubscriptionItem2Payer other = (CommerceSubscriptionItem2Payer) o; return Utils.enhancedDeepEquals(this.remainingBalance, other.remainingBalance) && Utils.enhancedDeepEquals(this.appliedAmount, other.appliedAmount); @@ -79,7 +79,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemPayer.class, + return Utils.toString(CommerceSubscriptionItem2Payer.class, "remainingBalance", remainingBalance, "appliedAmount", appliedAmount); } @@ -109,9 +109,9 @@ public Builder appliedAmount(CommerceMoneyResponse appliedAmount) { return this; } - public SchemasCommerceSubscriptionItemPayer build() { + public CommerceSubscriptionItem2Payer build() { - return new SchemasCommerceSubscriptionItemPayer( + return new CommerceSubscriptionItem2Payer( remainingBalance, appliedAmount); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java similarity index 65% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java index 1b7b0fdc..36d9e1f6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPayerObject + * CommerceSubscriptionItem2PayerObject * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemPayerObject { +public enum CommerceSubscriptionItem2PayerObject { COMMERCE_PAYER("commerce_payer"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPayerObject(String value) { + CommerceSubscriptionItem2PayerObject(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPayerObject o: SchemasCommerceSubscriptionItemPayerObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PayerObject o: CommerceSubscriptionItem2PayerObject.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java similarity index 62% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java index 2a039b43..b3bec50c 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPaymentSourceObject + * CommerceSubscriptionItem2PaymentSourceObject * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemPaymentSourceObject { +public enum CommerceSubscriptionItem2PaymentSourceObject { COMMERCE_SOURCE("commerce_source"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPaymentSourceObject(String value) { + CommerceSubscriptionItem2PaymentSourceObject(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPaymentSourceObject o: SchemasCommerceSubscriptionItemPaymentSourceObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PaymentSourceObject o: CommerceSubscriptionItem2PaymentSourceObject.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java similarity index 61% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java index 69ba0090..939507e6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java @@ -9,18 +9,18 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPaymentSourceStatus + * CommerceSubscriptionItem2PaymentSourceStatus * *

Status of the payment source. */ -public enum SchemasCommerceSubscriptionItemPaymentSourceStatus { +public enum CommerceSubscriptionItem2PaymentSourceStatus { ACTIVE("active"), DISCONNECTED("disconnected"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPaymentSourceStatus(String value) { + CommerceSubscriptionItem2PaymentSourceStatus(String value) { this.value = value; } @@ -28,8 +28,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPaymentSourceStatus o: SchemasCommerceSubscriptionItemPaymentSourceStatus.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PaymentSourceStatus o: CommerceSubscriptionItem2PaymentSourceStatus.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java similarity index 84% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java index 237ecd7d..4ab446b1 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java @@ -19,16 +19,16 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemPlan + * CommerceSubscriptionItem2Plan * *

The associated commerce plan. */ -public class SchemasCommerceSubscriptionItemPlan { +public class CommerceSubscriptionItem2Plan { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemPlanObject object; + private CommerceSubscriptionItem2PlanObject object; /** * Unique identifier for the commerce plan. @@ -45,17 +45,17 @@ public class SchemasCommerceSubscriptionItemPlan { @JsonInclude(Include.ALWAYS) @JsonProperty("fee") - private Optional fee; + private Optional fee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_monthly_fee") - private Optional annualMonthlyFee; + private Optional annualMonthlyFee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_fee") - private Optional annualFee; + private Optional annualFee; /** * The amount in cents for the plan. @@ -183,7 +183,7 @@ public class SchemasCommerceSubscriptionItemPlan { * The features included in this plan. */ @JsonProperty("features") - private List features; + private List features; /** * Whether free trial is enabled for this plan. @@ -200,13 +200,13 @@ public class SchemasCommerceSubscriptionItemPlan { private JsonNullable freeTrialDays; @JsonCreator - public SchemasCommerceSubscriptionItemPlan( - @JsonProperty("object") SchemasCommerceSubscriptionItemPlanObject object, + public CommerceSubscriptionItem2Plan( + @JsonProperty("object") CommerceSubscriptionItem2PlanObject object, @JsonProperty("id") String id, @JsonProperty("name") String name, - @JsonProperty("fee") Optional fee, - @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, - @JsonProperty("annual_fee") Optional annualFee, + @JsonProperty("fee") Optional fee, + @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, + @JsonProperty("annual_fee") Optional annualFee, @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("annual_monthly_amount") long annualMonthlyAmount, @@ -227,7 +227,7 @@ public SchemasCommerceSubscriptionItemPlan( @JsonProperty("avatar_url") String avatarUrl, @JsonProperty("period") Optional period, @JsonProperty("interval") Optional interval, - @JsonProperty("features") List features, + @JsonProperty("features") List features, @JsonProperty("free_trial_enabled") Optional freeTrialEnabled, @JsonProperty("free_trial_days") JsonNullable freeTrialDays) { Utils.checkNotNull(object, "object"); @@ -290,8 +290,8 @@ public SchemasCommerceSubscriptionItemPlan( this.freeTrialDays = freeTrialDays; } - public SchemasCommerceSubscriptionItemPlan( - SchemasCommerceSubscriptionItemPlanObject object, + public CommerceSubscriptionItem2Plan( + CommerceSubscriptionItem2PlanObject object, String id, String name, long amount, @@ -312,7 +312,7 @@ public SchemasCommerceSubscriptionItemPlan( String forPayerType, String slug, String avatarUrl, - List features) { + List features) { this(object, id, name, Optional.empty(), Optional.empty(), Optional.empty(), amount, amountFormatted, annualMonthlyAmount, @@ -329,7 +329,7 @@ public SchemasCommerceSubscriptionItemPlan( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPlanObject object() { + public CommerceSubscriptionItem2PlanObject object() { return object; } @@ -351,20 +351,20 @@ public String name() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional fee() { - return (Optional) fee; + public Optional fee() { + return (Optional) fee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualMonthlyFee() { - return (Optional) annualMonthlyFee; + public Optional annualMonthlyFee() { + return (Optional) annualMonthlyFee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualFee() { - return (Optional) annualFee; + public Optional annualFee() { + return (Optional) annualFee; } /** @@ -531,7 +531,7 @@ public Optional interval() { * The features included in this plan. */ @JsonIgnore - public List features() { + public List features() { return features; } @@ -559,7 +559,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasCommerceSubscriptionItemPlan withObject(SchemasCommerceSubscriptionItemPlanObject object) { + public CommerceSubscriptionItem2Plan withObject(CommerceSubscriptionItem2PlanObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -568,7 +568,7 @@ public SchemasCommerceSubscriptionItemPlan withObject(SchemasCommerceSubscriptio /** * Unique identifier for the commerce plan. */ - public SchemasCommerceSubscriptionItemPlan withId(String id) { + public CommerceSubscriptionItem2Plan withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -577,46 +577,46 @@ public SchemasCommerceSubscriptionItemPlan withId(String id) { /** * The name of the commerce plan. */ - public SchemasCommerceSubscriptionItemPlan withName(String name) { + public CommerceSubscriptionItem2Plan withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - public SchemasCommerceSubscriptionItemPlan withFee(SchemasCommerceSubscriptionItemFee fee) { + public CommerceSubscriptionItem2Plan withFee(CommerceSubscriptionItem2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public SchemasCommerceSubscriptionItemPlan withFee(Optional fee) { + public CommerceSubscriptionItem2Plan withFee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualMonthlyFee(SchemasCommerceSubscriptionItemAnnualMonthlyFee annualMonthlyFee) { + public CommerceSubscriptionItem2Plan withAnnualMonthlyFee(CommerceSubscriptionItem2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualMonthlyFee(Optional annualMonthlyFee) { + public CommerceSubscriptionItem2Plan withAnnualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualFee(SchemasCommerceSubscriptionItemAnnualFee annualFee) { + public CommerceSubscriptionItem2Plan withAnnualFee(CommerceSubscriptionItem2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualFee(Optional annualFee) { + public CommerceSubscriptionItem2Plan withAnnualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -625,7 +625,7 @@ public SchemasCommerceSubscriptionItemPlan withAnnualFee(Optional payerType) { + public CommerceSubscriptionItem2Plan withPayerType(List payerType) { Utils.checkNotNull(payerType, "payerType"); this.payerType = payerType; return this; @@ -760,7 +760,7 @@ public SchemasCommerceSubscriptionItemPlan withPayerType(List payerType) /** * The payer type this plan is designed for. */ - public SchemasCommerceSubscriptionItemPlan withForPayerType(String forPayerType) { + public CommerceSubscriptionItem2Plan withForPayerType(String forPayerType) { Utils.checkNotNull(forPayerType, "forPayerType"); this.forPayerType = forPayerType; return this; @@ -769,7 +769,7 @@ public SchemasCommerceSubscriptionItemPlan withForPayerType(String forPayerType) /** * The URL-friendly slug for the plan. */ - public SchemasCommerceSubscriptionItemPlan withSlug(String slug) { + public CommerceSubscriptionItem2Plan withSlug(String slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -778,7 +778,7 @@ public SchemasCommerceSubscriptionItemPlan withSlug(String slug) { /** * The URL of the plan's avatar image. */ - public SchemasCommerceSubscriptionItemPlan withAvatarUrl(String avatarUrl) { + public CommerceSubscriptionItem2Plan withAvatarUrl(String avatarUrl) { Utils.checkNotNull(avatarUrl, "avatarUrl"); this.avatarUrl = avatarUrl; return this; @@ -787,7 +787,7 @@ public SchemasCommerceSubscriptionItemPlan withAvatarUrl(String avatarUrl) { /** * The billing period for the plan. */ - public SchemasCommerceSubscriptionItemPlan withPeriod(String period) { + public CommerceSubscriptionItem2Plan withPeriod(String period) { Utils.checkNotNull(period, "period"); this.period = Optional.ofNullable(period); return this; @@ -797,7 +797,7 @@ public SchemasCommerceSubscriptionItemPlan withPeriod(String period) { /** * The billing period for the plan. */ - public SchemasCommerceSubscriptionItemPlan withPeriod(Optional period) { + public CommerceSubscriptionItem2Plan withPeriod(Optional period) { Utils.checkNotNull(period, "period"); this.period = period; return this; @@ -806,7 +806,7 @@ public SchemasCommerceSubscriptionItemPlan withPeriod(Optional period) { /** * The billing interval. */ - public SchemasCommerceSubscriptionItemPlan withInterval(long interval) { + public CommerceSubscriptionItem2Plan withInterval(long interval) { Utils.checkNotNull(interval, "interval"); this.interval = Optional.ofNullable(interval); return this; @@ -816,7 +816,7 @@ public SchemasCommerceSubscriptionItemPlan withInterval(long interval) { /** * The billing interval. */ - public SchemasCommerceSubscriptionItemPlan withInterval(Optional interval) { + public CommerceSubscriptionItem2Plan withInterval(Optional interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -825,7 +825,7 @@ public SchemasCommerceSubscriptionItemPlan withInterval(Optional interval) /** * The features included in this plan. */ - public SchemasCommerceSubscriptionItemPlan withFeatures(List features) { + public CommerceSubscriptionItem2Plan withFeatures(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -834,7 +834,7 @@ public SchemasCommerceSubscriptionItemPlan withFeatures(List freeTrialEnabled) { + public CommerceSubscriptionItem2Plan withFreeTrialEnabled(Optional freeTrialEnabled) { Utils.checkNotNull(freeTrialEnabled, "freeTrialEnabled"); this.freeTrialEnabled = freeTrialEnabled; return this; @@ -853,7 +853,7 @@ public SchemasCommerceSubscriptionItemPlan withFreeTrialEnabled(Optional freeTrialDays) { + public CommerceSubscriptionItem2Plan withFreeTrialDays(JsonNullable freeTrialDays) { Utils.checkNotNull(freeTrialDays, "freeTrialDays"); this.freeTrialDays = freeTrialDays; return this; @@ -876,7 +876,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemPlan other = (SchemasCommerceSubscriptionItemPlan) o; + CommerceSubscriptionItem2Plan other = (CommerceSubscriptionItem2Plan) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -926,7 +926,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemPlan.class, + return Utils.toString(CommerceSubscriptionItem2Plan.class, "object", object, "id", id, "name", name, @@ -961,17 +961,17 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemPlanObject object; + private CommerceSubscriptionItem2PlanObject object; private String id; private String name; - private Optional fee = Optional.empty(); + private Optional fee = Optional.empty(); - private Optional annualMonthlyFee = Optional.empty(); + private Optional annualMonthlyFee = Optional.empty(); - private Optional annualFee = Optional.empty(); + private Optional annualFee = Optional.empty(); private Long amount; @@ -1013,7 +1013,7 @@ public final static class Builder { private Optional interval = Optional.empty(); - private List features; + private List features; private Optional freeTrialEnabled = Optional.empty(); @@ -1027,7 +1027,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemPlanObject object) { + public Builder object(CommerceSubscriptionItem2PlanObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -1054,39 +1054,39 @@ public Builder name(String name) { } - public Builder fee(SchemasCommerceSubscriptionItemFee fee) { + public Builder fee(CommerceSubscriptionItem2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public Builder fee(Optional fee) { + public Builder fee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public Builder annualMonthlyFee(SchemasCommerceSubscriptionItemAnnualMonthlyFee annualMonthlyFee) { + public Builder annualMonthlyFee(CommerceSubscriptionItem2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public Builder annualMonthlyFee(Optional annualMonthlyFee) { + public Builder annualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public Builder annualFee(SchemasCommerceSubscriptionItemAnnualFee annualFee) { + public Builder annualFee(CommerceSubscriptionItem2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public Builder annualFee(Optional annualFee) { + public Builder annualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -1314,7 +1314,7 @@ public Builder interval(Optional interval) { /** * The features included in this plan. */ - public Builder features(List features) { + public Builder features(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -1358,9 +1358,9 @@ public Builder freeTrialDays(JsonNullable freeTrialDays) { return this; } - public SchemasCommerceSubscriptionItemPlan build() { + public CommerceSubscriptionItem2Plan build() { - return new SchemasCommerceSubscriptionItemPlan( + return new CommerceSubscriptionItem2Plan( object, id, name, fee, annualMonthlyFee, annualFee, amount, amountFormatted, annualMonthlyAmount, diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java similarity index 65% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java index 535036c6..32dac3cf 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPlanObject + * CommerceSubscriptionItem2PlanObject * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemPlanObject { +public enum CommerceSubscriptionItem2PlanObject { COMMERCE_PLAN("commerce_plan"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPlanObject(String value) { + CommerceSubscriptionItem2PlanObject(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPlanObject o: SchemasCommerceSubscriptionItemPlanObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PlanObject o: CommerceSubscriptionItem2PlanObject.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java similarity index 64% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java index 0036ba7e..4658f5d5 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java @@ -9,18 +9,18 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPlanPeriod + * CommerceSubscriptionItem2PlanPeriod * *

The billing period for this subscription. */ -public enum SchemasCommerceSubscriptionItemPlanPeriod { +public enum CommerceSubscriptionItem2PlanPeriod { MONTH("month"), ANNUAL("annual"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPlanPeriod(String value) { + CommerceSubscriptionItem2PlanPeriod(String value) { this.value = value; } @@ -28,8 +28,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPlanPeriod o: SchemasCommerceSubscriptionItemPlanPeriod.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PlanPeriod o: CommerceSubscriptionItem2PlanPeriod.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java similarity index 85% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java index 6cf59f66..d517dbdc 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemProration { +public class CommerceSubscriptionItem2Proration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemProration { private double cycleRemainingPercent; @JsonCreator - public SchemasCommerceSubscriptionItemProration( + public CommerceSubscriptionItem2Proration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_remaining") long cycleDaysRemaining, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2Proration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemProration withCycleDaysRemaining(long cycleDaysRemaining) { + public CommerceSubscriptionItem2Proration withCycleDaysRemaining(long cycleDaysRemaining) { Utils.checkNotNull(cycleDaysRemaining, "cycleDaysRemaining"); this.cycleDaysRemaining = cycleDaysRemaining; return this; } - public SchemasCommerceSubscriptionItemProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2Proration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemProration withCycleRemainingPercent(double cycleRemainingPercent) { + public CommerceSubscriptionItem2Proration withCycleRemainingPercent(double cycleRemainingPercent) { Utils.checkNotNull(cycleRemainingPercent, "cycleRemainingPercent"); this.cycleRemainingPercent = cycleRemainingPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemProration other = (SchemasCommerceSubscriptionItemProration) o; + CommerceSubscriptionItem2Proration other = (CommerceSubscriptionItem2Proration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysRemaining, other.cycleDaysRemaining) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemProration.class, + return Utils.toString(CommerceSubscriptionItem2Proration.class, "amount", amount, "cycleDaysRemaining", cycleDaysRemaining, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cycleRemainingPercent(double cycleRemainingPercent) { return this; } - public SchemasCommerceSubscriptionItemProration build() { + public CommerceSubscriptionItem2Proration build() { - return new SchemasCommerceSubscriptionItemProration( + return new CommerceSubscriptionItem2Proration( amount, cycleDaysRemaining, cycleDaysTotal, cycleRemainingPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java similarity index 69% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java index 21103cee..09f06f01 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java @@ -9,11 +9,11 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemStatus + * CommerceSubscriptionItem2Status * *

Current status of the subscription item. */ -public enum SchemasCommerceSubscriptionItemStatus { +public enum CommerceSubscriptionItem2Status { ACTIVE("active"), ENDED("ended"), PAST_DUE("past_due"), @@ -24,7 +24,7 @@ public enum SchemasCommerceSubscriptionItemStatus { @JsonValue private final String value; - SchemasCommerceSubscriptionItemStatus(String value) { + CommerceSubscriptionItem2Status(String value) { this.value = value; } @@ -32,8 +32,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemStatus o: SchemasCommerceSubscriptionItemStatus.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2Status o: CommerceSubscriptionItem2Status.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java similarity index 74% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java index 85b46643..ed93db51 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java @@ -17,12 +17,12 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemTotals + * CommerceSubscriptionItem2Totals * *

Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ -public class SchemasCommerceSubscriptionItemTotals { +public class CommerceSubscriptionItem2Totals { @JsonProperty("subtotal") private CommerceMoneyResponse subtotal; @@ -47,22 +47,22 @@ public class SchemasCommerceSubscriptionItemTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credits") - private JsonNullable credits; + private JsonNullable credits; @JsonInclude(Include.NON_ABSENT) @JsonProperty("discounts") - private JsonNullable discounts; + private JsonNullable discounts; @JsonCreator - public SchemasCommerceSubscriptionItemTotals( + public CommerceSubscriptionItem2Totals( @JsonProperty("subtotal") CommerceMoneyResponse subtotal, @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("credits") JsonNullable credits, - @JsonProperty("discounts") JsonNullable discounts) { + @JsonProperty("credits") JsonNullable credits, + @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); Utils.checkNotNull(baseFee, "baseFee"); Utils.checkNotNull(taxTotal, "taxTotal"); @@ -79,7 +79,7 @@ public SchemasCommerceSubscriptionItemTotals( this.discounts = discounts; } - public SchemasCommerceSubscriptionItemTotals( + public CommerceSubscriptionItem2Totals( CommerceMoneyResponse subtotal, CommerceMoneyResponse baseFee, CommerceMoneyResponse taxTotal, @@ -117,14 +117,14 @@ public Optional> perUnitTotals() { @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable credits() { - return (JsonNullable) credits; + public JsonNullable credits() { + return (JsonNullable) credits; } @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable discounts() { - return (JsonNullable) discounts; + public JsonNullable discounts() { + return (JsonNullable) discounts; } public static Builder builder() { @@ -132,62 +132,62 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemTotals withSubtotal(CommerceMoneyResponse subtotal) { + public CommerceSubscriptionItem2Totals withSubtotal(CommerceMoneyResponse subtotal) { Utils.checkNotNull(subtotal, "subtotal"); this.subtotal = subtotal; return this; } - public SchemasCommerceSubscriptionItemTotals withBaseFee(CommerceMoneyResponse baseFee) { + public CommerceSubscriptionItem2Totals withBaseFee(CommerceMoneyResponse baseFee) { Utils.checkNotNull(baseFee, "baseFee"); this.baseFee = baseFee; return this; } - public SchemasCommerceSubscriptionItemTotals withTaxTotal(CommerceMoneyResponse taxTotal) { + public CommerceSubscriptionItem2Totals withTaxTotal(CommerceMoneyResponse taxTotal) { Utils.checkNotNull(taxTotal, "taxTotal"); this.taxTotal = taxTotal; return this; } - public SchemasCommerceSubscriptionItemTotals withGrandTotal(CommerceMoneyResponse grandTotal) { + public CommerceSubscriptionItem2Totals withGrandTotal(CommerceMoneyResponse grandTotal) { Utils.checkNotNull(grandTotal, "grandTotal"); this.grandTotal = grandTotal; return this; } - public SchemasCommerceSubscriptionItemTotals withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionItem2Totals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public SchemasCommerceSubscriptionItemTotals withPerUnitTotals(Optional> perUnitTotals) { + public CommerceSubscriptionItem2Totals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; } - public SchemasCommerceSubscriptionItemTotals withCredits(SchemasCommerceSubscriptionItemCredits credits) { + public CommerceSubscriptionItem2Totals withCredits(CommerceSubscriptionItem2Credits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public SchemasCommerceSubscriptionItemTotals withCredits(JsonNullable credits) { + public CommerceSubscriptionItem2Totals withCredits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public SchemasCommerceSubscriptionItemTotals withDiscounts(SchemasCommerceSubscriptionItemDiscounts discounts) { + public CommerceSubscriptionItem2Totals withDiscounts(CommerceSubscriptionItem2Discounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public SchemasCommerceSubscriptionItemTotals withDiscounts(JsonNullable discounts) { + public CommerceSubscriptionItem2Totals withDiscounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemTotals other = (SchemasCommerceSubscriptionItemTotals) o; + CommerceSubscriptionItem2Totals other = (CommerceSubscriptionItem2Totals) o; return Utils.enhancedDeepEquals(this.subtotal, other.subtotal) && Utils.enhancedDeepEquals(this.baseFee, other.baseFee) && @@ -222,7 +222,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemTotals.class, + return Utils.toString(CommerceSubscriptionItem2Totals.class, "subtotal", subtotal, "baseFee", baseFee, "taxTotal", taxTotal, @@ -245,9 +245,9 @@ public final static class Builder { private Optional> perUnitTotals = Optional.empty(); - private JsonNullable credits = JsonNullable.undefined(); + private JsonNullable credits = JsonNullable.undefined(); - private JsonNullable discounts = JsonNullable.undefined(); + private JsonNullable discounts = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -295,34 +295,34 @@ public Builder perUnitTotals(Optional> perU } - public Builder credits(SchemasCommerceSubscriptionItemCredits credits) { + public Builder credits(CommerceSubscriptionItem2Credits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public Builder credits(JsonNullable credits) { + public Builder credits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public Builder discounts(SchemasCommerceSubscriptionItemDiscounts discounts) { + public Builder discounts(CommerceSubscriptionItem2Discounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public Builder discounts(JsonNullable discounts) { + public Builder discounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; } - public SchemasCommerceSubscriptionItemTotals build() { + public CommerceSubscriptionItem2Totals build() { - return new SchemasCommerceSubscriptionItemTotals( + return new CommerceSubscriptionItem2Totals( subtotal, baseFee, taxTotal, grandTotal, perUnitTotals, credits, discounts); diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java index 799cfa8e..9cf9904a 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java @@ -34,7 +34,7 @@ public class CommerceSubscriptionNextPayment { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; /** * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax @@ -48,7 +48,7 @@ public class CommerceSubscriptionNextPayment { public CommerceSubscriptionNextPayment( @JsonProperty("date") long date, @JsonProperty("amount") CommerceMoneyResponse amount, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("totals") JsonNullable totals) { Utils.checkNotNull(date, "date"); Utils.checkNotNull(amount, "amount"); @@ -85,8 +85,8 @@ public CommerceMoneyResponse amount() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } /** @@ -122,7 +122,7 @@ public CommerceSubscriptionNextPayment withAmount(CommerceMoneyResponse amount) /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public CommerceSubscriptionNextPayment withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionNextPayment withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; @@ -132,7 +132,7 @@ public CommerceSubscriptionNextPayment withPerUnitTotals(List> perUnitTotals) { + public CommerceSubscriptionNextPayment withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -197,7 +197,7 @@ public final static class Builder { private CommerceMoneyResponse amount; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable totals = JsonNullable.undefined(); @@ -226,7 +226,7 @@ public Builder amount(CommerceMoneyResponse amount) { /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; @@ -235,7 +235,7 @@ public Builder perUnitTotals(List perUnitTotals) { /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java index 67c58898..72605086 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java @@ -42,7 +42,7 @@ public class CommerceSubscriptionNextPaymentTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; @JsonInclude(Include.NON_ABSENT) @@ -62,7 +62,7 @@ public CommerceSubscriptionNextPaymentTotals( @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("credits") JsonNullable credits, @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); @@ -113,8 +113,8 @@ public CommerceMoneyResponse grandTotal() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } @SuppressWarnings("unchecked") @@ -161,14 +161,14 @@ public CommerceSubscriptionNextPaymentTotals withGrandTotal(CommerceMoneyRespons return this; } - public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { + public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -254,7 +254,7 @@ public final static class Builder { private CommerceMoneyResponse grandTotal; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable credits = JsonNullable.undefined(); @@ -293,13 +293,13 @@ public Builder grandTotal(CommerceMoneyResponse grandTotal) { } - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/Credit.java b/src/main/java/com/clerk/backend_api/models/components/Credit.java index 4250798f..23519fca 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Credit.java +++ b/src/main/java/com/clerk/backend_api/models/components/Credit.java @@ -27,7 +27,7 @@ public class Credit { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Percentage of the billing cycle remaining. @@ -38,7 +38,7 @@ public class Credit { @JsonCreator public Credit( - @JsonProperty("amount") JsonNullable amount, + @JsonProperty("amount") JsonNullable amount, @JsonProperty("cycle_remaining_percent") Optional cycleRemainingPercent) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(cycleRemainingPercent, "cycleRemainingPercent"); @@ -55,8 +55,8 @@ public Credit() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -75,7 +75,7 @@ public static Builder builder() { /** * Credit amount. */ - public Credit withAmount(SchemasCommerceSubscriptionItemCreditAmount amount) { + public Credit withAmount(CommerceSubscriptionItem2CreditAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -84,7 +84,7 @@ public Credit withAmount(SchemasCommerceSubscriptionItemCreditAmount amount) { /** * Credit amount. */ - public Credit withAmount(JsonNullable amount) { + public Credit withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -139,7 +139,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private Optional cycleRemainingPercent = Optional.empty(); @@ -151,7 +151,7 @@ private Builder() { /** * Credit amount. */ - public Builder amount(SchemasCommerceSubscriptionItemCreditAmount amount) { + public Builder amount(CommerceSubscriptionItem2CreditAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -160,7 +160,7 @@ public Builder amount(SchemasCommerceSubscriptionItemCreditAmount amount) { /** * Credit amount. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java b/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java index f298e70e..b86f4899 100644 --- a/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java +++ b/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java @@ -16,7 +16,8 @@ public enum EnrollmentMode { MANUAL_INVITATION("manual_invitation"), AUTOMATIC_INVITATION("automatic_invitation"), - AUTOMATIC_SUGGESTION("automatic_suggestion"); + AUTOMATIC_SUGGESTION("automatic_suggestion"), + ENTERPRISE_SSO("enterprise_sso"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java index f76c8028..6b1fd2d2 100644 --- a/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class ErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public ErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public ErrorClerkError withCode(String code) { return this; } - public ErrorClerkError withMeta(ErrorMeta meta) { + public ErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public ErrorClerkError withMeta(Optional meta) { + public ErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ErrorMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java b/src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java deleted file mode 100644 index be91029e..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ErrorMeta { - @JsonCreator - public ErrorMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ErrorMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ErrorMeta build() { - - return new ErrorMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java similarity index 87% rename from src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java rename to src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java index 0dabf600..9b50488d 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java +++ b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java @@ -11,12 +11,12 @@ import java.lang.String; -public class SchemasFeatureResponse { +public class FeatureResponse2 { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasFeatureResponseObject object; + private FeatureResponse2Object object; /** * Unique identifier for the feature. @@ -49,8 +49,8 @@ public class SchemasFeatureResponse { private String avatarUrl; @JsonCreator - public SchemasFeatureResponse( - @JsonProperty("object") SchemasFeatureResponseObject object, + public FeatureResponse2( + @JsonProperty("object") FeatureResponse2Object object, @JsonProperty("id") String id, @JsonProperty("name") String name, @JsonProperty("description") String description, @@ -74,7 +74,7 @@ public SchemasFeatureResponse( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasFeatureResponseObject object() { + public FeatureResponse2Object object() { return object; } @@ -126,7 +126,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasFeatureResponse withObject(SchemasFeatureResponseObject object) { + public FeatureResponse2 withObject(FeatureResponse2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -135,7 +135,7 @@ public SchemasFeatureResponse withObject(SchemasFeatureResponseObject object) { /** * Unique identifier for the feature. */ - public SchemasFeatureResponse withId(String id) { + public FeatureResponse2 withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -144,7 +144,7 @@ public SchemasFeatureResponse withId(String id) { /** * The name of the feature. */ - public SchemasFeatureResponse withName(String name) { + public FeatureResponse2 withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -153,7 +153,7 @@ public SchemasFeatureResponse withName(String name) { /** * The description of the feature. */ - public SchemasFeatureResponse withDescription(String description) { + public FeatureResponse2 withDescription(String description) { Utils.checkNotNull(description, "description"); this.description = description; return this; @@ -162,7 +162,7 @@ public SchemasFeatureResponse withDescription(String description) { /** * The URL-friendly slug for the feature. */ - public SchemasFeatureResponse withSlug(String slug) { + public FeatureResponse2 withSlug(String slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -171,7 +171,7 @@ public SchemasFeatureResponse withSlug(String slug) { /** * The URL of the feature's avatar image. */ - public SchemasFeatureResponse withAvatarUrl(String avatarUrl) { + public FeatureResponse2 withAvatarUrl(String avatarUrl) { Utils.checkNotNull(avatarUrl, "avatarUrl"); this.avatarUrl = avatarUrl; return this; @@ -185,7 +185,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasFeatureResponse other = (SchemasFeatureResponse) o; + FeatureResponse2 other = (FeatureResponse2) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -204,7 +204,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasFeatureResponse.class, + return Utils.toString(FeatureResponse2.class, "object", object, "id", id, "name", name, @@ -216,7 +216,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasFeatureResponseObject object; + private FeatureResponse2Object object; private String id; @@ -236,7 +236,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasFeatureResponseObject object) { + public Builder object(FeatureResponse2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -292,9 +292,9 @@ public Builder avatarUrl(String avatarUrl) { return this; } - public SchemasFeatureResponse build() { + public FeatureResponse2 build() { - return new SchemasFeatureResponse( + return new FeatureResponse2( object, id, name, description, slug, avatarUrl); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java similarity index 70% rename from src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java rename to src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java index 0a20ffc7..02ac4687 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasFeatureResponseObject + * FeatureResponse2Object * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasFeatureResponseObject { +public enum FeatureResponse2Object { FEATURE("feature"); @JsonValue private final String value; - SchemasFeatureResponseObject(String value) { + FeatureResponse2Object(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasFeatureResponseObject o: SchemasFeatureResponseObject.values()) { + public static Optional fromValue(String value) { + for (FeatureResponse2Object o: FeatureResponse2Object.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/Meta.java b/src/main/java/com/clerk/backend_api/models/components/Meta.java deleted file mode 100644 index 8d5b2986..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/Meta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class Meta { - @JsonCreator - public Meta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(Meta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Meta build() { - - return new Meta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java b/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java index 9789270b..dd37044f 100644 --- a/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java +++ b/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java @@ -29,7 +29,7 @@ public class NextInvoice { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Unix timestamp (in milliseconds) for the next payment date. @@ -51,14 +51,14 @@ public class NextInvoice { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("totals") - private JsonNullable totals; + private JsonNullable totals; @JsonCreator public NextInvoice( - @JsonProperty("amount") JsonNullable amount, + @JsonProperty("amount") JsonNullable amount, @JsonProperty("date") JsonNullable date, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("totals") JsonNullable totals) { + @JsonProperty("totals") JsonNullable totals) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(perUnitTotals, "perUnitTotals"); @@ -80,8 +80,8 @@ public NextInvoice() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -107,8 +107,8 @@ public Optional> perUnitTotals() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable totals() { - return (JsonNullable) totals; + public JsonNullable totals() { + return (JsonNullable) totals; } public static Builder builder() { @@ -120,7 +120,7 @@ public static Builder builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public NextInvoice withAmount(SchemasCommerceSubscriptionItemNextInvoiceAmount amount) { + public NextInvoice withAmount(CommerceSubscriptionItem2NextInvoiceAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -130,7 +130,7 @@ public NextInvoice withAmount(SchemasCommerceSubscriptionItemNextInvoiceAmount a * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public NextInvoice withAmount(JsonNullable amount) { + public NextInvoice withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -177,7 +177,7 @@ public NextInvoice withPerUnitTotals(Optional totals) { + public NextInvoice withTotals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; @@ -228,13 +228,13 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private JsonNullable date = JsonNullable.undefined(); private Optional> perUnitTotals = Optional.empty(); - private JsonNullable totals = JsonNullable.undefined(); + private JsonNullable totals = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -245,7 +245,7 @@ private Builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(SchemasCommerceSubscriptionItemNextInvoiceAmount amount) { + public Builder amount(CommerceSubscriptionItem2NextInvoiceAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -255,7 +255,7 @@ public Builder amount(SchemasCommerceSubscriptionItemNextInvoiceAmount amount) { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -304,7 +304,7 @@ public Builder perUnitTotals(Optional> perU * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(SchemasCommerceSubscriptionItemTotals totals) { + public Builder totals(CommerceSubscriptionItem2Totals totals) { Utils.checkNotNull(totals, "totals"); this.totals = JsonNullable.of(totals); return this; @@ -314,7 +314,7 @@ public Builder totals(SchemasCommerceSubscriptionItemTotals totals) { * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(JsonNullable totals) { + public Builder totals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/One.java b/src/main/java/com/clerk/backend_api/models/components/One.java index b44ca479..d4467889 100644 --- a/src/main/java/com/clerk/backend_api/models/components/One.java +++ b/src/main/java/com/clerk/backend_api/models/components/One.java @@ -61,6 +61,22 @@ public class One { @JsonProperty("idp_certificate") private Optional idpCertificate; + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_issued_at") + private Optional idpCertificateIssuedAt; + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_expires_at") + private Optional idpCertificateExpiresAt; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("idp_metadata_url") @@ -158,6 +174,8 @@ public One( @JsonProperty("idp_entity_id") Optional idpEntityId, @JsonProperty("idp_sso_url") Optional idpSsoUrl, @JsonProperty("idp_certificate") Optional idpCertificate, + @JsonProperty("idp_certificate_issued_at") Optional idpCertificateIssuedAt, + @JsonProperty("idp_certificate_expires_at") Optional idpCertificateExpiresAt, @JsonProperty("idp_metadata_url") JsonNullable idpMetadataUrl, @JsonProperty("idp_metadata") JsonNullable idpMetadata, @JsonProperty("acs_url") String acsUrl, @@ -185,6 +203,8 @@ public One( Utils.checkNotNull(idpEntityId, "idpEntityId"); Utils.checkNotNull(idpSsoUrl, "idpSsoUrl"); Utils.checkNotNull(idpCertificate, "idpCertificate"); + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); Utils.checkNotNull(idpMetadata, "idpMetadata"); Utils.checkNotNull(acsUrl, "acsUrl"); @@ -212,6 +232,8 @@ public One( this.idpEntityId = idpEntityId; this.idpSsoUrl = idpSsoUrl; this.idpCertificate = idpCertificate; + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + this.idpCertificateExpiresAt = idpCertificateExpiresAt; this.idpMetadataUrl = idpMetadataUrl; this.idpMetadata = idpMetadata; this.acsUrl = acsUrl; @@ -254,13 +276,14 @@ public One( long updatedAt) { this(object, id, name, domain, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), acsUrl, spEntityId, - spMetadataUrl, JsonNullable.undefined(), Optional.empty(), - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, - JsonNullable.undefined(), createdAt, updatedAt); + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + acsUrl, spEntityId, spMetadataUrl, + JsonNullable.undefined(), Optional.empty(), active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, JsonNullable.undefined(), + createdAt, updatedAt); } @JsonIgnore @@ -309,6 +332,24 @@ public Optional idpCertificate() { return idpCertificate; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateIssuedAt() { + return idpCertificateIssuedAt; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateExpiresAt() { + return idpCertificateExpiresAt; + } + @JsonIgnore public JsonNullable idpMetadataUrl() { return idpMetadataUrl; @@ -500,6 +541,48 @@ public One withIdpCertificate(Optional idpCertificate) { return this; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public One withIdpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public One withIdpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public One withIdpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public One withIdpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + public One withIdpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -672,6 +755,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.idpEntityId, other.idpEntityId) && Utils.enhancedDeepEquals(this.idpSsoUrl, other.idpSsoUrl) && Utils.enhancedDeepEquals(this.idpCertificate, other.idpCertificate) && + Utils.enhancedDeepEquals(this.idpCertificateIssuedAt, other.idpCertificateIssuedAt) && + Utils.enhancedDeepEquals(this.idpCertificateExpiresAt, other.idpCertificateExpiresAt) && Utils.enhancedDeepEquals(this.idpMetadataUrl, other.idpMetadataUrl) && Utils.enhancedDeepEquals(this.idpMetadata, other.idpMetadata) && Utils.enhancedDeepEquals(this.acsUrl, other.acsUrl) && @@ -698,13 +783,14 @@ public int hashCode() { return Utils.enhancedHash( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, - enterpriseConnectionId, createdAt, updatedAt); + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, enterpriseConnectionId, + createdAt, updatedAt); } @Override @@ -718,6 +804,8 @@ public String toString() { "idpEntityId", idpEntityId, "idpSsoUrl", idpSsoUrl, "idpCertificate", idpCertificate, + "idpCertificateIssuedAt", idpCertificateIssuedAt, + "idpCertificateExpiresAt", idpCertificateExpiresAt, "idpMetadataUrl", idpMetadataUrl, "idpMetadata", idpMetadata, "acsUrl", acsUrl, @@ -759,6 +847,10 @@ public final static class Builder { private Optional idpCertificate = Optional.empty(); + private Optional idpCertificateIssuedAt = Optional.empty(); + + private Optional idpCertificateExpiresAt = Optional.empty(); + private JsonNullable idpMetadataUrl = JsonNullable.undefined(); private JsonNullable idpMetadata = JsonNullable.undefined(); @@ -887,6 +979,48 @@ public Builder idpCertificate(Optional idpCertificate) { } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + + public Builder idpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -1063,13 +1197,14 @@ public One build() { return new One( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, - enterpriseConnectionId, createdAt, updatedAt); + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, enterpriseConnectionId, + createdAt, updatedAt); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/Payer.java b/src/main/java/com/clerk/backend_api/models/components/Payer.java index c70c619c..05a41209 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Payer.java +++ b/src/main/java/com/clerk/backend_api/models/components/Payer.java @@ -25,7 +25,7 @@ public class Payer { * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemPayerObject object; + private CommerceSubscriptionItem2PayerObject object; /** * Unique identifier for the payer. @@ -103,7 +103,7 @@ public class Payer { @JsonCreator public Payer( - @JsonProperty("object") SchemasCommerceSubscriptionItemPayerObject object, + @JsonProperty("object") CommerceSubscriptionItem2PayerObject object, @JsonProperty("id") String id, @JsonProperty("instance_id") String instanceId, @JsonProperty("user_id") Optional userId, @@ -145,7 +145,7 @@ public Payer( } public Payer( - SchemasCommerceSubscriptionItemPayerObject object, + CommerceSubscriptionItem2PayerObject object, String id, String instanceId, String firstName, @@ -165,7 +165,7 @@ public Payer( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPayerObject object() { + public CommerceSubscriptionItem2PayerObject object() { return object; } @@ -271,7 +271,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Payer withObject(SchemasCommerceSubscriptionItemPayerObject object) { + public Payer withObject(CommerceSubscriptionItem2PayerObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -475,7 +475,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemPayerObject object; + private CommerceSubscriptionItem2PayerObject object; private String id; @@ -509,7 +509,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemPayerObject object) { + public Builder object(CommerceSubscriptionItem2PayerObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java b/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java index 520e17f7..b389153d 100644 --- a/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java +++ b/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java @@ -26,7 +26,7 @@ public class PaymentSource { * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemPaymentSourceObject object; + private CommerceSubscriptionItem2PaymentSourceObject object; /** * Unique identifier for the payment source. @@ -82,7 +82,7 @@ public class PaymentSource { * Status of the payment source. */ @JsonProperty("status") - private SchemasCommerceSubscriptionItemPaymentSourceStatus status; + private CommerceSubscriptionItem2PaymentSourceStatus status; /** * Type of wallet (if applicable). @@ -131,7 +131,7 @@ public class PaymentSource { @JsonCreator public PaymentSource( - @JsonProperty("object") SchemasCommerceSubscriptionItemPaymentSourceObject object, + @JsonProperty("object") CommerceSubscriptionItem2PaymentSourceObject object, @JsonProperty("id") String id, @JsonProperty("payer_id") String payerId, @JsonProperty("payment_method") PaymentMethod paymentMethod, @@ -140,7 +140,7 @@ public PaymentSource( @JsonProperty("gateway_external_id") String gatewayExternalId, @JsonProperty("gateway_external_account_id") JsonNullable gatewayExternalAccountId, @JsonProperty("last4") String last4, - @JsonProperty("status") SchemasCommerceSubscriptionItemPaymentSourceStatus status, + @JsonProperty("status") CommerceSubscriptionItem2PaymentSourceStatus status, @JsonProperty("wallet_type") String walletType, @JsonProperty("card_type") String cardType, @JsonProperty("expiry_year") Optional expiryYear, @@ -185,14 +185,14 @@ public PaymentSource( } public PaymentSource( - SchemasCommerceSubscriptionItemPaymentSourceObject object, + CommerceSubscriptionItem2PaymentSourceObject object, String id, String payerId, PaymentMethod paymentMethod, String gateway, String gatewayExternalId, String last4, - SchemasCommerceSubscriptionItemPaymentSourceStatus status, + CommerceSubscriptionItem2PaymentSourceStatus status, String walletType, String cardType, long createdAt, @@ -209,7 +209,7 @@ public PaymentSource( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPaymentSourceObject object() { + public CommerceSubscriptionItem2PaymentSourceObject object() { return object; } @@ -281,7 +281,7 @@ public String last4() { * Status of the payment source. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPaymentSourceStatus status() { + public CommerceSubscriptionItem2PaymentSourceStatus status() { return status; } @@ -349,7 +349,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public PaymentSource withObject(SchemasCommerceSubscriptionItemPaymentSourceObject object) { + public PaymentSource withObject(CommerceSubscriptionItem2PaymentSourceObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -448,7 +448,7 @@ public PaymentSource withLast4(String last4) { /** * Status of the payment source. */ - public PaymentSource withStatus(SchemasCommerceSubscriptionItemPaymentSourceStatus status) { + public PaymentSource withStatus(CommerceSubscriptionItem2PaymentSourceStatus status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -611,7 +611,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemPaymentSourceObject object; + private CommerceSubscriptionItem2PaymentSourceObject object; private String id; @@ -629,7 +629,7 @@ public final static class Builder { private String last4; - private SchemasCommerceSubscriptionItemPaymentSourceStatus status; + private CommerceSubscriptionItem2PaymentSourceStatus status; private String walletType; @@ -653,7 +653,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemPaymentSourceObject object) { + public Builder object(CommerceSubscriptionItem2PaymentSourceObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -761,7 +761,7 @@ public Builder last4(String last4) { /** * Status of the payment source. */ - public Builder status(SchemasCommerceSubscriptionItemPaymentSourceStatus status) { + public Builder status(CommerceSubscriptionItem2PaymentSourceStatus status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java new file mode 100644 index 00000000..a3e3597d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java @@ -0,0 +1,692 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * SCIMDirectory + * + *

A SCIM directory configuration for provisioning users via SCIM protocol. + */ +public class SCIMDirectory { + /** + * String representing the object's type. Always "scim_directory". + */ + @JsonProperty("object") + private SCIMDirectoryObject object; + + /** + * Unique identifier for the SCIM directory. + */ + @JsonProperty("id") + private String id; + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonProperty("name") + private String name; + + /** + * The ID of the associated enterprise connection. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enterprise_connection_id") + private JsonNullable enterpriseConnectionId; + + /** + * The SCIM endpoint URL for this directory. + */ + @JsonProperty("endpoint_url") + private String endpointUrl; + + /** + * The identity provider for this SCIM directory. + */ + @JsonProperty("provider") + private String provider; + + /** + * Whether the SCIM directory is enabled. + */ + @JsonProperty("enabled") + private boolean enabled; + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonProperty("group_role_mapping_enabled") + private boolean groupRoleMappingEnabled; + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + @JsonProperty("attribute_mapping") + private Map attributeMapping; + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("custom_attributes") + private Optional> customAttributes; + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_key") + private JsonNullable apiKey; + + /** + * Unix timestamp when the SCIM directory was created. + */ + @JsonProperty("created_at") + private long createdAt; + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + @JsonProperty("updated_at") + private long updatedAt; + + @JsonCreator + public SCIMDirectory( + @JsonProperty("object") SCIMDirectoryObject object, + @JsonProperty("id") String id, + @JsonProperty("name") String name, + @JsonProperty("enterprise_connection_id") JsonNullable enterpriseConnectionId, + @JsonProperty("endpoint_url") String endpointUrl, + @JsonProperty("provider") String provider, + @JsonProperty("enabled") boolean enabled, + @JsonProperty("group_role_mapping_enabled") boolean groupRoleMappingEnabled, + @JsonProperty("attribute_mapping") Map attributeMapping, + @JsonProperty("custom_attributes") Optional> customAttributes, + @JsonProperty("api_key") JsonNullable apiKey, + @JsonProperty("created_at") long createdAt, + @JsonProperty("updated_at") long updatedAt) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + Utils.checkNotNull(endpointUrl, "endpointUrl"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(enabled, "enabled"); + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + attributeMapping = Utils.emptyMapIfNull(attributeMapping); + Utils.checkNotNull(attributeMapping, "attributeMapping"); + Utils.checkNotNull(customAttributes, "customAttributes"); + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.object = object; + this.id = id; + this.name = name; + this.enterpriseConnectionId = enterpriseConnectionId; + this.endpointUrl = endpointUrl; + this.provider = provider; + this.enabled = enabled; + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + this.attributeMapping = attributeMapping; + this.customAttributes = customAttributes; + this.apiKey = apiKey; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public SCIMDirectory( + SCIMDirectoryObject object, + String id, + String name, + String endpointUrl, + String provider, + boolean enabled, + boolean groupRoleMappingEnabled, + Map attributeMapping, + long createdAt, + long updatedAt) { + this(object, id, name, + JsonNullable.undefined(), endpointUrl, provider, + enabled, groupRoleMappingEnabled, attributeMapping, + Optional.empty(), JsonNullable.undefined(), createdAt, + updatedAt); + } + + /** + * String representing the object's type. Always "scim_directory". + */ + @JsonIgnore + public SCIMDirectoryObject object() { + return object; + } + + /** + * Unique identifier for the SCIM directory. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonIgnore + public String name() { + return name; + } + + /** + * The ID of the associated enterprise connection. + */ + @JsonIgnore + public JsonNullable enterpriseConnectionId() { + return enterpriseConnectionId; + } + + /** + * The SCIM endpoint URL for this directory. + */ + @JsonIgnore + public String endpointUrl() { + return endpointUrl; + } + + /** + * The identity provider for this SCIM directory. + */ + @JsonIgnore + public String provider() { + return provider; + } + + /** + * Whether the SCIM directory is enabled. + */ + @JsonIgnore + public boolean enabled() { + return enabled; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonIgnore + public boolean groupRoleMappingEnabled() { + return groupRoleMappingEnabled; + } + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + @JsonIgnore + public Map attributeMapping() { + return attributeMapping; + } + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> customAttributes() { + return (Optional>) customAttributes; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + @JsonIgnore + public JsonNullable apiKey() { + return apiKey; + } + + /** + * Unix timestamp when the SCIM directory was created. + */ + @JsonIgnore + public long createdAt() { + return createdAt; + } + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + @JsonIgnore + public long updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. Always "scim_directory". + */ + public SCIMDirectory withObject(SCIMDirectoryObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** + * Unique identifier for the SCIM directory. + */ + public SCIMDirectory withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public SCIMDirectory withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The ID of the associated enterprise connection. + */ + public SCIMDirectory withEnterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); + return this; + } + + /** + * The ID of the associated enterprise connection. + */ + public SCIMDirectory withEnterpriseConnectionId(JsonNullable enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + /** + * The SCIM endpoint URL for this directory. + */ + public SCIMDirectory withEndpointUrl(String endpointUrl) { + Utils.checkNotNull(endpointUrl, "endpointUrl"); + this.endpointUrl = endpointUrl; + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public SCIMDirectory withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + /** + * Whether the SCIM directory is enabled. + */ + public SCIMDirectory withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public SCIMDirectory withGroupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + public SCIMDirectory withAttributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public SCIMDirectory withCustomAttributes(List customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = Optional.ofNullable(customAttributes); + return this; + } + + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public SCIMDirectory withCustomAttributes(Optional> customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = customAttributes; + return this; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public SCIMDirectory withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = JsonNullable.of(apiKey); + return this; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public SCIMDirectory withApiKey(JsonNullable apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Unix timestamp when the SCIM directory was created. + */ + public SCIMDirectory withCreatedAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + public SCIMDirectory withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMDirectory other = (SCIMDirectory) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.enterpriseConnectionId, other.enterpriseConnectionId) && + Utils.enhancedDeepEquals(this.endpointUrl, other.endpointUrl) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.enabled, other.enabled) && + Utils.enhancedDeepEquals(this.groupRoleMappingEnabled, other.groupRoleMappingEnabled) && + Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && + Utils.enhancedDeepEquals(this.customAttributes, other.customAttributes) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, name, + enterpriseConnectionId, endpointUrl, provider, + enabled, groupRoleMappingEnabled, attributeMapping, + customAttributes, apiKey, createdAt, + updatedAt); + } + + @Override + public String toString() { + return Utils.toString(SCIMDirectory.class, + "object", object, + "id", id, + "name", name, + "enterpriseConnectionId", enterpriseConnectionId, + "endpointUrl", endpointUrl, + "provider", provider, + "enabled", enabled, + "groupRoleMappingEnabled", groupRoleMappingEnabled, + "attributeMapping", attributeMapping, + "customAttributes", customAttributes, + "apiKey", apiKey, + "createdAt", createdAt, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SCIMDirectoryObject object; + + private String id; + + private String name; + + private JsonNullable enterpriseConnectionId = JsonNullable.undefined(); + + private String endpointUrl; + + private String provider; + + private Boolean enabled; + + private Boolean groupRoleMappingEnabled; + + private Map attributeMapping; + + private Optional> customAttributes = Optional.empty(); + + private JsonNullable apiKey = JsonNullable.undefined(); + + private Long createdAt; + + private Long updatedAt; + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. Always "scim_directory". + */ + public Builder object(SCIMDirectoryObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + /** + * Unique identifier for the SCIM directory. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * The ID of the associated enterprise connection. + */ + public Builder enterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); + return this; + } + + /** + * The ID of the associated enterprise connection. + */ + public Builder enterpriseConnectionId(JsonNullable enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + + /** + * The SCIM endpoint URL for this directory. + */ + public Builder endpointUrl(String endpointUrl) { + Utils.checkNotNull(endpointUrl, "endpointUrl"); + this.endpointUrl = endpointUrl; + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + /** + * Whether the SCIM directory is enabled. + */ + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public Builder groupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + public Builder attributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public Builder customAttributes(List customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = Optional.ofNullable(customAttributes); + return this; + } + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public Builder customAttributes(Optional> customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = customAttributes; + return this; + } + + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = JsonNullable.of(apiKey); + return this; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public Builder apiKey(JsonNullable apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + /** + * Unix timestamp when the SCIM directory was created. + */ + public Builder createdAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + public Builder updatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public SCIMDirectory build() { + + return new SCIMDirectory( + object, id, name, + enterpriseConnectionId, endpointUrl, provider, + enabled, groupRoleMappingEnabled, attributeMapping, + customAttributes, apiKey, createdAt, + updatedAt); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java new file mode 100644 index 00000000..e63ee7d5 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java @@ -0,0 +1,378 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SCIMDirectoryCustomAttributes { + /** + * Display name for the custom attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + private Optional key; + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sso_path") + private Optional ssoPath; + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scim_path") + private Optional scimPath; + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("multi_valued") + private Optional multiValued; + + @JsonCreator + public SCIMDirectoryCustomAttributes( + @JsonProperty("name") Optional name, + @JsonProperty("key") Optional key, + @JsonProperty("sso_path") Optional ssoPath, + @JsonProperty("scim_path") Optional scimPath, + @JsonProperty("multi_valued") Optional multiValued) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(key, "key"); + Utils.checkNotNull(ssoPath, "ssoPath"); + Utils.checkNotNull(scimPath, "scimPath"); + Utils.checkNotNull(multiValued, "multiValued"); + this.name = name; + this.key = key; + this.ssoPath = ssoPath; + this.scimPath = scimPath; + this.multiValued = multiValued; + } + + public SCIMDirectoryCustomAttributes() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * Display name for the custom attribute + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + @JsonIgnore + public Optional key() { + return key; + } + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + @JsonIgnore + public Optional ssoPath() { + return ssoPath; + } + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + @JsonIgnore + public Optional scimPath() { + return scimPath; + } + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + @JsonIgnore + public Optional multiValued() { + return multiValued; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Display name for the custom attribute + */ + public SCIMDirectoryCustomAttributes withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * Display name for the custom attribute + */ + public SCIMDirectoryCustomAttributes withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public SCIMDirectoryCustomAttributes withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public SCIMDirectoryCustomAttributes withKey(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public SCIMDirectoryCustomAttributes withSsoPath(String ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = Optional.ofNullable(ssoPath); + return this; + } + + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public SCIMDirectoryCustomAttributes withSsoPath(Optional ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = ssoPath; + return this; + } + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public SCIMDirectoryCustomAttributes withScimPath(String scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = Optional.ofNullable(scimPath); + return this; + } + + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public SCIMDirectoryCustomAttributes withScimPath(Optional scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = scimPath; + return this; + } + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public SCIMDirectoryCustomAttributes withMultiValued(boolean multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = Optional.ofNullable(multiValued); + return this; + } + + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public SCIMDirectoryCustomAttributes withMultiValued(Optional multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = multiValued; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMDirectoryCustomAttributes other = (SCIMDirectoryCustomAttributes) o; + return + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.key, other.key) && + Utils.enhancedDeepEquals(this.ssoPath, other.ssoPath) && + Utils.enhancedDeepEquals(this.scimPath, other.scimPath) && + Utils.enhancedDeepEquals(this.multiValued, other.multiValued); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name, key, ssoPath, + scimPath, multiValued); + } + + @Override + public String toString() { + return Utils.toString(SCIMDirectoryCustomAttributes.class, + "name", name, + "key", key, + "ssoPath", ssoPath, + "scimPath", scimPath, + "multiValued", multiValued); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private Optional key = Optional.empty(); + + private Optional ssoPath = Optional.empty(); + + private Optional scimPath = Optional.empty(); + + private Optional multiValued = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Display name for the custom attribute + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * Display name for the custom attribute + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public Builder key(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public Builder key(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public Builder ssoPath(String ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = Optional.ofNullable(ssoPath); + return this; + } + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public Builder ssoPath(Optional ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = ssoPath; + return this; + } + + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public Builder scimPath(String scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = Optional.ofNullable(scimPath); + return this; + } + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public Builder scimPath(Optional scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = scimPath; + return this; + } + + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public Builder multiValued(boolean multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = Optional.ofNullable(multiValued); + return this; + } + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public Builder multiValued(Optional multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = multiValued; + return this; + } + + public SCIMDirectoryCustomAttributes build() { + + return new SCIMDirectoryCustomAttributes( + name, key, ssoPath, + scimPath, multiValued); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java new file mode 100644 index 00000000..9d8bec1f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; + +/** + * SCIMDirectoryList + * + *

A list of SCIM directories + */ +public class SCIMDirectoryList { + + @JsonProperty("data") + private List data; + + /** + * Total number of SCIM directories. + */ + @JsonProperty("total_count") + private long totalCount; + + @JsonCreator + public SCIMDirectoryList( + @JsonProperty("data") List data, + @JsonProperty("total_count") long totalCount) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(totalCount, "totalCount"); + this.data = data; + this.totalCount = totalCount; + } + + @JsonIgnore + public List data() { + return data; + } + + /** + * Total number of SCIM directories. + */ + @JsonIgnore + public long totalCount() { + return totalCount; + } + + public static Builder builder() { + return new Builder(); + } + + + public SCIMDirectoryList withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Total number of SCIM directories. + */ + public SCIMDirectoryList withTotalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMDirectoryList other = (SCIMDirectoryList) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.totalCount, other.totalCount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, totalCount); + } + + @Override + public String toString() { + return Utils.toString(SCIMDirectoryList.class, + "data", data, + "totalCount", totalCount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Long totalCount; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + /** + * Total number of SCIM directories. + */ + public Builder totalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + public SCIMDirectoryList build() { + + return new SCIMDirectoryList( + data, totalCount); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java new file mode 100644 index 00000000..cc436a7e --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SCIMDirectoryObject + * + *

String representing the object's type. Always "scim_directory". + */ +public enum SCIMDirectoryObject { + SCIM_DIRECTORY("scim_directory"); + + @JsonValue + private final String value; + + SCIMDirectoryObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SCIMDirectoryObject o: SCIMDirectoryObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java new file mode 100644 index 00000000..c2305a75 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java @@ -0,0 +1,457 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SCIMGroupRoleMapping + * + *

A mapping from a SCIM group to an organization role. Members of the group are assigned the role; the + * lowest-precedence match wins when a user belongs to multiple mapped groups. + */ +public class SCIMGroupRoleMapping { + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + @JsonProperty("object") + private SCIMGroupRoleMappingObject object; + + /** + * Unique identifier for the SCIM group role mapping. + */ + @JsonProperty("id") + private String id; + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + @JsonProperty("scim_directory_id") + private String scimDirectoryId; + + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + @JsonProperty("scim_group_display_name") + private String scimGroupDisplayName; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role") + private Optional role; + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + @JsonProperty("precedence") + private long precedence; + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + @JsonProperty("created_at") + private long createdAt; + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + @JsonProperty("updated_at") + private long updatedAt; + + @JsonCreator + public SCIMGroupRoleMapping( + @JsonProperty("object") SCIMGroupRoleMappingObject object, + @JsonProperty("id") String id, + @JsonProperty("scim_directory_id") String scimDirectoryId, + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("scim_group_display_name") String scimGroupDisplayName, + @JsonProperty("role") Optional role, + @JsonProperty("precedence") long precedence, + @JsonProperty("created_at") long createdAt, + @JsonProperty("updated_at") long updatedAt) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + Utils.checkNotNull(role, "role"); + Utils.checkNotNull(precedence, "precedence"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.object = object; + this.id = id; + this.scimDirectoryId = scimDirectoryId; + this.scimGroupId = scimGroupId; + this.scimGroupDisplayName = scimGroupDisplayName; + this.role = role; + this.precedence = precedence; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public SCIMGroupRoleMapping( + SCIMGroupRoleMappingObject object, + String id, + String scimDirectoryId, + String scimGroupId, + String scimGroupDisplayName, + long precedence, + long createdAt, + long updatedAt) { + this(object, id, scimDirectoryId, + scimGroupId, scimGroupDisplayName, Optional.empty(), + precedence, createdAt, updatedAt); + } + + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + @JsonIgnore + public SCIMGroupRoleMappingObject object() { + return object; + } + + /** + * Unique identifier for the SCIM group role mapping. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + @JsonIgnore + public String scimGroupDisplayName() { + return scimGroupDisplayName; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional role() { + return (Optional) role; + } + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + @JsonIgnore + public long precedence() { + return precedence; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + @JsonIgnore + public long createdAt() { + return createdAt; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + @JsonIgnore + public long updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + public SCIMGroupRoleMapping withObject(SCIMGroupRoleMappingObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** + * Unique identifier for the SCIM group role mapping. + */ + public SCIMGroupRoleMapping withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + public SCIMGroupRoleMapping withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + /** + * The SCIM group ID from the identity provider. + */ + public SCIMGroupRoleMapping withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + public SCIMGroupRoleMapping withScimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + public SCIMGroupRoleMapping withRole(Role role) { + Utils.checkNotNull(role, "role"); + this.role = Optional.ofNullable(role); + return this; + } + + + public SCIMGroupRoleMapping withRole(Optional role) { + Utils.checkNotNull(role, "role"); + this.role = role; + return this; + } + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + public SCIMGroupRoleMapping withPrecedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + public SCIMGroupRoleMapping withCreatedAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + public SCIMGroupRoleMapping withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMGroupRoleMapping other = (SCIMGroupRoleMapping) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.scimGroupDisplayName, other.scimGroupDisplayName) && + Utils.enhancedDeepEquals(this.role, other.role) && + Utils.enhancedDeepEquals(this.precedence, other.precedence) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, scimDirectoryId, + scimGroupId, scimGroupDisplayName, role, + precedence, createdAt, updatedAt); + } + + @Override + public String toString() { + return Utils.toString(SCIMGroupRoleMapping.class, + "object", object, + "id", id, + "scimDirectoryId", scimDirectoryId, + "scimGroupId", scimGroupId, + "scimGroupDisplayName", scimGroupDisplayName, + "role", role, + "precedence", precedence, + "createdAt", createdAt, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SCIMGroupRoleMappingObject object; + + private String id; + + private String scimDirectoryId; + + private String scimGroupId; + + private String scimGroupDisplayName; + + private Optional role = Optional.empty(); + + private Long precedence; + + private Long createdAt; + + private Long updatedAt; + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + public Builder object(SCIMGroupRoleMappingObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + /** + * Unique identifier for the SCIM group role mapping. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + public Builder scimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + + public Builder role(Role role) { + Utils.checkNotNull(role, "role"); + this.role = Optional.ofNullable(role); + return this; + } + + public Builder role(Optional role) { + Utils.checkNotNull(role, "role"); + this.role = role; + return this; + } + + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + public Builder precedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + public Builder createdAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + public Builder updatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public SCIMGroupRoleMapping build() { + + return new SCIMGroupRoleMapping( + object, id, scimDirectoryId, + scimGroupId, scimGroupDisplayName, role, + precedence, createdAt, updatedAt); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java new file mode 100644 index 00000000..8e1ffea5 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; + +/** + * SCIMGroupRoleMappingDeleted + * + *

A SCIM group role mapping was deleted. + */ +public class SCIMGroupRoleMappingDeleted { + /** + * String representing the object's type. + */ + @JsonProperty("object") + private SCIMGroupRoleMappingDeletedObject object; + + /** + * The ID of the deleted SCIM group role mapping. + */ + @JsonProperty("id") + private String id; + + /** + * Whether the SCIM group role mapping was successfully deleted. + */ + @JsonProperty("deleted") + private boolean deleted; + + @JsonCreator + public SCIMGroupRoleMappingDeleted( + @JsonProperty("object") SCIMGroupRoleMappingDeletedObject object, + @JsonProperty("id") String id) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + this.object = object; + this.id = id; + this.deleted = Builder._SINGLETON_VALUE_Deleted.value(); + } + + /** + * String representing the object's type. + */ + @JsonIgnore + public SCIMGroupRoleMappingDeletedObject object() { + return object; + } + + /** + * The ID of the deleted SCIM group role mapping. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * Whether the SCIM group role mapping was successfully deleted. + */ + @JsonIgnore + public boolean deleted() { + return deleted; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. + */ + public SCIMGroupRoleMappingDeleted withObject(SCIMGroupRoleMappingDeletedObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** + * The ID of the deleted SCIM group role mapping. + */ + public SCIMGroupRoleMappingDeleted withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMGroupRoleMappingDeleted other = (SCIMGroupRoleMappingDeleted) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.deleted, other.deleted); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, deleted); + } + + @Override + public String toString() { + return Utils.toString(SCIMGroupRoleMappingDeleted.class, + "object", object, + "id", id, + "deleted", deleted); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SCIMGroupRoleMappingDeletedObject object; + + private String id; + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. + */ + public Builder object(SCIMGroupRoleMappingDeletedObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + /** + * The ID of the deleted SCIM group role mapping. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public SCIMGroupRoleMappingDeleted build() { + + return new SCIMGroupRoleMappingDeleted( + object, id); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_Deleted = + new LazySingletonValue<>( + "deleted", + "true", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java new file mode 100644 index 00000000..5b3bea2c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SCIMGroupRoleMappingDeletedObject + * + *

String representing the object's type. + */ +public enum SCIMGroupRoleMappingDeletedObject { + SCIM_GROUP_ROLE_MAPPING("scim_group_role_mapping"); + + @JsonValue + private final String value; + + SCIMGroupRoleMappingDeletedObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SCIMGroupRoleMappingDeletedObject o: SCIMGroupRoleMappingDeletedObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java new file mode 100644 index 00000000..305244dc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; + +/** + * SCIMGroupRoleMappingList + * + *

A list of SCIM group role mappings, ordered by precedence. + */ +public class SCIMGroupRoleMappingList { + + @JsonProperty("data") + private List data; + + /** + * Total number of SCIM group role mappings in the directory. + */ + @JsonProperty("total_count") + private long totalCount; + + @JsonCreator + public SCIMGroupRoleMappingList( + @JsonProperty("data") List data, + @JsonProperty("total_count") long totalCount) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(totalCount, "totalCount"); + this.data = data; + this.totalCount = totalCount; + } + + @JsonIgnore + public List data() { + return data; + } + + /** + * Total number of SCIM group role mappings in the directory. + */ + @JsonIgnore + public long totalCount() { + return totalCount; + } + + public static Builder builder() { + return new Builder(); + } + + + public SCIMGroupRoleMappingList withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Total number of SCIM group role mappings in the directory. + */ + public SCIMGroupRoleMappingList withTotalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMGroupRoleMappingList other = (SCIMGroupRoleMappingList) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.totalCount, other.totalCount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, totalCount); + } + + @Override + public String toString() { + return Utils.toString(SCIMGroupRoleMappingList.class, + "data", data, + "totalCount", totalCount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Long totalCount; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + /** + * Total number of SCIM group role mappings in the directory. + */ + public Builder totalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + public SCIMGroupRoleMappingList build() { + + return new SCIMGroupRoleMappingList( + data, totalCount); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java new file mode 100644 index 00000000..9a785b47 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SCIMGroupRoleMappingObject + * + *

String representing the object's type. Always "scim_group_role_mapping". + */ +public enum SCIMGroupRoleMappingObject { + SCIM_GROUP_ROLE_MAPPING("scim_group_role_mapping"); + + @JsonValue + private final String value; + + SCIMGroupRoleMappingObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SCIMGroupRoleMappingObject o: SCIMGroupRoleMappingObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java b/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java deleted file mode 100644 index 69442456..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - - -public class SchemasCommerceSubscriptionItemAnnualMonthlyFee { - /** - * The amount in cents. - */ - @JsonProperty("amount") - private long amount; - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonProperty("amount_formatted") - private String amountFormatted; - - /** - * The currency code (e.g., "USD"). - */ - @JsonProperty("currency") - private String currency; - - /** - * The currency symbol (e.g., "$"). - */ - @JsonProperty("currency_symbol") - private String currencySymbol; - - @JsonCreator - public SchemasCommerceSubscriptionItemAnnualMonthlyFee( - @JsonProperty("amount") long amount, - @JsonProperty("amount_formatted") String amountFormatted, - @JsonProperty("currency") String currency, - @JsonProperty("currency_symbol") String currencySymbol) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(amountFormatted, "amountFormatted"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.amount = amount; - this.amountFormatted = amountFormatted; - this.currency = currency; - this.currencySymbol = currencySymbol; - } - - /** - * The amount in cents. - */ - @JsonIgnore - public long amount() { - return amount; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonIgnore - public String amountFormatted() { - return amountFormatted; - } - - /** - * The currency code (e.g., "USD"). - */ - @JsonIgnore - public String currency() { - return currency; - } - - /** - * The currency symbol (e.g., "$"). - */ - @JsonIgnore - public String currencySymbol() { - return currencySymbol; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The amount in cents. - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withAmountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - /** - * The currency code (e.g., "USD"). - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withCurrency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The currency symbol (e.g., "$"). - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withCurrencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SchemasCommerceSubscriptionItemAnnualMonthlyFee other = (SchemasCommerceSubscriptionItemAnnualMonthlyFee) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && - Utils.enhancedDeepEquals(this.currency, other.currency) && - Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, amountFormatted, currency, - currencySymbol); - } - - @Override - public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemAnnualMonthlyFee.class, - "amount", amount, - "amountFormatted", amountFormatted, - "currency", currency, - "currencySymbol", currencySymbol); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long amount; - - private String amountFormatted; - - private String currency; - - private String currencySymbol; - - private Builder() { - // force use of static builder() method - } - - - /** - * The amount in cents. - */ - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public Builder amountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - - /** - * The currency code (e.g., "USD"). - */ - public Builder currency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - - /** - * The currency symbol (e.g., "$"). - */ - public Builder currencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - public SchemasCommerceSubscriptionItemAnnualMonthlyFee build() { - - return new SchemasCommerceSubscriptionItemAnnualMonthlyFee( - amount, amountFormatted, currency, - currencySymbol); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java b/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java deleted file mode 100644 index 6455b82d..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - -/** - * SchemasCommerceSubscriptionItemCreditAmount - * - *

Credit amount. - */ -public class SchemasCommerceSubscriptionItemCreditAmount { - /** - * The amount in cents. - */ - @JsonProperty("amount") - private long amount; - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonProperty("amount_formatted") - private String amountFormatted; - - /** - * The currency code (e.g., "USD"). - */ - @JsonProperty("currency") - private String currency; - - /** - * The currency symbol (e.g., "$"). - */ - @JsonProperty("currency_symbol") - private String currencySymbol; - - @JsonCreator - public SchemasCommerceSubscriptionItemCreditAmount( - @JsonProperty("amount") long amount, - @JsonProperty("amount_formatted") String amountFormatted, - @JsonProperty("currency") String currency, - @JsonProperty("currency_symbol") String currencySymbol) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(amountFormatted, "amountFormatted"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.amount = amount; - this.amountFormatted = amountFormatted; - this.currency = currency; - this.currencySymbol = currencySymbol; - } - - /** - * The amount in cents. - */ - @JsonIgnore - public long amount() { - return amount; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonIgnore - public String amountFormatted() { - return amountFormatted; - } - - /** - * The currency code (e.g., "USD"). - */ - @JsonIgnore - public String currency() { - return currency; - } - - /** - * The currency symbol (e.g., "$"). - */ - @JsonIgnore - public String currencySymbol() { - return currencySymbol; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The amount in cents. - */ - public SchemasCommerceSubscriptionItemCreditAmount withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public SchemasCommerceSubscriptionItemCreditAmount withAmountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - /** - * The currency code (e.g., "USD"). - */ - public SchemasCommerceSubscriptionItemCreditAmount withCurrency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The currency symbol (e.g., "$"). - */ - public SchemasCommerceSubscriptionItemCreditAmount withCurrencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SchemasCommerceSubscriptionItemCreditAmount other = (SchemasCommerceSubscriptionItemCreditAmount) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && - Utils.enhancedDeepEquals(this.currency, other.currency) && - Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, amountFormatted, currency, - currencySymbol); - } - - @Override - public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemCreditAmount.class, - "amount", amount, - "amountFormatted", amountFormatted, - "currency", currency, - "currencySymbol", currencySymbol); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long amount; - - private String amountFormatted; - - private String currency; - - private String currencySymbol; - - private Builder() { - // force use of static builder() method - } - - - /** - * The amount in cents. - */ - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public Builder amountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - - /** - * The currency code (e.g., "USD"). - */ - public Builder currency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - - /** - * The currency symbol (e.g., "$"). - */ - public Builder currencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - public SchemasCommerceSubscriptionItemCreditAmount build() { - - return new SchemasCommerceSubscriptionItemCreditAmount( - amount, amountFormatted, currency, - currencySymbol); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/Seats.java b/src/main/java/com/clerk/backend_api/models/components/Seats.java index 990e1c6a..e8c3d7eb 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Seats.java +++ b/src/main/java/com/clerk/backend_api/models/components/Seats.java @@ -34,12 +34,12 @@ public class Seats { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tiers") - private Optional> tiers; + private Optional> tiers; @JsonCreator public Seats( @JsonProperty("quantity") Optional quantity, - @JsonProperty("tiers") Optional> tiers) { + @JsonProperty("tiers") Optional> tiers) { Utils.checkNotNull(quantity, "quantity"); Utils.checkNotNull(tiers, "tiers"); this.quantity = quantity; @@ -63,8 +63,8 @@ public Optional quantity() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> tiers() { - return (Optional>) tiers; + public Optional> tiers() { + return (Optional>) tiers; } public static Builder builder() { @@ -94,7 +94,7 @@ public Seats withQuantity(Optional quantity) { /** * Per-unit cost breakdown by pricing tier */ - public Seats withTiers(List tiers) { + public Seats withTiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = Optional.ofNullable(tiers); return this; @@ -104,7 +104,7 @@ public Seats withTiers(List tiers) { /** * Per-unit cost breakdown by pricing tier */ - public Seats withTiers(Optional> tiers) { + public Seats withTiers(Optional> tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; @@ -142,7 +142,7 @@ public final static class Builder { private Optional quantity = Optional.empty(); - private Optional> tiers = Optional.empty(); + private Optional> tiers = Optional.empty(); private Builder() { // force use of static builder() method @@ -171,7 +171,7 @@ public Builder quantity(Optional quantity) { /** * Per-unit cost breakdown by pricing tier */ - public Builder tiers(List tiers) { + public Builder tiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = Optional.ofNullable(tiers); return this; @@ -180,7 +180,7 @@ public Builder tiers(List tiers) { /** * Per-unit cost breakdown by pricing tier */ - public Builder tiers(Optional> tiers) { + public Builder tiers(Optional> tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/Totals.java b/src/main/java/com/clerk/backend_api/models/components/Totals.java index 52776546..c1e8e267 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Totals.java +++ b/src/main/java/com/clerk/backend_api/models/components/Totals.java @@ -41,7 +41,7 @@ public class Totals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; @JsonInclude(Include.NON_ABSENT) @@ -61,7 +61,7 @@ public Totals( @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("credits") JsonNullable credits, @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); @@ -112,8 +112,8 @@ public CommerceMoneyResponse grandTotal() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } @SuppressWarnings("unchecked") @@ -160,14 +160,14 @@ public Totals withGrandTotal(CommerceMoneyResponse grandTotal) { return this; } - public Totals withPerUnitTotals(List perUnitTotals) { + public Totals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Totals withPerUnitTotals(Optional> perUnitTotals) { + public Totals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -253,7 +253,7 @@ public final static class Builder { private CommerceMoneyResponse grandTotal; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable credits = JsonNullable.undefined(); @@ -292,13 +292,13 @@ public Builder grandTotal(CommerceMoneyResponse grandTotal) { } - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/Two.java b/src/main/java/com/clerk/backend_api/models/components/Two.java index fde05af7..779ed16b 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Two.java +++ b/src/main/java/com/clerk/backend_api/models/components/Two.java @@ -61,6 +61,22 @@ public class Two { @JsonProperty("idp_certificate") private Optional idpCertificate; + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_issued_at") + private Optional idpCertificateIssuedAt; + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_expires_at") + private Optional idpCertificateExpiresAt; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("idp_metadata_url") @@ -158,6 +174,8 @@ public Two( @JsonProperty("idp_entity_id") Optional idpEntityId, @JsonProperty("idp_sso_url") Optional idpSsoUrl, @JsonProperty("idp_certificate") Optional idpCertificate, + @JsonProperty("idp_certificate_issued_at") Optional idpCertificateIssuedAt, + @JsonProperty("idp_certificate_expires_at") Optional idpCertificateExpiresAt, @JsonProperty("idp_metadata_url") JsonNullable idpMetadataUrl, @JsonProperty("idp_metadata") JsonNullable idpMetadata, @JsonProperty("acs_url") String acsUrl, @@ -185,6 +203,8 @@ public Two( Utils.checkNotNull(idpEntityId, "idpEntityId"); Utils.checkNotNull(idpSsoUrl, "idpSsoUrl"); Utils.checkNotNull(idpCertificate, "idpCertificate"); + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); Utils.checkNotNull(idpMetadata, "idpMetadata"); Utils.checkNotNull(acsUrl, "acsUrl"); @@ -212,6 +232,8 @@ public Two( this.idpEntityId = idpEntityId; this.idpSsoUrl = idpSsoUrl; this.idpCertificate = idpCertificate; + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + this.idpCertificateExpiresAt = idpCertificateExpiresAt; this.idpMetadataUrl = idpMetadataUrl; this.idpMetadata = idpMetadata; this.acsUrl = acsUrl; @@ -254,13 +276,14 @@ public Two( long updatedAt) { this(object, id, name, Optional.empty(), domains, Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), acsUrl, spEntityId, - spMetadataUrl, JsonNullable.undefined(), Optional.empty(), - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, - JsonNullable.undefined(), createdAt, updatedAt); + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + acsUrl, spEntityId, spMetadataUrl, + JsonNullable.undefined(), Optional.empty(), active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, JsonNullable.undefined(), + createdAt, updatedAt); } @JsonIgnore @@ -308,6 +331,24 @@ public Optional idpCertificate() { return idpCertificate; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateIssuedAt() { + return idpCertificateIssuedAt; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateExpiresAt() { + return idpCertificateExpiresAt; + } + @JsonIgnore public JsonNullable idpMetadataUrl() { return idpMetadataUrl; @@ -504,6 +545,48 @@ public Two withIdpCertificate(Optional idpCertificate) { return this; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Two withIdpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Two withIdpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Two withIdpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Two withIdpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + public Two withIdpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -676,6 +759,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.idpEntityId, other.idpEntityId) && Utils.enhancedDeepEquals(this.idpSsoUrl, other.idpSsoUrl) && Utils.enhancedDeepEquals(this.idpCertificate, other.idpCertificate) && + Utils.enhancedDeepEquals(this.idpCertificateIssuedAt, other.idpCertificateIssuedAt) && + Utils.enhancedDeepEquals(this.idpCertificateExpiresAt, other.idpCertificateExpiresAt) && Utils.enhancedDeepEquals(this.idpMetadataUrl, other.idpMetadataUrl) && Utils.enhancedDeepEquals(this.idpMetadata, other.idpMetadata) && Utils.enhancedDeepEquals(this.acsUrl, other.acsUrl) && @@ -702,13 +787,14 @@ public int hashCode() { return Utils.enhancedHash( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, - enterpriseConnectionId, createdAt, updatedAt); + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, enterpriseConnectionId, + createdAt, updatedAt); } @Override @@ -722,6 +808,8 @@ public String toString() { "idpEntityId", idpEntityId, "idpSsoUrl", idpSsoUrl, "idpCertificate", idpCertificate, + "idpCertificateIssuedAt", idpCertificateIssuedAt, + "idpCertificateExpiresAt", idpCertificateExpiresAt, "idpMetadataUrl", idpMetadataUrl, "idpMetadata", idpMetadata, "acsUrl", acsUrl, @@ -763,6 +851,10 @@ public final static class Builder { private Optional idpCertificate = Optional.empty(); + private Optional idpCertificateIssuedAt = Optional.empty(); + + private Optional idpCertificateExpiresAt = Optional.empty(); + private JsonNullable idpMetadataUrl = JsonNullable.undefined(); private JsonNullable idpMetadata = JsonNullable.undefined(); @@ -896,6 +988,48 @@ public Builder idpCertificate(Optional idpCertificate) { } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + + public Builder idpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -1072,13 +1206,14 @@ public Two build() { return new Two( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, - enterpriseConnectionId, createdAt, updatedAt); + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, enterpriseConnectionId, + createdAt, updatedAt); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java index b62b74ab..200a73fd 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationGoogleOneTapErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationGoogleOneTapErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationGoogleOneTapErrorClerkError withCode(String code) { return this; } - public VerificationGoogleOneTapErrorClerkError withMeta(ClerkErrorErrorExternalAccountWithVerificationVerificationMeta meta) { + public VerificationGoogleOneTapErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationGoogleOneTapErrorClerkError withMeta(Optional meta) { + public VerificationGoogleOneTapErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorExternalAccountWithVerificationVerificationMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java index fe814f55..1ac45de6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationOauthErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationOauthErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationOauthErrorClerkError withCode(String code) { return this; } - public VerificationOauthErrorClerkError withMeta(ClerkErrorErrorExternalAccountWithVerificationMeta meta) { + public VerificationOauthErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationOauthErrorClerkError withMeta(Optional meta) { + public VerificationOauthErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorExternalAccountWithVerificationMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java index be604a96..9896ddae 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationOauthErrorEnterpriseAccountClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationOauthErrorEnterpriseAccountClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationOauthErrorEnterpriseAccountClerkError withCode(String code) { return this; } - public VerificationOauthErrorEnterpriseAccountClerkError withMeta(ClerkErrorErrorEnterpriseAccountVerificationMeta meta) { + public VerificationOauthErrorEnterpriseAccountClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationOauthErrorEnterpriseAccountClerkError withMeta(Optional meta) { + public VerificationOauthErrorEnterpriseAccountClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorEnterpriseAccountVerificationMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java index c5600162..c5312065 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationSAMLErrorSAMLAccountClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationSAMLErrorSAMLAccountClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationSAMLErrorSAMLAccountClerkError withCode(String code) { return this; } - public VerificationSAMLErrorSAMLAccountClerkError withMeta(ClerkErrorErrorSAMLAccountMeta meta) { + public VerificationSAMLErrorSAMLAccountClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationSAMLErrorSAMLAccountClerkError withMeta(Optional meta) { + public VerificationSAMLErrorSAMLAccountClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorSAMLAccountMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java index ad3a5314..37d96234 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationSamlErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationSamlErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationSamlErrorClerkError withCode(String code) { return this; } - public VerificationSamlErrorClerkError withMeta(ClerkErrorErrorMeta meta) { + public VerificationSamlErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationSamlErrorClerkError withMeta(Optional meta) { + public VerificationSamlErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java index 04484d5c..8b4fba88 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationSamlErrorEnterpriseAccountClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationSamlErrorEnterpriseAccountClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationSamlErrorEnterpriseAccountClerkError withCode(String code) { return this; } - public VerificationSamlErrorEnterpriseAccountClerkError withMeta(ClerkErrorErrorEnterpriseAccountMeta meta) { + public VerificationSamlErrorEnterpriseAccountClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationSamlErrorEnterpriseAccountClerkError withMeta(Optional meta) { + public VerificationSamlErrorEnterpriseAccountClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorEnterpriseAccountMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java b/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java index 89eeb7f5..ea75353a 100644 --- a/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java +++ b/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java @@ -12,12 +12,14 @@ import jakarta.annotation.Nullable; import java.io.InputStream; import java.lang.Deprecated; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.lang.Throwable; import java.net.http.HttpResponse; import java.util.List; +import java.util.Map; import java.util.Optional; @SuppressWarnings("serial") @@ -60,7 +62,7 @@ public Optional> errors } @Deprecated - public Optional meta() { + public Optional> meta() { return data().flatMap(Data::meta); } @@ -87,12 +89,12 @@ public static class Data { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public Data( @JsonProperty("errors") List errors, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(meta, "meta"); this.errors = errors; @@ -111,8 +113,8 @@ public List errors() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -126,14 +128,14 @@ public Data withErrors(List return this; } - public Data withMeta(Meta meta) { + public Data withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Data withMeta(Optional meta) { + public Data withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -171,7 +173,7 @@ public final static class Builder { private List errors; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -185,13 +187,13 @@ public Builder errors(List e } - public Builder meta(Meta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/errors/Meta.java b/src/main/java/com/clerk/backend_api/models/errors/Meta.java deleted file mode 100644 index 113d04e5..00000000 --- a/src/main/java/com/clerk/backend_api/models/errors/Meta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.errors; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class Meta { - @JsonCreator - public Meta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(Meta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Meta build() { - - return new Meta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java index 6aa5ab2f..30b071a3 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java @@ -25,8 +25,8 @@ public class CreateOrganizationDomainRequestBody { private Optional name; /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("enrollment_mode") @@ -65,8 +65,8 @@ public Optional name() { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonIgnore public Optional enrollmentMode() { @@ -106,8 +106,8 @@ public CreateOrganizationDomainRequestBody withName(Optional name) { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public CreateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -117,8 +117,8 @@ public CreateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentM /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public CreateOrganizationDomainRequestBody withEnrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -207,8 +207,8 @@ public Builder name(Optional name) { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -217,8 +217,8 @@ public Builder enrollmentMode(String enrollmentMode) { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java new file mode 100644 index 00000000..4ee9aa5f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java @@ -0,0 +1,276 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class CreateSCIMDirectoryRequestBody { + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + @JsonProperty("enterprise_connection_id") + private String enterpriseConnectionId; + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * The identity provider for this SCIM directory. + */ + @JsonProperty("provider") + private String provider; + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("group_role_mappings") + private Optional> groupRoleMappings; + + @JsonCreator + public CreateSCIMDirectoryRequestBody( + @JsonProperty("enterprise_connection_id") String enterpriseConnectionId, + @JsonProperty("name") Optional name, + @JsonProperty("provider") String provider, + @JsonProperty("group_role_mappings") Optional> groupRoleMappings) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.enterpriseConnectionId = enterpriseConnectionId; + this.name = name; + this.provider = provider; + this.groupRoleMappings = groupRoleMappings; + } + + public CreateSCIMDirectoryRequestBody( + String enterpriseConnectionId, + String provider) { + this(enterpriseConnectionId, Optional.empty(), provider, + Optional.empty()); + } + + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + @JsonIgnore + public String enterpriseConnectionId() { + return enterpriseConnectionId; + } + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * The identity provider for this SCIM directory. + */ + @JsonIgnore + public String provider() { + return provider; + } + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> groupRoleMappings() { + return (Optional>) groupRoleMappings; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withEnterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public CreateSCIMDirectoryRequestBody withGroupRoleMappings(List groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = Optional.ofNullable(groupRoleMappings); + return this; + } + + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public CreateSCIMDirectoryRequestBody withGroupRoleMappings(Optional> groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = groupRoleMappings; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMDirectoryRequestBody other = (CreateSCIMDirectoryRequestBody) o; + return + Utils.enhancedDeepEquals(this.enterpriseConnectionId, other.enterpriseConnectionId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.groupRoleMappings, other.groupRoleMappings); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + enterpriseConnectionId, name, provider, + groupRoleMappings); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMDirectoryRequestBody.class, + "enterpriseConnectionId", enterpriseConnectionId, + "name", name, + "provider", provider, + "groupRoleMappings", groupRoleMappings); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String enterpriseConnectionId; + + private Optional name = Optional.empty(); + + private String provider; + + private Optional> groupRoleMappings = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + public Builder enterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public Builder groupRoleMappings(List groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = Optional.ofNullable(groupRoleMappings); + return this; + } + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public Builder groupRoleMappings(Optional> groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = groupRoleMappings; + return this; + } + + public CreateSCIMDirectoryRequestBody build() { + + return new CreateSCIMDirectoryRequestBody( + enterpriseConnectionId, name, provider, + groupRoleMappings); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..6409e9a3 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.CreateSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.util.Optional; + +public class CreateSCIMDirectoryRequestBuilder { + + private Optional request = Optional.empty(); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateSCIMDirectoryRequestBuilder request(CreateSCIMDirectoryRequestBody request) { + Utils.checkNotNull(request, "request"); + this.request = Optional.of(request); + return this; + } + + public CreateSCIMDirectoryRequestBuilder request(Optional request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CreateSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public CreateSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + public CreateSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation, CreateSCIMDirectoryResponse> operation + = new CreateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java new file mode 100644 index 00000000..89eaf588 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public CreateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public CreateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public CreateSCIMDirectoryResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public CreateSCIMDirectoryResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMDirectoryResponse other = (CreateSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public CreateSCIMDirectoryResponse build() { + + return new CreateSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java new file mode 100644 index 00000000..73afa2a0 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class CreateSCIMGroupRoleMappingRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private CreateSCIMGroupRoleMappingRequestBody requestBody; + + @JsonCreator + public CreateSCIMGroupRoleMappingRequest( + String scimDirectoryId, + CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.scimDirectoryId = scimDirectoryId; + this.requestBody = requestBody; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + @JsonIgnore + public CreateSCIMGroupRoleMappingRequestBody requestBody() { + return requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public CreateSCIMGroupRoleMappingRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public CreateSCIMGroupRoleMappingRequest withRequestBody(CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMGroupRoleMappingRequest other = (CreateSCIMGroupRoleMappingRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMGroupRoleMappingRequest.class, + "scimDirectoryId", scimDirectoryId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private CreateSCIMGroupRoleMappingRequestBody requestBody; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + public Builder requestBody(CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public CreateSCIMGroupRoleMappingRequest build() { + + return new CreateSCIMGroupRoleMappingRequest( + scimDirectoryId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java new file mode 100644 index 00000000..101781d7 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java @@ -0,0 +1,223 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class CreateSCIMGroupRoleMappingRequestBody { + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonProperty("role_id") + private String roleId; + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("precedence") + private Optional precedence; + + @JsonCreator + public CreateSCIMGroupRoleMappingRequestBody( + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("role_id") String roleId, + @JsonProperty("precedence") Optional precedence) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(roleId, "roleId"); + Utils.checkNotNull(precedence, "precedence"); + this.scimGroupId = scimGroupId; + this.roleId = roleId; + this.precedence = precedence; + } + + public CreateSCIMGroupRoleMappingRequestBody( + String scimGroupId, + String roleId) { + this(scimGroupId, roleId, Optional.empty()); + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonIgnore + public String roleId() { + return roleId; + } + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + @JsonIgnore + public Optional precedence() { + return precedence; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The SCIM group ID from the identity provider. + */ + public CreateSCIMGroupRoleMappingRequestBody withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public CreateSCIMGroupRoleMappingRequestBody withRoleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public CreateSCIMGroupRoleMappingRequestBody withPrecedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public CreateSCIMGroupRoleMappingRequestBody withPrecedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMGroupRoleMappingRequestBody other = (CreateSCIMGroupRoleMappingRequestBody) o; + return + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.roleId, other.roleId) && + Utils.enhancedDeepEquals(this.precedence, other.precedence); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimGroupId, roleId, precedence); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMGroupRoleMappingRequestBody.class, + "scimGroupId", scimGroupId, + "roleId", roleId, + "precedence", precedence); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimGroupId; + + private String roleId; + + private Optional precedence = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public Builder roleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public Builder precedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public Builder precedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + public CreateSCIMGroupRoleMappingRequestBody build() { + + return new CreateSCIMGroupRoleMappingRequestBody( + scimGroupId, roleId, precedence); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java new file mode 100644 index 00000000..eb9e6b82 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.CreateSCIMGroupRoleMapping; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class CreateSCIMGroupRoleMappingRequestBuilder { + + private String scimDirectoryId; + private CreateSCIMGroupRoleMappingRequestBody requestBody; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateSCIMGroupRoleMappingRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateSCIMGroupRoleMappingRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public CreateSCIMGroupRoleMappingRequestBuilder requestBody(CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public CreateSCIMGroupRoleMappingRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public CreateSCIMGroupRoleMappingRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private CreateSCIMGroupRoleMappingRequest buildRequest() { + + CreateSCIMGroupRoleMappingRequest request = new CreateSCIMGroupRoleMappingRequest(scimDirectoryId, + requestBody); + + return request; + } + + public CreateSCIMGroupRoleMappingResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new CreateSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + CreateSCIMGroupRoleMappingRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java new file mode 100644 index 00000000..7fd56f33 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMapping; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateSCIMGroupRoleMappingResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM group role mapping + */ + private Optional scimGroupRoleMapping; + + @JsonCreator + public CreateSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMapping) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMapping = scimGroupRoleMapping; + } + + public CreateSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM group role mapping + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMapping() { + return (Optional) scimGroupRoleMapping; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateSCIMGroupRoleMappingResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateSCIMGroupRoleMappingResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateSCIMGroupRoleMappingResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM group role mapping + */ + public CreateSCIMGroupRoleMappingResponse withSCIMGroupRoleMapping(SCIMGroupRoleMapping scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = Optional.ofNullable(scimGroupRoleMapping); + return this; + } + + + /** + * A SCIM group role mapping + */ + public CreateSCIMGroupRoleMappingResponse withSCIMGroupRoleMapping(Optional scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = scimGroupRoleMapping; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMGroupRoleMappingResponse other = (CreateSCIMGroupRoleMappingResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMapping, other.scimGroupRoleMapping); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMapping); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMGroupRoleMappingResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMapping", scimGroupRoleMapping); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMapping = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM group role mapping + */ + public Builder scimGroupRoleMapping(SCIMGroupRoleMapping scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = Optional.ofNullable(scimGroupRoleMapping); + return this; + } + + /** + * A SCIM group role mapping + */ + public Builder scimGroupRoleMapping(Optional scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = scimGroupRoleMapping; + return this; + } + + public CreateSCIMGroupRoleMappingResponse build() { + + return new CreateSCIMGroupRoleMappingResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMapping); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java new file mode 100644 index 00000000..0d9744cc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class DeleteSCIMDirectoryRequest { + /** + * The ID of the SCIM directory to delete + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public DeleteSCIMDirectoryRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory to delete + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory to delete + */ + public DeleteSCIMDirectoryRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMDirectoryRequest other = (DeleteSCIMDirectoryRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMDirectoryRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory to delete + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public DeleteSCIMDirectoryRequest build() { + + return new DeleteSCIMDirectoryRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..903c1f8c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.DeleteSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class DeleteSCIMDirectoryRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteSCIMDirectoryRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public DeleteSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public DeleteSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private DeleteSCIMDirectoryRequest buildRequest() { + + DeleteSCIMDirectoryRequest request = new DeleteSCIMDirectoryRequest(scimDirectoryId); + + return request; + } + + public DeleteSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new DeleteSCIMDirectory.Sync(sdkConfiguration, options, _headers); + DeleteSCIMDirectoryRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java new file mode 100644 index 00000000..b4552e64 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.DeletedObject; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Deleted Object + */ + private Optional deletedObject; + + @JsonCreator + public DeleteSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional deletedObject) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(deletedObject, "deletedObject"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.deletedObject = deletedObject; + } + + public DeleteSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Deleted Object + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional deletedObject() { + return (Optional) deletedObject; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Deleted Object + */ + public DeleteSCIMDirectoryResponse withDeletedObject(DeletedObject deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = Optional.ofNullable(deletedObject); + return this; + } + + + /** + * Deleted Object + */ + public DeleteSCIMDirectoryResponse withDeletedObject(Optional deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = deletedObject; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMDirectoryResponse other = (DeleteSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.deletedObject, other.deletedObject); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + deletedObject); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "deletedObject", deletedObject); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional deletedObject = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Deleted Object + */ + public Builder deletedObject(DeletedObject deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = Optional.ofNullable(deletedObject); + return this; + } + + /** + * Deleted Object + */ + public Builder deletedObject(Optional deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = deletedObject; + return this; + } + + public DeleteSCIMDirectoryResponse build() { + + return new DeleteSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + deletedObject); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java new file mode 100644 index 00000000..3ff97fb4 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class DeleteSCIMGroupRoleMappingRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + /** + * The ID of the SCIM group role mapping to delete. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=mapping_id") + private String mappingId; + + @JsonCreator + public DeleteSCIMGroupRoleMappingRequest( + String scimDirectoryId, + String mappingId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(mappingId, "mappingId"); + this.scimDirectoryId = scimDirectoryId; + this.mappingId = mappingId; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + /** + * The ID of the SCIM group role mapping to delete. + */ + @JsonIgnore + public String mappingId() { + return mappingId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public DeleteSCIMGroupRoleMappingRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + /** + * The ID of the SCIM group role mapping to delete. + */ + public DeleteSCIMGroupRoleMappingRequest withMappingId(String mappingId) { + Utils.checkNotNull(mappingId, "mappingId"); + this.mappingId = mappingId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMGroupRoleMappingRequest other = (DeleteSCIMGroupRoleMappingRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.mappingId, other.mappingId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, mappingId); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMGroupRoleMappingRequest.class, + "scimDirectoryId", scimDirectoryId, + "mappingId", mappingId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private String mappingId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + /** + * The ID of the SCIM group role mapping to delete. + */ + public Builder mappingId(String mappingId) { + Utils.checkNotNull(mappingId, "mappingId"); + this.mappingId = mappingId; + return this; + } + + public DeleteSCIMGroupRoleMappingRequest build() { + + return new DeleteSCIMGroupRoleMappingRequest( + scimDirectoryId, mappingId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java new file mode 100644 index 00000000..4c983495 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.DeleteSCIMGroupRoleMapping; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class DeleteSCIMGroupRoleMappingRequestBuilder { + + private String scimDirectoryId; + private String mappingId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteSCIMGroupRoleMappingRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder mappingId(String mappingId) { + Utils.checkNotNull(mappingId, "mappingId"); + this.mappingId = mappingId; + return this; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private DeleteSCIMGroupRoleMappingRequest buildRequest() { + + DeleteSCIMGroupRoleMappingRequest request = new DeleteSCIMGroupRoleMappingRequest(scimDirectoryId, + mappingId); + + return request; + } + + public DeleteSCIMGroupRoleMappingResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new DeleteSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + DeleteSCIMGroupRoleMappingRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java new file mode 100644 index 00000000..7a5e174a --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingDeleted; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteSCIMGroupRoleMappingResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM group role mapping was deleted. + */ + private Optional scimGroupRoleMappingDeleted; + + @JsonCreator + public DeleteSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMappingDeleted) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMappingDeleted = scimGroupRoleMappingDeleted; + } + + public DeleteSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM group role mapping was deleted. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMappingDeleted() { + return (Optional) scimGroupRoleMappingDeleted; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteSCIMGroupRoleMappingResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteSCIMGroupRoleMappingResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteSCIMGroupRoleMappingResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM group role mapping was deleted. + */ + public DeleteSCIMGroupRoleMappingResponse withSCIMGroupRoleMappingDeleted(SCIMGroupRoleMappingDeleted scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = Optional.ofNullable(scimGroupRoleMappingDeleted); + return this; + } + + + /** + * A SCIM group role mapping was deleted. + */ + public DeleteSCIMGroupRoleMappingResponse withSCIMGroupRoleMappingDeleted(Optional scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = scimGroupRoleMappingDeleted; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMGroupRoleMappingResponse other = (DeleteSCIMGroupRoleMappingResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMappingDeleted, other.scimGroupRoleMappingDeleted); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMappingDeleted); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMGroupRoleMappingResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMappingDeleted", scimGroupRoleMappingDeleted); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMappingDeleted = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM group role mapping was deleted. + */ + public Builder scimGroupRoleMappingDeleted(SCIMGroupRoleMappingDeleted scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = Optional.ofNullable(scimGroupRoleMappingDeleted); + return this; + } + + /** + * A SCIM group role mapping was deleted. + */ + public Builder scimGroupRoleMappingDeleted(Optional scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = scimGroupRoleMappingDeleted; + return this; + } + + public DeleteSCIMGroupRoleMappingResponse build() { + + return new DeleteSCIMGroupRoleMappingResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMappingDeleted); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java b/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java index 7a7e9411..93d5a91b 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java +++ b/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java @@ -11,7 +11,12 @@ public enum EnrollmentMode { MANUAL_INVITATION("manual_invitation"), AUTOMATIC_INVITATION("automatic_invitation"), - AUTOMATIC_SUGGESTION("automatic_suggestion"); + AUTOMATIC_SUGGESTION("automatic_suggestion"), + ENTERPRISE_SSO("enterprise_sso"), + MINUS_MANUAL_INVITATION("-manual_invitation"), + MINUS_AUTOMATIC_INVITATION("-automatic_invitation"), + MINUS_AUTOMATIC_SUGGESTION("-automatic_suggestion"), + MINUS_ENTERPRISE_SSO("-enterprise_sso"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java index 75c97ccf..fcbf157c 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java @@ -3,7 +3,7 @@ */ package com.clerk.backend_api.models.operations; -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItem; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2; import com.clerk.backend_api.utils.Response; import com.clerk.backend_api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -36,22 +36,22 @@ public class ExtendBillingSubscriptionItemFreeTrialResponse implements Response /** * A commerce subscription item. */ - private Optional schemasCommerceSubscriptionItem; + private Optional commerceSubscriptionItem2; @JsonCreator public ExtendBillingSubscriptionItemFreeTrialResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional schemasCommerceSubscriptionItem) { + Optional commerceSubscriptionItem2) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.schemasCommerceSubscriptionItem = schemasCommerceSubscriptionItem; + this.commerceSubscriptionItem2 = commerceSubscriptionItem2; } public ExtendBillingSubscriptionItemFreeTrialResponse( @@ -91,8 +91,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional schemasCommerceSubscriptionItem() { - return (Optional) schemasCommerceSubscriptionItem; + public Optional commerceSubscriptionItem2() { + return (Optional) commerceSubscriptionItem2; } public static Builder builder() { @@ -130,9 +130,9 @@ public ExtendBillingSubscriptionItemFreeTrialResponse withRawResponse(HttpRespon /** * A commerce subscription item. */ - public ExtendBillingSubscriptionItemFreeTrialResponse withSchemasCommerceSubscriptionItem(SchemasCommerceSubscriptionItem schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = Optional.ofNullable(schemasCommerceSubscriptionItem); + public ExtendBillingSubscriptionItemFreeTrialResponse withCommerceSubscriptionItem2(CommerceSubscriptionItem2 commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = Optional.ofNullable(commerceSubscriptionItem2); return this; } @@ -140,9 +140,9 @@ public ExtendBillingSubscriptionItemFreeTrialResponse withSchemasCommerceSubscri /** * A commerce subscription item. */ - public ExtendBillingSubscriptionItemFreeTrialResponse withSchemasCommerceSubscriptionItem(Optional schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = schemasCommerceSubscriptionItem; + public ExtendBillingSubscriptionItemFreeTrialResponse withCommerceSubscriptionItem2(Optional commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = commerceSubscriptionItem2; return this; } @@ -159,14 +159,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.schemasCommerceSubscriptionItem, other.schemasCommerceSubscriptionItem); + Utils.enhancedDeepEquals(this.commerceSubscriptionItem2, other.commerceSubscriptionItem2); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - schemasCommerceSubscriptionItem); + commerceSubscriptionItem2); } @Override @@ -175,7 +175,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "schemasCommerceSubscriptionItem", schemasCommerceSubscriptionItem); + "commerceSubscriptionItem2", commerceSubscriptionItem2); } @SuppressWarnings("UnusedReturnValue") @@ -187,7 +187,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional schemasCommerceSubscriptionItem = Optional.empty(); + private Optional commerceSubscriptionItem2 = Optional.empty(); private Builder() { // force use of static builder() method @@ -227,18 +227,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * A commerce subscription item. */ - public Builder schemasCommerceSubscriptionItem(SchemasCommerceSubscriptionItem schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = Optional.ofNullable(schemasCommerceSubscriptionItem); + public Builder commerceSubscriptionItem2(CommerceSubscriptionItem2 commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = Optional.ofNullable(commerceSubscriptionItem2); return this; } /** * A commerce subscription item. */ - public Builder schemasCommerceSubscriptionItem(Optional schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = schemasCommerceSubscriptionItem; + public Builder commerceSubscriptionItem2(Optional commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = commerceSubscriptionItem2; return this; } @@ -246,7 +246,7 @@ public ExtendBillingSubscriptionItemFreeTrialResponse build() { return new ExtendBillingSubscriptionItemFreeTrialResponse( contentType, statusCode, rawResponse, - schemasCommerceSubscriptionItem); + commerceSubscriptionItem2); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java new file mode 100644 index 00000000..9094480f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class GetSCIMDirectoryRequest { + /** + * The ID of the SCIM directory to retrieve + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public GetSCIMDirectoryRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory to retrieve + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory to retrieve + */ + public GetSCIMDirectoryRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetSCIMDirectoryRequest other = (GetSCIMDirectoryRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(GetSCIMDirectoryRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory to retrieve + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public GetSCIMDirectoryRequest build() { + + return new GetSCIMDirectoryRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..79b835c6 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.GetSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetSCIMDirectoryRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetSCIMDirectoryRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public GetSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public GetSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private GetSCIMDirectoryRequest buildRequest() { + + GetSCIMDirectoryRequest request = new GetSCIMDirectoryRequest(scimDirectoryId); + + return request; + } + + public GetSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new GetSCIMDirectory.Sync(sdkConfiguration, options, _headers); + GetSCIMDirectoryRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java new file mode 100644 index 00000000..d3d30f90 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public GetSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public GetSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public GetSCIMDirectoryResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public GetSCIMDirectoryResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetSCIMDirectoryResponse other = (GetSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(GetSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public GetSCIMDirectoryResponse build() { + + return new GetSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java b/src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java new file mode 100644 index 00000000..67bc2d3a --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java @@ -0,0 +1,274 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GroupRoleMappings { + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * Optional display name for the SCIM group. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scim_group_display_name") + private Optional scimGroupDisplayName; + + /** + * The organization role ID to assign to members of the SCIM group. + */ + @JsonProperty("role_id") + private String roleId; + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("precedence") + private Optional precedence; + + @JsonCreator + public GroupRoleMappings( + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("scim_group_display_name") Optional scimGroupDisplayName, + @JsonProperty("role_id") String roleId, + @JsonProperty("precedence") Optional precedence) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + Utils.checkNotNull(roleId, "roleId"); + Utils.checkNotNull(precedence, "precedence"); + this.scimGroupId = scimGroupId; + this.scimGroupDisplayName = scimGroupDisplayName; + this.roleId = roleId; + this.precedence = precedence; + } + + public GroupRoleMappings( + String scimGroupId, + String roleId) { + this(scimGroupId, Optional.empty(), roleId, + Optional.empty()); + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * Optional display name for the SCIM group. + */ + @JsonIgnore + public Optional scimGroupDisplayName() { + return scimGroupDisplayName; + } + + /** + * The organization role ID to assign to members of the SCIM group. + */ + @JsonIgnore + public String roleId() { + return roleId; + } + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + @JsonIgnore + public Optional precedence() { + return precedence; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The SCIM group ID from the identity provider. + */ + public GroupRoleMappings withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * Optional display name for the SCIM group. + */ + public GroupRoleMappings withScimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = Optional.ofNullable(scimGroupDisplayName); + return this; + } + + + /** + * Optional display name for the SCIM group. + */ + public GroupRoleMappings withScimGroupDisplayName(Optional scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + /** + * The organization role ID to assign to members of the SCIM group. + */ + public GroupRoleMappings withRoleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public GroupRoleMappings withPrecedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public GroupRoleMappings withPrecedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupRoleMappings other = (GroupRoleMappings) o; + return + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.scimGroupDisplayName, other.scimGroupDisplayName) && + Utils.enhancedDeepEquals(this.roleId, other.roleId) && + Utils.enhancedDeepEquals(this.precedence, other.precedence); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimGroupId, scimGroupDisplayName, roleId, + precedence); + } + + @Override + public String toString() { + return Utils.toString(GroupRoleMappings.class, + "scimGroupId", scimGroupId, + "scimGroupDisplayName", scimGroupDisplayName, + "roleId", roleId, + "precedence", precedence); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimGroupId; + + private Optional scimGroupDisplayName = Optional.empty(); + + private String roleId; + + private Optional precedence = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * Optional display name for the SCIM group. + */ + public Builder scimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = Optional.ofNullable(scimGroupDisplayName); + return this; + } + + /** + * Optional display name for the SCIM group. + */ + public Builder scimGroupDisplayName(Optional scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + + /** + * The organization role ID to assign to members of the SCIM group. + */ + public Builder roleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public Builder precedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public Builder precedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + public GroupRoleMappings build() { + + return new GroupRoleMappings( + scimGroupId, scimGroupDisplayName, roleId, + precedence); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java index 36a81d41..513cf95f 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java @@ -31,7 +31,8 @@ public class ListAllOrganizationDomainsRequest { private Optional verified; /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ @SpeakeasyMetadata("queryParam:style=form,explode=false,name=enrollment_mode") private Optional> enrollmentMode; @@ -133,7 +134,8 @@ public Optional verified() { } /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -241,7 +243,8 @@ public ListAllOrganizationDomainsRequest withVerified(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -251,7 +254,8 @@ public ListAllOrganizationDomainsRequest withEnrollmentMode(List /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ public ListAllOrganizationDomainsRequest withEnrollmentMode(Optional> enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -488,7 +492,8 @@ public Builder verified(Optional verified) { /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ public Builder enrollmentMode(List enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -497,7 +502,8 @@ public Builder enrollmentMode(List enrollmentMode) { } /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ public Builder enrollmentMode(Optional> enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java index 91005284..45a0e253 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java @@ -29,7 +29,10 @@ public class ListOrganizationDomainsRequest { private Optional verified; /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=enrollment_mode") private Optional enrollmentMode; @@ -91,7 +94,10 @@ public Optional verified() { } /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ @JsonIgnore public Optional enrollmentMode() { @@ -151,7 +157,10 @@ public ListOrganizationDomainsRequest withVerified(Optional verified) { } /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public ListOrganizationDomainsRequest withEnrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -161,7 +170,10 @@ public ListOrganizationDomainsRequest withEnrollmentMode(String enrollmentMode) /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public ListOrganizationDomainsRequest withEnrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -295,7 +307,10 @@ public Builder verified(Optional verified) { /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public Builder enrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -304,7 +319,10 @@ public Builder enrollmentMode(String enrollmentMode) { } /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public Builder enrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java new file mode 100644 index 00000000..388614ec --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java @@ -0,0 +1,223 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ListSCIMDirectoriesRequest { + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") + private Optional limit; + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=offset") + private Optional offset; + + @JsonCreator + public ListSCIMDirectoriesRequest( + Optional limit, + Optional offset) { + Utils.checkNotNull(limit, "limit"); + Utils.checkNotNull(offset, "offset"); + this.limit = limit; + this.offset = offset; + } + + public ListSCIMDirectoriesRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + @JsonIgnore + public Optional limit() { + return limit; + } + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + @JsonIgnore + public Optional offset() { + return offset; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public ListSCIMDirectoriesRequest withLimit(long limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public ListSCIMDirectoriesRequest withLimit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public ListSCIMDirectoriesRequest withOffset(long offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = Optional.ofNullable(offset); + return this; + } + + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public ListSCIMDirectoriesRequest withOffset(Optional offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = offset; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMDirectoriesRequest other = (ListSCIMDirectoriesRequest) o; + return + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + limit, offset); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMDirectoriesRequest.class, + "limit", limit, + "offset", offset); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional limit; + + private Optional offset; + + private Builder() { + // force use of static builder() method + } + + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public Builder limit(long limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public Builder limit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public Builder offset(long offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = Optional.ofNullable(offset); + return this; + } + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public Builder offset(Optional offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = offset; + return this; + } + + public ListSCIMDirectoriesRequest build() { + if (limit == null) { + limit = _SINGLETON_VALUE_Limit.value(); + } + if (offset == null) { + offset = _SINGLETON_VALUE_Offset.value(); + } + + return new ListSCIMDirectoriesRequest( + limit, offset); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + new LazySingletonValue<>( + "limit", + "10", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Offset = + new LazySingletonValue<>( + "offset", + "0", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java new file mode 100644 index 00000000..b7bc05a8 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java @@ -0,0 +1,111 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ListSCIMDirectories; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.util.Optional; + +public class ListSCIMDirectoriesRequestBuilder { + + private Optional limit = Utils.readDefaultOrConstValue( + "limit", + "10", + new TypeReference>() {}); + private Optional offset = Utils.readDefaultOrConstValue( + "offset", + "0", + new TypeReference>() {}); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListSCIMDirectoriesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListSCIMDirectoriesRequestBuilder limit(long limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.of(limit); + return this; + } + + public ListSCIMDirectoriesRequestBuilder limit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + public ListSCIMDirectoriesRequestBuilder offset(long offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = Optional.of(offset); + return this; + } + + public ListSCIMDirectoriesRequestBuilder offset(Optional offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = offset; + return this; + } + + public ListSCIMDirectoriesRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ListSCIMDirectoriesRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ListSCIMDirectoriesRequest buildRequest() { + if (limit == null) { + limit = _SINGLETON_VALUE_Limit.value(); + } + if (offset == null) { + offset = _SINGLETON_VALUE_Offset.value(); + } + + ListSCIMDirectoriesRequest request = new ListSCIMDirectoriesRequest(limit, + offset); + + return request; + } + + public ListSCIMDirectoriesResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ListSCIMDirectories.Sync(sdkConfiguration, options, _headers); + ListSCIMDirectoriesRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + new LazySingletonValue<>( + "limit", + "10", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Offset = + new LazySingletonValue<>( + "offset", + "0", + new TypeReference>() {}); +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java new file mode 100644 index 00000000..7258b5fc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectoryList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListSCIMDirectoriesResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of SCIM directories + */ + private Optional scimDirectoryList; + + @JsonCreator + public ListSCIMDirectoriesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectoryList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectoryList = scimDirectoryList; + } + + public ListSCIMDirectoriesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of SCIM directories + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectoryList() { + return (Optional) scimDirectoryList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListSCIMDirectoriesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListSCIMDirectoriesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListSCIMDirectoriesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of SCIM directories + */ + public ListSCIMDirectoriesResponse withSCIMDirectoryList(SCIMDirectoryList scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = Optional.ofNullable(scimDirectoryList); + return this; + } + + + /** + * A list of SCIM directories + */ + public ListSCIMDirectoriesResponse withSCIMDirectoryList(Optional scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = scimDirectoryList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMDirectoriesResponse other = (ListSCIMDirectoriesResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectoryList, other.scimDirectoryList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectoryList); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMDirectoriesResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectoryList", scimDirectoryList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectoryList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A list of SCIM directories + */ + public Builder scimDirectoryList(SCIMDirectoryList scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = Optional.ofNullable(scimDirectoryList); + return this; + } + + /** + * A list of SCIM directories + */ + public Builder scimDirectoryList(Optional scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = scimDirectoryList; + return this; + } + + public ListSCIMDirectoriesResponse build() { + + return new ListSCIMDirectoriesResponse( + contentType, statusCode, rawResponse, + scimDirectoryList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java new file mode 100644 index 00000000..3a67ae55 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class ListSCIMGroupRoleMappingsRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public ListSCIMGroupRoleMappingsRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public ListSCIMGroupRoleMappingsRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMGroupRoleMappingsRequest other = (ListSCIMGroupRoleMappingsRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMGroupRoleMappingsRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ListSCIMGroupRoleMappingsRequest build() { + + return new ListSCIMGroupRoleMappingsRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java new file mode 100644 index 00000000..74d10dac --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ListSCIMGroupRoleMappings; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ListSCIMGroupRoleMappingsRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListSCIMGroupRoleMappingsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListSCIMGroupRoleMappingsRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ListSCIMGroupRoleMappingsRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ListSCIMGroupRoleMappingsRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ListSCIMGroupRoleMappingsRequest buildRequest() { + + ListSCIMGroupRoleMappingsRequest request = new ListSCIMGroupRoleMappingsRequest(scimDirectoryId); + + return request; + } + + public ListSCIMGroupRoleMappingsResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ListSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + ListSCIMGroupRoleMappingsRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java new file mode 100644 index 00000000..384f0ae9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListSCIMGroupRoleMappingsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + private Optional scimGroupRoleMappingList; + + @JsonCreator + public ListSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMappingList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + } + + public ListSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMappingList() { + return (Optional) scimGroupRoleMappingList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListSCIMGroupRoleMappingsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListSCIMGroupRoleMappingsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListSCIMGroupRoleMappingsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ListSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ListSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMGroupRoleMappingsResponse other = (ListSCIMGroupRoleMappingsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMappingList, other.scimGroupRoleMappingList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMGroupRoleMappingsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMappingList", scimGroupRoleMappingList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMappingList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + public ListSCIMGroupRoleMappingsResponse build() { + + return new ListSCIMGroupRoleMappingsResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/Mappings.java b/src/main/java/com/clerk/backend_api/models/operations/Mappings.java new file mode 100644 index 00000000..f58d9b97 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/Mappings.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; + + +public class Mappings { + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonProperty("role_id") + private String roleId; + + @JsonCreator + public Mappings( + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("role_id") String roleId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(roleId, "roleId"); + this.scimGroupId = scimGroupId; + this.roleId = roleId; + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonIgnore + public String roleId() { + return roleId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Mappings withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public Mappings withRoleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Mappings other = (Mappings) o; + return + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.roleId, other.roleId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimGroupId, roleId); + } + + @Override + public String toString() { + return Utils.toString(Mappings.class, + "scimGroupId", scimGroupId, + "roleId", roleId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimGroupId; + + private String roleId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public Builder roleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + public Mappings build() { + + return new Mappings( + scimGroupId, roleId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java new file mode 100644 index 00000000..849532ad --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class ReplaceSCIMGroupRoleMappingsRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private ReplaceSCIMGroupRoleMappingsRequestBody requestBody; + + @JsonCreator + public ReplaceSCIMGroupRoleMappingsRequest( + String scimDirectoryId, + ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.scimDirectoryId = scimDirectoryId; + this.requestBody = requestBody; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + @JsonIgnore + public ReplaceSCIMGroupRoleMappingsRequestBody requestBody() { + return requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public ReplaceSCIMGroupRoleMappingsRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequest withRequestBody(ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSCIMGroupRoleMappingsRequest other = (ReplaceSCIMGroupRoleMappingsRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(ReplaceSCIMGroupRoleMappingsRequest.class, + "scimDirectoryId", scimDirectoryId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private ReplaceSCIMGroupRoleMappingsRequestBody requestBody; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + public Builder requestBody(ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequest build() { + + return new ReplaceSCIMGroupRoleMappingsRequest( + scimDirectoryId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java new file mode 100644 index 00000000..9c693b0c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java @@ -0,0 +1,106 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class ReplaceSCIMGroupRoleMappingsRequestBody { + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + @JsonProperty("mappings") + private List mappings; + + @JsonCreator + public ReplaceSCIMGroupRoleMappingsRequestBody( + @JsonProperty("mappings") List mappings) { + Utils.checkNotNull(mappings, "mappings"); + this.mappings = mappings; + } + + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + @JsonIgnore + public List mappings() { + return mappings; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + public ReplaceSCIMGroupRoleMappingsRequestBody withMappings(List mappings) { + Utils.checkNotNull(mappings, "mappings"); + this.mappings = mappings; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSCIMGroupRoleMappingsRequestBody other = (ReplaceSCIMGroupRoleMappingsRequestBody) o; + return + Utils.enhancedDeepEquals(this.mappings, other.mappings); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mappings); + } + + @Override + public String toString() { + return Utils.toString(ReplaceSCIMGroupRoleMappingsRequestBody.class, + "mappings", mappings); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List mappings; + + private Builder() { + // force use of static builder() method + } + + + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + public Builder mappings(List mappings) { + Utils.checkNotNull(mappings, "mappings"); + this.mappings = mappings; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBody build() { + + return new ReplaceSCIMGroupRoleMappingsRequestBody( + mappings); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java new file mode 100644 index 00000000..b794d79e --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ReplaceSCIMGroupRoleMappings; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ReplaceSCIMGroupRoleMappingsRequestBuilder { + + private String scimDirectoryId; + private ReplaceSCIMGroupRoleMappingsRequestBody requestBody; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ReplaceSCIMGroupRoleMappingsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder requestBody(ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ReplaceSCIMGroupRoleMappingsRequest buildRequest() { + + ReplaceSCIMGroupRoleMappingsRequest request = new ReplaceSCIMGroupRoleMappingsRequest(scimDirectoryId, + requestBody); + + return request; + } + + public ReplaceSCIMGroupRoleMappingsResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ReplaceSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + ReplaceSCIMGroupRoleMappingsRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java new file mode 100644 index 00000000..bdc05654 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ReplaceSCIMGroupRoleMappingsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + private Optional scimGroupRoleMappingList; + + @JsonCreator + public ReplaceSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMappingList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + } + + public ReplaceSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMappingList() { + return (Optional) scimGroupRoleMappingList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ReplaceSCIMGroupRoleMappingsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ReplaceSCIMGroupRoleMappingsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ReplaceSCIMGroupRoleMappingsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ReplaceSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ReplaceSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSCIMGroupRoleMappingsResponse other = (ReplaceSCIMGroupRoleMappingsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMappingList, other.scimGroupRoleMappingList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + @Override + public String toString() { + return Utils.toString(ReplaceSCIMGroupRoleMappingsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMappingList", scimGroupRoleMappingList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMappingList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + public ReplaceSCIMGroupRoleMappingsResponse build() { + + return new ReplaceSCIMGroupRoleMappingsResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java new file mode 100644 index 00000000..26dafd5b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class RevokeOAuthApplicationTokenRequest { + /** + * The ID of the OAuth application for which to revoke the token + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=oauth_application_id") + private String oauthApplicationId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private RevokeOAuthApplicationTokenRequestBody requestBody; + + @JsonCreator + public RevokeOAuthApplicationTokenRequest( + String oauthApplicationId, + RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.oauthApplicationId = oauthApplicationId; + this.requestBody = requestBody; + } + + /** + * The ID of the OAuth application for which to revoke the token + */ + @JsonIgnore + public String oauthApplicationId() { + return oauthApplicationId; + } + + @JsonIgnore + public RevokeOAuthApplicationTokenRequestBody requestBody() { + return requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the OAuth application for which to revoke the token + */ + public RevokeOAuthApplicationTokenRequest withOauthApplicationId(String oauthApplicationId) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + this.oauthApplicationId = oauthApplicationId; + return this; + } + + public RevokeOAuthApplicationTokenRequest withRequestBody(RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeOAuthApplicationTokenRequest other = (RevokeOAuthApplicationTokenRequest) o; + return + Utils.enhancedDeepEquals(this.oauthApplicationId, other.oauthApplicationId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + oauthApplicationId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(RevokeOAuthApplicationTokenRequest.class, + "oauthApplicationId", oauthApplicationId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String oauthApplicationId; + + private RevokeOAuthApplicationTokenRequestBody requestBody; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the OAuth application for which to revoke the token + */ + public Builder oauthApplicationId(String oauthApplicationId) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + this.oauthApplicationId = oauthApplicationId; + return this; + } + + + public Builder requestBody(RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public RevokeOAuthApplicationTokenRequest build() { + + return new RevokeOAuthApplicationTokenRequest( + oauthApplicationId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java new file mode 100644 index 00000000..8a0ebfa9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; + + +public class RevokeOAuthApplicationTokenRequestBody { + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + @JsonProperty("token") + private String token; + + @JsonCreator + public RevokeOAuthApplicationTokenRequestBody( + @JsonProperty("token") String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + } + + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + @JsonIgnore + public String token() { + return token; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + public RevokeOAuthApplicationTokenRequestBody withToken(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeOAuthApplicationTokenRequestBody other = (RevokeOAuthApplicationTokenRequestBody) o; + return + Utils.enhancedDeepEquals(this.token, other.token); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + token); + } + + @Override + public String toString() { + return Utils.toString(RevokeOAuthApplicationTokenRequestBody.class, + "token", token); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String token; + + private Builder() { + // force use of static builder() method + } + + + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + public Builder token(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public RevokeOAuthApplicationTokenRequestBody build() { + + return new RevokeOAuthApplicationTokenRequestBody( + token); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java new file mode 100644 index 00000000..d7a25c47 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.RevokeOAuthApplicationToken; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class RevokeOAuthApplicationTokenRequestBuilder { + + private String oauthApplicationId; + private RevokeOAuthApplicationTokenRequestBody requestBody; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public RevokeOAuthApplicationTokenRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public RevokeOAuthApplicationTokenRequestBuilder oauthApplicationId(String oauthApplicationId) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + this.oauthApplicationId = oauthApplicationId; + return this; + } + + public RevokeOAuthApplicationTokenRequestBuilder requestBody(RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public RevokeOAuthApplicationTokenRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public RevokeOAuthApplicationTokenRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private RevokeOAuthApplicationTokenRequest buildRequest() { + + RevokeOAuthApplicationTokenRequest request = new RevokeOAuthApplicationTokenRequest(oauthApplicationId, + requestBody); + + return request; + } + + public RevokeOAuthApplicationTokenResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new RevokeOAuthApplicationToken.Sync(sdkConfiguration, options, _headers); + RevokeOAuthApplicationTokenRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java new file mode 100644 index 00000000..8d26d7ed --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class RevokeOAuthApplicationTokenResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public RevokeOAuthApplicationTokenResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public RevokeOAuthApplicationTokenResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public RevokeOAuthApplicationTokenResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public RevokeOAuthApplicationTokenResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeOAuthApplicationTokenResponse other = (RevokeOAuthApplicationTokenResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(RevokeOAuthApplicationTokenResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public RevokeOAuthApplicationTokenResponse build() { + + return new RevokeOAuthApplicationTokenResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java new file mode 100644 index 00000000..981c7321 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class RotateSCIMDirectoryAPIKeyRequest { + /** + * The ID of the SCIM directory whose API key to rotate + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public RotateSCIMDirectoryAPIKeyRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory whose API key to rotate + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory whose API key to rotate + */ + public RotateSCIMDirectoryAPIKeyRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RotateSCIMDirectoryAPIKeyRequest other = (RotateSCIMDirectoryAPIKeyRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(RotateSCIMDirectoryAPIKeyRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory whose API key to rotate + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public RotateSCIMDirectoryAPIKeyRequest build() { + + return new RotateSCIMDirectoryAPIKeyRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java new file mode 100644 index 00000000..591d70b8 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.RotateSCIMDirectoryAPIKey; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class RotateSCIMDirectoryAPIKeyRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public RotateSCIMDirectoryAPIKeyRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public RotateSCIMDirectoryAPIKeyRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public RotateSCIMDirectoryAPIKeyRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public RotateSCIMDirectoryAPIKeyRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private RotateSCIMDirectoryAPIKeyRequest buildRequest() { + + RotateSCIMDirectoryAPIKeyRequest request = new RotateSCIMDirectoryAPIKeyRequest(scimDirectoryId); + + return request; + } + + public RotateSCIMDirectoryAPIKeyResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new RotateSCIMDirectoryAPIKey.Sync(sdkConfiguration, options, _headers); + RotateSCIMDirectoryAPIKeyRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java new file mode 100644 index 00000000..0dc887ac --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class RotateSCIMDirectoryAPIKeyResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public RotateSCIMDirectoryAPIKeyResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public RotateSCIMDirectoryAPIKeyResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public RotateSCIMDirectoryAPIKeyResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public RotateSCIMDirectoryAPIKeyResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public RotateSCIMDirectoryAPIKeyResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public RotateSCIMDirectoryAPIKeyResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public RotateSCIMDirectoryAPIKeyResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RotateSCIMDirectoryAPIKeyResponse other = (RotateSCIMDirectoryAPIKeyResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(RotateSCIMDirectoryAPIKeyResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public RotateSCIMDirectoryAPIKeyResponse build() { + + return new RotateSCIMDirectoryAPIKeyResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java index 5b936d77..abad2512 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java @@ -17,8 +17,8 @@ public class UpdateOrganizationDomainRequestBody { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("enrollment_mode") @@ -46,8 +46,8 @@ public UpdateOrganizationDomainRequestBody() { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonIgnore public JsonNullable enrollmentMode() { @@ -68,8 +68,8 @@ public static Builder builder() { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public UpdateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -78,8 +78,8 @@ public UpdateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentM } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public UpdateOrganizationDomainRequestBody withEnrollmentMode(JsonNullable enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -145,8 +145,8 @@ private Builder() { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -155,8 +155,8 @@ public Builder enrollmentMode(String enrollmentMode) { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(JsonNullable enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java new file mode 100644 index 00000000..a044062b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java @@ -0,0 +1,151 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class UpdateSCIMDirectoryRequest { + /** + * The ID of the SCIM directory to update + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional requestBody; + + @JsonCreator + public UpdateSCIMDirectoryRequest( + String scimDirectoryId, + Optional requestBody) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.scimDirectoryId = scimDirectoryId; + this.requestBody = requestBody; + } + + public UpdateSCIMDirectoryRequest( + String scimDirectoryId) { + this(scimDirectoryId, Optional.empty()); + } + + /** + * The ID of the SCIM directory to update + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional requestBody() { + return (Optional) requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory to update + */ + public UpdateSCIMDirectoryRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public UpdateSCIMDirectoryRequest withRequestBody(UpdateSCIMDirectoryRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public UpdateSCIMDirectoryRequest withRequestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSCIMDirectoryRequest other = (UpdateSCIMDirectoryRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(UpdateSCIMDirectoryRequest.class, + "scimDirectoryId", scimDirectoryId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Optional requestBody = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory to update + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + public Builder requestBody(UpdateSCIMDirectoryRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public UpdateSCIMDirectoryRequest build() { + + return new UpdateSCIMDirectoryRequest( + scimDirectoryId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java new file mode 100644 index 00000000..431e3243 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java @@ -0,0 +1,381 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class UpdateSCIMDirectoryRequestBody { + /** + * A human-friendly name for the SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * Whether the SCIM directory is enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enabled") + private Optional enabled; + + /** + * The identity provider for this SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("provider") + private Optional provider; + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("attribute_mapping") + private Optional> attributeMapping; + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("group_role_mapping_enabled") + private Optional groupRoleMappingEnabled; + + @JsonCreator + public UpdateSCIMDirectoryRequestBody( + @JsonProperty("name") Optional name, + @JsonProperty("enabled") Optional enabled, + @JsonProperty("provider") Optional provider, + @JsonProperty("attribute_mapping") Optional> attributeMapping, + @JsonProperty("group_role_mapping_enabled") Optional groupRoleMappingEnabled) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(enabled, "enabled"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(attributeMapping, "attributeMapping"); + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.name = name; + this.enabled = enabled; + this.provider = provider; + this.attributeMapping = attributeMapping; + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + } + + public UpdateSCIMDirectoryRequestBody() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * Whether the SCIM directory is enabled. + */ + @JsonIgnore + public Optional enabled() { + return enabled; + } + + /** + * The identity provider for this SCIM directory. + */ + @JsonIgnore + public Optional provider() { + return provider; + } + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> attributeMapping() { + return (Optional>) attributeMapping; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonIgnore + public Optional groupRoleMappingEnabled() { + return groupRoleMappingEnabled; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Whether the SCIM directory is enabled. + */ + public UpdateSCIMDirectoryRequestBody withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + + /** + * Whether the SCIM directory is enabled. + */ + public UpdateSCIMDirectoryRequestBody withEnabled(Optional enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = Optional.ofNullable(provider); + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withProvider(Optional provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public UpdateSCIMDirectoryRequestBody withAttributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = Optional.ofNullable(attributeMapping); + return this; + } + + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public UpdateSCIMDirectoryRequestBody withAttributeMapping(Optional> attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withGroupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = Optional.ofNullable(groupRoleMappingEnabled); + return this; + } + + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withGroupRoleMappingEnabled(Optional groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSCIMDirectoryRequestBody other = (UpdateSCIMDirectoryRequestBody) o; + return + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.enabled, other.enabled) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && + Utils.enhancedDeepEquals(this.groupRoleMappingEnabled, other.groupRoleMappingEnabled); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name, enabled, provider, + attributeMapping, groupRoleMappingEnabled); + } + + @Override + public String toString() { + return Utils.toString(UpdateSCIMDirectoryRequestBody.class, + "name", name, + "enabled", enabled, + "provider", provider, + "attributeMapping", attributeMapping, + "groupRoleMappingEnabled", groupRoleMappingEnabled); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private Optional enabled = Optional.empty(); + + private Optional provider = Optional.empty(); + + private Optional> attributeMapping = Optional.empty(); + + private Optional groupRoleMappingEnabled = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * Whether the SCIM directory is enabled. + */ + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + /** + * Whether the SCIM directory is enabled. + */ + public Builder enabled(Optional enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = Optional.ofNullable(provider); + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(Optional provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public Builder attributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = Optional.ofNullable(attributeMapping); + return this; + } + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public Builder attributeMapping(Optional> attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public Builder groupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = Optional.ofNullable(groupRoleMappingEnabled); + return this; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public Builder groupRoleMappingEnabled(Optional groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + public UpdateSCIMDirectoryRequestBody build() { + + return new UpdateSCIMDirectoryRequestBody( + name, enabled, provider, + attributeMapping, groupRoleMappingEnabled); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..e40c6b6e --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java @@ -0,0 +1,79 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.UpdateSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class UpdateSCIMDirectoryRequestBuilder { + + private String scimDirectoryId; + private Optional requestBody = Optional.empty(); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateSCIMDirectoryRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public UpdateSCIMDirectoryRequestBuilder requestBody(UpdateSCIMDirectoryRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.of(requestBody); + return this; + } + + public UpdateSCIMDirectoryRequestBuilder requestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public UpdateSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public UpdateSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private UpdateSCIMDirectoryRequest buildRequest() { + + UpdateSCIMDirectoryRequest request = new UpdateSCIMDirectoryRequest(scimDirectoryId, + requestBody); + + return request; + } + + public UpdateSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new UpdateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + UpdateSCIMDirectoryRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java new file mode 100644 index 00000000..34fe6ab5 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public UpdateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public UpdateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public UpdateSCIMDirectoryResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public UpdateSCIMDirectoryResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSCIMDirectoryResponse other = (UpdateSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(UpdateSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public UpdateSCIMDirectoryResponse build() { + + return new UpdateSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java new file mode 100644 index 00000000..1e230c10 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java @@ -0,0 +1,224 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class CreateSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/scim_directories"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation, CreateSCIMDirectoryResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(Optional request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public CreateSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateSCIMDirectoryResponse.Builder resBuilder = + CreateSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java b/src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java new file mode 100644 index 00000000..6e851b42 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java @@ -0,0 +1,230 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMapping; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class CreateSCIMGroupRoleMapping { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(CreateSCIMGroupRoleMappingRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateSCIMGroupRoleMappingRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateSCIMGroupRoleMappingRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public CreateSCIMGroupRoleMappingResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateSCIMGroupRoleMappingResponse.Builder resBuilder = + CreateSCIMGroupRoleMappingResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateSCIMGroupRoleMappingResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMapping(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java b/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java index d6a12963..0417b0a3 100644 --- a/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java +++ b/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java @@ -192,7 +192,7 @@ public DeleteOrganizationDomainResponse handleResponse(HttpResponse throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "404")) { + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java new file mode 100644 index 00000000..a22ad693 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.DeletedObject; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class DeleteSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(DeleteSCIMDirectoryRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSCIMDirectoryRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteSCIMDirectoryRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public DeleteSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteSCIMDirectoryResponse.Builder resBuilder = + DeleteSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withDeletedObject(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java new file mode 100644 index 00000000..b50358a9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingDeleted; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class DeleteSCIMGroupRoleMapping { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings/{mapping_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(DeleteSCIMGroupRoleMappingRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSCIMGroupRoleMappingRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteSCIMGroupRoleMappingRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public DeleteSCIMGroupRoleMappingResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteSCIMGroupRoleMappingResponse.Builder resBuilder = + DeleteSCIMGroupRoleMappingResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteSCIMGroupRoleMappingResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMappingDeleted(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java b/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java index 947776c6..8a88c4c8 100644 --- a/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java +++ b/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java @@ -9,7 +9,7 @@ import com.clerk.backend_api.SDKConfiguration; import com.clerk.backend_api.SecuritySource; -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItem; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2; import com.clerk.backend_api.models.errors.ClerkErrors; import com.clerk.backend_api.models.errors.SDKError; import com.clerk.backend_api.models.operations.ExtendBillingSubscriptionItemFreeTrialRequest; @@ -204,7 +204,7 @@ public ExtendBillingSubscriptionItemFreeTrialResponse handleResponse(HttpRespons if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withSchemasCommerceSubscriptionItem(Utils.unmarshal(response, new TypeReference() {})); + return res.withCommerceSubscriptionItem2(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java new file mode 100644 index 00000000..1c333f42 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class GetSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "GetSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "GetSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "GetSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(GetSCIMDirectoryRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetSCIMDirectoryRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetSCIMDirectoryRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public GetSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetSCIMDirectoryResponse.Builder resBuilder = + GetSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java b/src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java new file mode 100644 index 00000000..3d59fa46 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java @@ -0,0 +1,216 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectoryList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesRequest; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ListSCIMDirectories { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMDirectories", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMDirectories", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMDirectories", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/scim_directories"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ListSCIMDirectoriesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSCIMDirectoriesRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListSCIMDirectoriesRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ListSCIMDirectoriesResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListSCIMDirectoriesResponse.Builder resBuilder = + ListSCIMDirectoriesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListSCIMDirectoriesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectoryList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java b/src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java new file mode 100644 index 00000000..9006db3c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ListSCIMGroupRoleMappings { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ListSCIMGroupRoleMappingsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSCIMGroupRoleMappingsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListSCIMGroupRoleMappingsRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ListSCIMGroupRoleMappingsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListSCIMGroupRoleMappingsResponse.Builder resBuilder = + ListSCIMGroupRoleMappingsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListSCIMGroupRoleMappingsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMappingList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java b/src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java new file mode 100644 index 00000000..1222e2ed --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java @@ -0,0 +1,230 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ReplaceSCIMGroupRoleMappings { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ReplaceSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ReplaceSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ReplaceSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ReplaceSCIMGroupRoleMappingsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ReplaceSCIMGroupRoleMappingsRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ReplaceSCIMGroupRoleMappingsRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ReplaceSCIMGroupRoleMappingsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ReplaceSCIMGroupRoleMappingsResponse.Builder resBuilder = + ReplaceSCIMGroupRoleMappingsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ReplaceSCIMGroupRoleMappingsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMappingList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java b/src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java new file mode 100644 index 00000000..2b815f1f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java @@ -0,0 +1,226 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequest; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class RevokeOAuthApplicationToken { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeOAuthApplicationToken", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeOAuthApplicationToken", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeOAuthApplicationToken", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/oauth_applications/{oauth_application_id}/revoke_token", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(RevokeOAuthApplicationTokenRequest request) throws Exception { + HttpRequest req = buildRequest(request, RevokeOAuthApplicationTokenRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(RevokeOAuthApplicationTokenRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public RevokeOAuthApplicationTokenResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + RevokeOAuthApplicationTokenResponse.Builder resBuilder = + RevokeOAuthApplicationTokenResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + RevokeOAuthApplicationTokenResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java b/src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java new file mode 100644 index 00000000..de6e06b2 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyRequest; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class RotateSCIMDirectoryAPIKey { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RotateSCIMDirectoryAPIKey", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RotateSCIMDirectoryAPIKey", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RotateSCIMDirectoryAPIKey", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/rotate_api_key", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(RotateSCIMDirectoryAPIKeyRequest request) throws Exception { + HttpRequest req = buildRequest(request, RotateSCIMDirectoryAPIKeyRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(RotateSCIMDirectoryAPIKeyRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public RotateSCIMDirectoryAPIKeyResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + RotateSCIMDirectoryAPIKeyResponse.Builder resBuilder = + RotateSCIMDirectoryAPIKeyResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + RotateSCIMDirectoryAPIKeyResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java b/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java index edc5e36e..787385b5 100644 --- a/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java +++ b/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java @@ -209,7 +209,7 @@ public UpdateOrganizationDomainResponse handleResponse(HttpResponse throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "400", "404", "422")) { + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "422")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java new file mode 100644 index 00000000..9f938e9d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java @@ -0,0 +1,226 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class UpdateSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "UpdateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "UpdateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "UpdateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(UpdateSCIMDirectoryRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateSCIMDirectoryRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateSCIMDirectoryRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public UpdateSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateSCIMDirectoryResponse.Builder resBuilder = + UpdateSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/utils/Retries.java b/src/main/java/com/clerk/backend_api/utils/Retries.java index 8a74b2e2..6f35e37b 100644 --- a/src/main/java/com/clerk/backend_api/utils/Retries.java +++ b/src/main/java/com/clerk/backend_api/utils/Retries.java @@ -44,10 +44,10 @@ public NonRetryableException(Exception exception) { super(exception); this.exception = exception; } - + public Exception exception() { return exception; - } + } } @SuppressWarnings("serial") @@ -57,7 +57,7 @@ public static final class RetryableException extends Exception { public RetryableException(HttpResponse response) { this.response = response; } - + public HttpResponse response() { return response; } @@ -125,6 +125,15 @@ private HttpResponse getResponse(boolean retryConnectError, boolean } private static long retryAfterMs(HttpResponse response) { + String retryAfterMs = response.headers().firstValue("retry-after-ms").orElse(null); + if (retryAfterMs != null && !retryAfterMs.isEmpty()) { + try { + long milliseconds = Long.parseLong(retryAfterMs); + return milliseconds < 0 ? 0 : milliseconds; + } catch (NumberFormatException ignored) { + } + } + String retryAfter = response.headers().firstValue("retry-after").orElse(null); if (retryAfter == null || retryAfter.isEmpty()) { return 0; diff --git a/src/main/java/com/clerk/backend_api/utils/StreamingParser.java b/src/main/java/com/clerk/backend_api/utils/StreamingParser.java index 6ee37f5c..a941e3c4 100644 --- a/src/main/java/com/clerk/backend_api/utils/StreamingParser.java +++ b/src/main/java/com/clerk/backend_api/utils/StreamingParser.java @@ -176,18 +176,25 @@ private static class JsonLContentProcessor implements StreamContentProcessor eventId = Optional.empty(); + // Scan state preserved across reads; offsets stay valid because the + // parser compacts and resets this state after each boundary. + private int scanPos = 0; + private int lineStart = 0; + // A trailing CR may complete to CRLF on the next read; in that case + // the LF belongs to the same line ending, not a new empty line. + private boolean pendingCRLF = false; + @Override public BoundaryInfo findBoundary(byte[] data, int limit) { - int lineStart = 0, i = lineStart; + int i = scanPos; + if (pendingCRLF) { + pendingCRLF = false; + if (i < limit && data[i] == LF && i == lineStart) { + lineStart = i + 1; + i = i + 1; + } + } while (i < limit) { for (byte[] pattern : BOUNDARY_PATTERNS) { if (matchesPattern(data, i, limit, pattern)) { @@ -229,8 +251,14 @@ public BoundaryInfo findBoundary(byte[] data, int limit) { boundStart--; } int boundLength = (lineStart - boundStart) + pattern.length; + scanPos = 0; + lineStart = 0; + pendingCRLF = false; return new BoundaryInfo(boundStart, boundLength); } + if (pattern.length == 1 && data[i] == CR && i == limit - 1) { + pendingCRLF = true; + } lineStart = i + pattern.length; i = lineStart - 1; break; @@ -238,6 +266,7 @@ public BoundaryInfo findBoundary(byte[] data, int limit) { } i++; } + scanPos = i; return new BoundaryInfo(-1, 0); }